ITK  4.9.0
Insight Segmentation and Registration Toolkit
itkFastMarchingUpwindGradientImageFilterBase.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 itkFastMarchingUpwindGradientImageFilterBase_h
19 #define itkFastMarchingUpwindGradientImageFilterBase_h
20 
22 #include "itkImage.h"
23 
24 namespace itk
25 {
49 template< typename TInput, typename TOutput >
51  public FastMarchingImageFilterBase< TInput, TOutput >
52 {
53 public:
59  typedef typename Superclass::Traits Traits;
60 
62  itkNewMacro(Self);
63 
67 
69  itkStaticConstMacro(ImageDimension, unsigned int,
71 
72  typedef typename Superclass::NodeType NodeType;
76 
80 
82  typedef Image< GradientPixelType,
84 
87 
90 
91 protected:
94 
95  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
96 
97  virtual void InitializeOutput( OutputImageType* oImage ) ITK_OVERRIDE;
98 
99  virtual void UpdateNeighbors( OutputImageType* oImage,
100  const NodeType& iNode ) ITK_OVERRIDE;
101 
102  virtual void ComputeGradient(OutputImageType* oImage,
103  const NodeType& iNode );
104 
105 private:
106  FastMarchingUpwindGradientImageFilterBase(const Self &) ITK_DELETE_FUNCTION;
107  void operator=(const Self &) ITK_DELETE_FUNCTION;
108 };
109 
110 /* this class was made in the case where isotropic and anisotropic fast
111  marching would be implemented in this effort. As of now, we focus only
112  in the isotropic case. Let's keep it for reference (just as a reminder).
113 */
114 //template< unsigned int VDimension,
115 // typename TInputPixel,
116 // typename TOutputPixel >
117 //class IsotropicFastMarchingUpwindGradientImageFilterBase:
118 // public FastMarchingUpwindGradientImageFilterBase< VDimension, TInputPixel,
119 // TOutputPixel,
120 // FastMarchingImageFilterBase< VDimension, TInputPixel, TOutputPixel >
121 // >
122 // {
123 //public:
124 // typedef FastMarchingImageFilterBase< VDimension, TInputPixel,
125 // TOutputPixel > GrandParentClassType;
126 
128 // typedef IsotropicFastMarchingUpwindGradientImageFilterBase Self;
129 // typedef FastMarchingUpwindGradientImageFilterBase< VDimension, TInputPixel,
130 // TOutputPixel, GrandParentClassType > Superclass;
131 // typedef SmartPointer< Self > Pointer;
132 // typedef SmartPointer< const Self > ConstPointer;
133 
135 // itkNewMacro(Self);
136 
138 // itkTypeMacro(IsotropicFastMarchingUpwindGradientImageFilterBase,
139 // FastMarchingUpwindGradientImageFilterBase );
140 
142 // itkStaticConstMacro(ImageDimension, unsigned int,
143 // Superclass::ImageDimension );
144 
145 // typedef typename Superclass::NodeType NodeType;
146 // typedef typename Superclass::OutputImageType OutputImageType;
147 // typedef typename Superclass::OutputPixelType OutputPixelType;
148 // typedef typename Superclass::OutputSpacingType OutputSpacingType;
149 
151 // typedef CovariantVector< OutputPixelType,
152 // ImageDimension > GradientPixelType;
153 
155 // typedef Image< GradientPixelType,
156 // ImageDimension > GradientImageType;
157 
159 // typedef typename GradientImageType::Pointer GradientImagePointer;
160 
161 //protected:
162 // IsotropicFastMarchingUpwindGradientImageFilterBase() : Superclass() {}
163 // ~IsotropicFastMarchingUpwindGradientImageFilterBase() {}
164 
165 //private:
166 // void operator = ( const Self& );
167 // IsotropicFastMarchingUpwindGradientImageFilterBase( const Self& );
168 // };
169 } // namespace itk
170 
171 #ifndef ITK_MANUAL_INSTANTIATION
172 #include "itkFastMarchingUpwindGradientImageFilterBase.hxx"
173 #endif
174 
175 #endif
OutputImageType::SpacingType OutputSpacingType
virtual void UpdateNeighbors(OutputImageType *oImage, const NodeType &iNode) override
Superclass::OutputDomainType OutputImageType
virtual void ComputeGradient(OutputImageType *oImage, const NodeType &iNode)
virtual void InitializeOutput(OutputImageType *oImage) override
Abstract class to solve an Eikonal based-equation using Fast Marching Method.
Generates the upwind gradient field of fast marching arrival times.
CovariantVector< OutputPixelType, ImageDimension > GradientPixelType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
void PrintSelf(std::ostream &os, Indent indent) const override
A templated class holding a n-Dimensional covariant vector.
Templated n-dimensional image class.
Definition: itkImage.h:75