18 #ifndef itkSegmentationLevelSetFunction_h
19 #define itkSegmentationLevelSetFunction_h
46 template<
typename TImageType,
typename TFeatureImageType = TImageType >
74 itkStaticConstMacro(ImageDimension,
unsigned int, Superclass::ImageDimension);
90 {
return m_FeatureImage.GetPointer(); }
92 { m_FeatureImage = f; }
97 {
return m_SpeedImage.GetPointer(); }
98 void SetSpeedImage(ImageType *s);
103 {
return m_AdvectionImage.GetPointer(); }
104 void SetAdvectionImage(VectorImageType *s);
110 virtual void Initialize(
const RadiusType & r) ITK_OVERRIDE;
126 virtual void AllocateSpeedImage();
130 virtual void AllocateAdvectionImage();
142 virtual void ReverseExpansionDirection();
169 m_SpeedImage = ImageType::New();
170 m_AdvectionImage = VectorImageType::New();
171 m_Interpolator = InterpolatorType::New();
172 m_VectorInterpolator = VectorInterpolatorType::New();
184 #ifndef ITK_MANUAL_INSTANTIATION
185 #include "itkSegmentationLevelSetFunction.hxx"
Functor::VectorCast< typename VectorInterpolatorType::OutputType, VectorType > m_VectorCast
The LevelSetFunction class is a generic function object which can be used to create a level set metho...
PixelType ScalarValueType
VectorImageType::Pointer m_AdvectionImage
Superclass::ContinuousIndexType ContinuousIndexType
Superclass::ImageType ImageType
virtual void CalculateSpeedImage()
InterpolatorType::ContinuousIndexType ContinuousIndexType
Superclass::ImageType ImageType
Superclass::RadiusType RadiusType
LevelSetFunction< TImageType > Superclass
Const version of NeighborhoodIterator, defining iteration of a local N-dimensional neighborhood of pi...
FeatureImageType::ConstPointer m_FeatureImage
ImageType::IndexType IndexType
ImageBaseType::SpacingType VectorType
Superclass::VectorType VectorType
Superclass::GlobalDataStruct GlobalDataStruct
Superclass::ScalarValueType ScalarValueType
Simulate a standard C array with copy semnatics.
TFeatureImageType FeatureImageType
VectorInterpolatorType::Pointer m_VectorInterpolator
virtual ~SegmentationLevelSetFunction() override
A templated class holding a n-Dimensional vector.
InterpolatorType::Pointer m_Interpolator
VectorLinearInterpolateImageFunction< VectorImageType > VectorInterpolatorType
SegmentationLevelSetFunction Self
Superclass::OutputType OutputType
LinearInterpolateImageFunction< ImageType > InterpolatorType
Superclass::FloatOffsetType FloatOffsetType
Superclass::PixelRealType PixelRealType
Linearly interpolate an image at specified positions.
virtual ImageType * GetSpeedImage()
virtual void SetFeatureImage(const FeatureImageType *f)
SmartPointer< Self > Pointer
virtual void CalculateAdvectionImage()
FeatureImageType::PixelType FeatureScalarType
ImageType::Pointer m_SpeedImage
SegmentationLevelSetFunction()
virtual const FeatureImageType * GetFeatureImage() const
Superclass::NeighborhoodType NeighborhoodType
virtual VectorImageType * GetAdvectionImage() const
Image< VectorType, itkGetStaticConstMacro(ImageDimension) > VectorImageType
SmartPointer< const Self > ConstPointer
Templated n-dimensional image class.
Linearly interpolate a vector image at specified positions.
ImageBaseType::IndexType IndexType