ITK  4.2.0
Insight Segmentation and Registration Toolkit
itkExtensionVelocitiesImageFilter.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 __itkExtensionVelocitiesImageFilter_h
19 #define __itkExtensionVelocitiesImageFilter_h
20 
24 
25 namespace itk
26 {
49 template<
50  class TLevelSet,
51  class TAuxValue = float,
52  unsigned int VAuxDimension = 1
53  >
55  public ReinitializeLevelSetImageFilter< TLevelSet >
56 {
57 public:
58 
64 
66  itkNewMacro(Self);
67 
70 
76  typedef typename LevelSetType::NodeType NodeType;
79 
81  itkStaticConstMacro(SetDimension, unsigned int, LevelSetType::SetDimension);
82 
84  typedef AuxVarTypeDefault< TAuxValue, VAuxDimension,
85  itkGetStaticConstMacro(SetDimension) >
93 
95  itkStaticConstMacro(AuxDimension, unsigned int, VAuxDimension);
96 
98  void SetInputVelocityImage(const AuxImageType *ptr, unsigned int idx = 0);
99 
100  const AuxImageType * GetInputVelocityImage(unsigned int idx = 0);
101 
103  AuxImageType * GetOutputVelocityImage(unsigned int idx = 0);
104 
105 #ifdef ITK_USE_CONCEPT_CHECKING
106 
107  itkConceptMacro( AuxValueHasNumericTraitsCheck,
109  itkConceptMacro( LevelSetOStreamWritableCheck,
111 
113 #endif
114 protected:
117 
118  virtual void GenerateDataFull();
119 
120  virtual void GenerateDataNarrowBand();
121 
122  virtual void AllocateOutput();
123 
124  virtual void EnlargeOutputRequestedRegion(DataObject *);
125 
126 private:
127  ExtensionVelocitiesImageFilter(const Self &); //purposely not implemented
128  void operator=(const Self &); //purposely not implemented
129 
132 
134  typedef FastMarchingExtensionImageFilter< TLevelSet, TAuxValue, VAuxDimension,
136 
138 
140 };
141 } // namespace itk
142 
143 #ifndef ITK_MANUAL_INSTANTIATION
144 #include "itkExtensionVelocitiesImageFilter.hxx"
145 #endif
146 
147 #endif
148