ITK  4.9.0
Insight Segmentation and Registration Toolkit
itkCollidingFrontsImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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  * http://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 
22 #include "itkImageToImageFilter.h"
23 
24 namespace itk
25 {
60 template< typename TInputImage, typename TOutputImage >
62  public ImageToImageFilter< TInputImage, TOutputImage >
63 {
64 public:
70 
72  itkNewMacro(Self);
73 
76 
79  typedef typename TOutputImage::PixelType OutputPixelType;
80  typedef typename TInputImage::PixelType InputPixelType;
82 
85  itkStaticConstMacro(ImageDimension, unsigned int,
86  TOutputImage::ImageDimension);
87 
89  typedef TInputImage InputImageType;
90  typedef TInputImage SpeedImageType;
91  typedef typename InputImageType::Pointer InputImagePointer;
92  typedef TOutputImage OutputImageType;
93  typedef TOutputImage LevelSetImageType;
94  typedef typename OutputImageType::Pointer OutputImagePointer;
95 
98 
102 
115 
119  {
120  m_SeedPoints1 = points;
121  this->Modified();
122  }
124 
127  { return m_SeedPoints1; }
128 
132  {
133  m_SeedPoints2 = points;
134  this->Modified();
135  }
137 
140  { return m_SeedPoints2; }
141 
142  itkSetMacro(NegativeEpsilon, double);
143  itkGetConstMacro(NegativeEpsilon, double);
144 
145  itkSetMacro(ApplyConnectivity, bool);
146  itkGetConstMacro(ApplyConnectivity, bool);
147  itkBooleanMacro(ApplyConnectivity);
148 
149  itkSetMacro(StopOnTargets, bool);
150  itkGetConstMacro(StopOnTargets, bool);
151  itkBooleanMacro(StopOnTargets);
152 
153 #ifdef ITK_USE_CONCEPT_CHECKING
154  // Begin concept checking
155  itkConceptMacro( InputHasNumericTraitsCheck,
157  // End concept checking
158 #endif
159 
160 protected:
163 
164  void GenerateData() ITK_OVERRIDE;
165 
166  void PrintSelf(std::ostream &, Indent) const ITK_OVERRIDE;
167 
168 private:
169  CollidingFrontsImageFilter(const Self &) ITK_DELETE_FUNCTION;
170  void operator=(const Self &) ITK_DELETE_FUNCTION;
171 
174 
177 
179 };
180 } // end namespace itk
181 
182 #ifndef ITK_MANUAL_INSTANTIATION
183 #include "itkCollidingFrontsImageFilter.hxx"
184 #endif
185 
186 #endif
itk::FastMarchingUpwindGradientImageFilter< LevelSetImageType, SpeedImageType > FastMarchingUpwindGradientImageFilterType
FastMarchingUpwindGradientImageFilterType::NodeContainerPointer NodeContainerPointer
void PrintSelf(std::ostream &, Indent) const override
Superclass::OutputImageRegionType OutputImageRegionType
ImageToImageFilter< TInputImage, TOutputImage > Superclass
NumericTraits< InputPixelType >::RealType RealType
Base class for all process objects that output image data.
FastMarchingUpwindGradientImageFilterType::IndexType IndexType
FastMarchingUpwindGradientImageFilterType::PixelType PixelType
virtual void Modified() const
Generates the upwind gradient field of fast marching arrival times.
FastMarchingUpwindGradientImageFilterType::NodeContainer NodeContainer
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
FastMarchingUpwindGradientImageFilterType::GradientImageType GradientImageType
Superclass::OutputImageRegionType OutputImageRegionType
Define additional traits for native types such as int or float.
#define itkConceptMacro(name, concept)
Selects a region of space where two independent fronts run towards each other.
Templated n-dimensional image class.
Definition: itkImage.h:75
FastMarchingUpwindGradientImageFilterType::NodeType NodeType