ITK  6.0.0
Insight Toolkit
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;
92 using OutputImageType = TOutputImage;
93 using LevelSetImageType = TOutputImage;
95
97 using typename Superclass::OutputImageRegionType;
98
102
110
113 void
115 {
116 m_SeedPoints1 = points;
117 this->Modified();
118 }
122 NodeContainerPointer
124 {
125 return m_SeedPoints1;
126 }
127
130 void
132 {
133 m_SeedPoints2 = points;
134 this->Modified();
135 }
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#ifdef ITK_USE_CONCEPT_CHECKING
157 // Begin concept checking
158 itkConceptMacro(InputHasNumericTraitsCheck, (Concept::HasNumericTraits<InputPixelType>));
159 // End concept checking
160#endif
161
162protected:
164 ~CollidingFrontsImageFilter() override = default;
165
166 void
167 GenerateData() override;
168
169 void
170 PrintSelf(std::ostream &, Indent) const override;
171
172private:
173 NodeContainerPointer m_SeedPoints1{};
174 NodeContainerPointer m_SeedPoints2{};
175
176 bool m_StopOnTargets{};
177 bool m_ApplyConnectivity{};
178
179 double m_NegativeEpsilon{};
180};
181} // end namespace itk
182
183#ifndef ITK_MANUAL_INSTANTIATION
184# include "itkCollidingFrontsImageFilter.hxx"
185#endif
186
187#endif
Selects a region of space where two independent fronts run towards each other.
typename TInputImage::PixelType InputPixelType
~CollidingFrontsImageFilter() override=default
typename FastMarchingUpwindGradientImageFilterType::NodeType NodeType
typename NumericTraits< InputPixelType >::RealType RealType
typename FastMarchingUpwindGradientImageFilterType::NodeContainer NodeContainer
typename FastMarchingUpwindGradientImageFilterType::IndexType IndexType
typename FastMarchingUpwindGradientImageFilterType::NodeContainerPointer NodeContainerPointer
void PrintSelf(std::ostream &, Indent) const override
typename FastMarchingUpwindGradientImageFilterType::PixelType PixelType
typename TOutputImage::PixelType OutputPixelType
typename FastMarchingUpwindGradientImageFilterType::GradientImageType GradientImageType
Generates the upwind gradient field of fast marching arrival times.
Base class for all process objects that output image data.
TOutputImage OutputImageType
typename OutputImageType::Pointer OutputImagePointer
Base class for filters that take an image as input and produce an image as output.
typename InputImageType::Pointer InputImagePointer
Templated n-dimensional image class.
Definition: itkImage.h:89
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Define additional traits for native types such as int or float.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
SmartPointer< Self > Pointer
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....