ITK  4.6.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 typename InputImageType::Pointer InputImagePointer;
91  typedef TOutputImage OutputImageType;
92  typedef typename OutputImageType::Pointer OutputImagePointer;
93 
96 
98  typedef itk::FastMarchingUpwindGradientImageFilter< TInputImage,
100 
113 
117  {
118  m_SeedPoints1 = points;
119  this->Modified();
120  }
122 
125  { return m_SeedPoints1; }
126 
130  {
131  m_SeedPoints2 = points;
132  this->Modified();
133  }
135 
138  { return m_SeedPoints2; }
139 
140  itkSetMacro(NegativeEpsilon, double);
141  itkGetConstMacro(NegativeEpsilon, double);
142 
143  itkSetMacro(ApplyConnectivity, bool);
144  itkGetConstMacro(ApplyConnectivity, bool);
145  itkBooleanMacro(ApplyConnectivity);
146 
147  itkSetMacro(StopOnTargets, bool);
148  itkGetConstMacro(StopOnTargets, bool);
149  itkBooleanMacro(StopOnTargets);
150 
151 #ifdef ITK_USE_CONCEPT_CHECKING
152  // Begin concept checking
153  itkConceptMacro( InputHasNumericTraitsCheck,
155  // End concept checking
156 #endif
157 
158 protected:
161 
162  void GenerateData();
163 
164  void PrintSelf(std::ostream &, Indent) const;
165 
166 private:
167  CollidingFrontsImageFilter(const Self &); //purposely not implemented
168  void operator=(const Self &); //purposely not implemented
169 
172 
175 
177 };
178 } // end namespace itk
179 
180 #ifndef ITK_MANUAL_INSTANTIATION
181 #include "itkCollidingFrontsImageFilter.hxx"
182 #endif
183 
184 #endif
FastMarchingUpwindGradientImageFilterType::NodeContainerPointer NodeContainerPointer
Superclass::OutputImageRegionType OutputImageRegionType
itk::FastMarchingUpwindGradientImageFilter< TInputImage, TOutputImage > FastMarchingUpwindGradientImageFilterType
ImageToImageFilter< TInputImage, TOutputImage > Superclass
NumericTraits< InputPixelType >::RealType RealType
Base class for all process objects that output image data.
FastMarchingUpwindGradientImageFilterType::IndexType IndexType
void operator=(const Self &)
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
void PrintSelf(std::ostream &, Indent) const
FastMarchingUpwindGradientImageFilterType::NodeType NodeType