ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkCollidingFrontsImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * https://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18#ifndef itkCollidingFrontsImageFilter_h
19#define itkCollidingFrontsImageFilter_h
20
23
24namespace itk
25{
60template <typename TInputImage, typename TOutputImage>
61class ITK_TEMPLATE_EXPORT CollidingFrontsImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
62{
63public:
64 ITK_DISALLOW_COPY_AND_MOVE(CollidingFrontsImageFilter);
65
71
73 itkNewMacro(Self);
74
76 itkOverrideGetNameOfClassMacro(CollidingFrontsImageFilter);
77
80 using OutputPixelType = typename TOutputImage::PixelType;
81 using InputPixelType = typename TInputImage::PixelType;
83
86 static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
87
89 using InputImageType = TInputImage;
90 using SpeedImageType = TInputImage;
91 using InputImagePointer = typename InputImageType::Pointer;
92 using OutputImageType = TOutputImage;
93 using LevelSetImageType = TOutputImage;
94 using OutputImagePointer = typename OutputImageType::Pointer;
95
98
102
110
113 void
115 {
116 m_SeedPoints1 = points;
117 this->Modified();
118 }
119
120
122 NodeContainerPointer
124 {
125 return m_SeedPoints1;
126 }
127
130 void
132 {
133 m_SeedPoints2 = points;
134 this->Modified();
135 }
136
137
139 NodeContainerPointer
141 {
142 return m_SeedPoints2;
143 }
144
145 itkSetMacro(NegativeEpsilon, double);
146 itkGetConstMacro(NegativeEpsilon, double);
147
148 itkSetMacro(ApplyConnectivity, bool);
149 itkGetConstMacro(ApplyConnectivity, bool);
150 itkBooleanMacro(ApplyConnectivity);
151
152 itkSetMacro(StopOnTargets, bool);
153 itkGetConstMacro(StopOnTargets, bool);
154 itkBooleanMacro(StopOnTargets);
155
156 itkConceptMacro(InputHasNumericTraitsCheck, (Concept::HasNumericTraits<InputPixelType>));
157
158protected:
160 ~CollidingFrontsImageFilter() override = default;
161
162 void
163 GenerateData() override;
164
165 void
166 PrintSelf(std::ostream &, Indent) const override;
167
168private:
171
174
176};
177} // end namespace itk
178
179#ifndef ITK_MANUAL_INSTANTIATION
180# include "itkCollidingFrontsImageFilter.hxx"
181#endif
182
183#endif
typename OutputImageType::Pointer OutputImagePointer
typename TInputImage::PixelType InputPixelType
itk::FastMarchingUpwindGradientImageFilter< LevelSetImageType, SpeedImageType > FastMarchingUpwindGradientImageFilterType
~CollidingFrontsImageFilter() override=default
typename FastMarchingUpwindGradientImageFilterType::NodeType NodeType
typename NumericTraits< InputPixelType >::RealType RealType
static constexpr unsigned int ImageDimension
typename FastMarchingUpwindGradientImageFilterType::NodeContainer NodeContainer
typename FastMarchingUpwindGradientImageFilterType::IndexType IndexType
typename InputImageType::Pointer InputImagePointer
typename FastMarchingUpwindGradientImageFilterType::NodeContainerPointer NodeContainerPointer
void PrintSelf(std::ostream &, Indent) const override
ImageToImageFilter< TInputImage, TOutputImage > Superclass
typename FastMarchingUpwindGradientImageFilterType::PixelType PixelType
typename TOutputImage::PixelType OutputPixelType
typename FastMarchingUpwindGradientImageFilterType::GradientImageType GradientImageType
Generates the upwind gradient field of fast marching arrival times.
typename OutputImageType::RegionType OutputImageRegionType
Control indentation during Print() invocation.
Definition itkIndent.h:50
virtual void Modified() const
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....