VMTK
Loading...
Searching...
No Matches
itkFastMarchingDirectionalFreezeImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Insight Segmentation & Registration Toolkit
4
5 Copyright (c) Insight Software Consortium. All rights reserved.
6 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
7
8 This software is distributed WITHOUT ANY WARRANTY; without even
9 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
10 PURPOSE. See the above copyright notices for more information.
11
12=========================================================================*/
13
14#ifndef _itkFastMarchingDirectionalFreezeImageFilter_h
15#define _itkFastMarchingDirectionalFreezeImageFilter_h
16
18#include "itkImage.h"
19
20namespace itk
21{
28template <
29 class TLevelSet,
30 class TSpeedImage = Image<float,TLevelSet::ImageDimension> >
32 public FastMarchingUpwindGradientImageFilter<TLevelSet,TSpeedImage>
33{
34
35public:
39 typedef SmartPointer<Self> Pointer;
40 typedef SmartPointer<const Self> ConstPointer;
41
44
47
66
67 typedef typename SpeedImageType::PixelType SpeedPixelType;
68
70 itkStaticConstMacro(SetDimension, unsigned int,Superclass::SetDimension);
71
72#ifdef ITK_USE_CONCEPT_CHECKING
75#endif
76
78 typedef CovariantVector<SpeedPixelType,
79 itkGetStaticConstMacro(SetDimension)> SpeedGradientPixelType;
80
82 typedef Image<SpeedGradientPixelType,
83 itkGetStaticConstMacro(SetDimension)> SpeedGradientImageType;
84
86 typedef typename SpeedGradientImageType::Pointer SpeedGradientImagePointer;
87
90 { return m_SpeedGradientImage; };
91
92 //TODO: Set the speed gradient image from outside
93
94protected:
97 void PrintSelf( std::ostream& os, Indent indent ) const ITK_OVERRIDE;
98
99 void GenerateData() ITK_OVERRIDE;
100
103
105 const LevelSetImageType * output);
106
107 virtual void UpdateNeighbors( const IndexType& index,
108 const SpeedImageType *, LevelSetImageType * ) ITK_OVERRIDE;
109
110private:
111 FastMarchingDirectionalFreezeImageFilter(const Self&); //purposely not implemented
112 void operator=(const Self&); //purposely not implemented
113
114 SpeedGradientImagePointer m_SpeedGradientImage;
115};
116
117} // namespace itk
118
119
120#ifndef ITK_MANUAL_INSTANTIATION
121#include "itkFastMarchingDirectionalFreezeImageFilter.txx"
122#endif
123
124#endif
itkStaticConstMacro(SetDimension, unsigned int, Superclass::SetDimension)
GradientPixelType ComputeGradientValue(const IndexType &index, const LevelSetImageType *output)
FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage > Superclass
itkTypeMacro(FastMarchingDirectionalFreezeImageFilter, FastMarchingUpwindGradientImageFilter)
void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE
CovariantVector< SpeedPixelType, itkGetStaticConstMacro(SetDimension)> SpeedGradientPixelType
virtual void UpdateNeighbors(const IndexType &index, const SpeedImageType *, LevelSetImageType *) ITK_OVERRIDE
Image< SpeedGradientPixelType, itkGetStaticConstMacro(SetDimension)> SpeedGradientImageType
CovariantVector< PixelType, itkGetStaticConstMacro(SetDimension)> GradientPixelType
Image< GradientPixelType, itkGetStaticConstMacro(SetDimension)> GradientImageType