ITK  4.3.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 
115 protected:
118 
119  virtual void GenerateDataFull();
120 
121  virtual void GenerateDataNarrowBand();
122 
123  virtual void AllocateOutput();
124 
125  virtual void EnlargeOutputRequestedRegion(DataObject *);
126 
127 private:
128  ExtensionVelocitiesImageFilter(const Self &); //purposely not implemented
129  void operator=(const Self &); //purposely not implemented
130 
133 
135  typedef FastMarchingExtensionImageFilter< TLevelSet, TAuxValue, VAuxDimension,
137 
139 
141 };
142 } // namespace itk
143 
144 #ifndef ITK_MANUAL_INSTANTIATION
145 #include "itkExtensionVelocitiesImageFilter.hxx"
146 #endif
147 
148 #endif
149