ITK  4.4.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 >
61 class ITK_EXPORT CollidingFrontsImageFilter:
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 
95  typedef typename Superclass::OutputImageRegionType OutputImageRegionType;
96 
98  typedef itk::FastMarchingUpwindGradientImageFilter< TInputImage,
100 
113 
116  void SetSeedPoints1(NodeContainer *points)
117  {
118  m_SeedPoints1 = points;
119  this->Modified();
120  }
122 
124  NodeContainerPointer GetSeedPoints1()
125  { return m_SeedPoints1; }
126 
129  void SetSeedPoints2(NodeContainer *points)
130  {
131  m_SeedPoints2 = points;
132  this->Modified();
133  }
135 
137  NodeContainerPointer GetSeedPoints2()
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 
153  itkConceptMacro( InputHasNumericTraitsCheck,
155 
157 #endif
158 
159 protected:
162 
163  void GenerateData();
164 
165  void PrintSelf(std::ostream &, Indent) const;
166 
167 private:
168  CollidingFrontsImageFilter(const Self &); //purposely not implemented
169  void operator=(const Self &); //purposely not implemented
170 
173 
176 
178 };
179 } // end namespace itk
180 
181 #ifndef ITK_MANUAL_INSTANTIATION
182 #include "itkCollidingFrontsImageFilter.hxx"
183 #endif
184 
185 #endif
186