ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkFastMarchingExtensionImageFilter.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 itkFastMarchingExtensionImageFilter_h
19 #define itkFastMarchingExtensionImageFilter_h
20 
22 
23 namespace itk
24 {
54 template<
55  typename TLevelSet,
56  typename TAuxValue,
57  unsigned int VAuxDimension = 1,
58  typename TSpeedImage = Image< float, TLevelSet ::ImageDimension >
59  >
60 class ITK_TEMPLATE_EXPORT FastMarchingExtensionImageFilter:
61  public FastMarchingImageFilter< TLevelSet, TSpeedImage >
62 {
63 public:
69 
71  itkNewMacro(Self);
72 
75 
77  typedef typename Superclass::LevelSetType LevelSetType;
78  typedef typename Superclass::SpeedImageType SpeedImageType;
79  typedef typename Superclass::LevelSetImageType LevelSetImageType;
80 
82  itkStaticConstMacro(SetDimension, unsigned int, Superclass::SetDimension);
83 
85  itkStaticConstMacro(AuxDimension, unsigned int, VAuxDimension);
86 
88  typedef AuxVarTypeDefault< TAuxValue,
89  itkGetStaticConstMacro(AuxDimension),
90  itkGetStaticConstMacro(SetDimension) >
98 
101 
103  AuxImageType * GetAuxiliaryImage(unsigned int idx);
104 
107  {
108  m_AuxAliveValues = values;
109  }
110 
113  {
114  return m_AuxAliveValues.GetPointer();
115  }
116 
119  {
120  m_AuxTrialValues = values;
121  }
122 
125  {
126  return m_AuxTrialValues;
127  }
128 
129 #ifdef ITK_USE_CONCEPT_CHECKING
130  // Begin concept checking
131  itkConceptMacro( AuxValueHasNumericTraitsCheck,
133  // End concept checking
134 #endif
135 
136 protected:
139  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
140 
141  virtual void Initialize(LevelSetImageType *) ITK_OVERRIDE;
142 
143  virtual double UpdateValue(const IndexType & index,
144  const SpeedImageType *speed, LevelSetImageType *output) ITK_OVERRIDE;
145 
147  virtual void GenerateOutputInformation() ITK_OVERRIDE;
148 
149  virtual void EnlargeOutputRequestedRegion(DataObject *output) ITK_OVERRIDE;
150 
151 private:
152  ITK_DISALLOW_COPY_AND_ASSIGN(FastMarchingExtensionImageFilter);
153 
154  typename AuxValueContainer::Pointer m_AuxAliveValues;
155  typename AuxValueContainer::Pointer m_AuxTrialValues;
156 
157  AuxImageType *m_AuxImages[AuxDimension];
158 };
159 } // namespace itk
160 
161 #ifndef ITK_MANUAL_INSTANTIATION
162 #include "itkFastMarchingExtensionImageFilter.hxx"
163 #endif
164 
165 #endif
Level set auxiliary variables type information.
Definition: itkLevelSet.h:89
Light weight base class for most itk classes.
Extend auxiliary variables smoothly using Fast Marching.
A templated class holding a n-Dimensional vector.
Definition: itkVector.h:62
FastMarchingImageFilter< TLevelSet, TSpeedImage > Superclass
AuxVarTypeDefault< TAuxValue, itkGetStaticConstMacro(AuxDimension), itkGetStaticConstMacro(SetDimension) > AuxVarType
Define a front-end to the STL &quot;vector&quot; container that conforms to the IndexedContainerInterface.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Solve an Eikonal equation using Fast Marching.
Index< itkGetStaticConstMacro(SetDimension) > IndexType
#define itkConceptMacro(name, concept)
Represent a n-dimensional index in a n-dimensional image.
Definition: itkIndex.h:72
Base class for all data objects in ITK.
Templated n-dimensional image class.
Definition: itkImage.h:75