ITK  4.6.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 {
51 template<
52  typename TLevelSet,
53  typename TAuxValue,
54  unsigned int VAuxDimension = 1,
55  typename TSpeedImage = Image< float, TLevelSet ::ImageDimension >
56  >
58  public FastMarchingImageFilter< TLevelSet, TSpeedImage >
59 {
60 public:
66 
68  itkNewMacro(Self);
69 
72 
74  typedef typename Superclass::LevelSetType LevelSetType;
77 
79  itkStaticConstMacro(SetDimension, unsigned int, Superclass::SetDimension);
80 
82  itkStaticConstMacro(AuxDimension, unsigned int, VAuxDimension);
83 
85  typedef AuxVarTypeDefault< TAuxValue,
86  itkGetStaticConstMacro(AuxDimension),
87  itkGetStaticConstMacro(SetDimension) >
95 
98 
100  AuxImageType * GetAuxiliaryImage(unsigned int idx);
101 
104  {
105  m_AuxAliveValues = values;
106  }
107 
110  {
111  return m_AuxAliveValues.GetPointer();
112  }
113 
116  {
117  m_AuxTrialValues = values;
118  }
119 
122  {
123  return m_AuxTrialValues;
124  }
125 
126 #ifdef ITK_USE_CONCEPT_CHECKING
127  // Begin concept checking
128  itkConceptMacro( AuxValueHasNumericTraitsCheck,
130  // End concept checking
131 #endif
132 
133 protected:
136  void PrintSelf(std::ostream & os, Indent indent) const;
137 
138  virtual void Initialize(LevelSetImageType *);
139 
140  virtual double UpdateValue(const IndexType & index,
141  const SpeedImageType *speed, LevelSetImageType *output);
142 
144  virtual void GenerateOutputInformation();
145 
146  virtual void EnlargeOutputRequestedRegion(DataObject *output);
147 
148 private:
149  FastMarchingExtensionImageFilter(const Self &); //purposely not implemented
150  void operator=(const Self &); //purposely not implemented
151 
154 
156 };
157 } // namespace itk
158 
159 #ifndef ITK_MANUAL_INSTANTIATION
160 #include "itkFastMarchingExtensionImageFilter.hxx"
161 #endif
162 
163 #endif
Level set auxiliary variables type information.
Definition: itkLevelSet.h:89
virtual void Initialize(LevelSetImageType *)
Light weight base class for most itk classes.
Extend auxiliary variables smoothly using Fast Marching.
virtual void EnlargeOutputRequestedRegion(DataObject *output)
ObjectType * GetPointer() const
A templated class holding a n-Dimensional vector.
Definition: itkVector.h:62
virtual double UpdateValue(const IndexType &index, const SpeedImageType *speed, LevelSetImageType *output)
FastMarchingImageFilter< TLevelSet, TSpeedImage > Superclass
LevelSetTypeDefault< TLevelSet > LevelSetType
AuxVarTypeDefault< TAuxValue, itkGetStaticConstMacro(AuxDimension), itkGetStaticConstMacro(SetDimension) > AuxVarType
void PrintSelf(std::ostream &os, Indent indent) const
Define a front-end to the STL &quot;vector&quot; container that conforms to the IndexedContainerInterface.
LevelSetType::LevelSetImageType LevelSetImageType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Solve an Eikonal equation using Fast Marching.
Index< itkGetStaticConstMacro(SetDimension) > IndexType
#define itkConceptMacro(name, concept)
AuxImageType * GetAuxiliaryImage(unsigned int idx)
Represent a n-dimensional index in a n-dimensional image.
Definition: itkIndex.h:71
static const unsigned int SetDimension
Base class for all data objects in ITK.
Templated n-dimensional image class.
Definition: itkImage.h:75