18 #ifndef itkSegmentationLevelSetFunction_h
19 #define itkSegmentationLevelSetFunction_h
46 template<
typename TImageType,
typename TFeatureImageType = TImageType >
76 static constexpr
unsigned int ImageDimension = Superclass::ImageDimension;
92 {
return m_FeatureImage.GetPointer(); }
94 { m_FeatureImage = f; }
99 {
return m_SpeedImage.GetPointer(); }
100 void SetSpeedImage(ImageType *s);
105 {
return m_AdvectionImage.GetPointer(); }
106 void SetAdvectionImage(VectorImageType *s);
112 void Initialize(
const RadiusType & r)
override;
128 virtual void AllocateSpeedImage();
132 virtual void AllocateAdvectionImage();
144 virtual void ReverseExpansionDirection();
171 m_SpeedImage = ImageType::New();
172 m_AdvectionImage = VectorImageType::New();
173 m_Interpolator = InterpolatorType::New();
174 m_VectorInterpolator = VectorInterpolatorType::New();
183 #ifndef ITK_MANUAL_INSTANTIATION
184 #include "itkSegmentationLevelSetFunction.hxx"
typename Superclass::OutputType OutputType
typename Superclass::GlobalDataStruct GlobalDataStruct
PixelType ScalarValueType
Light weight base class for most itk classes.
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...
typename FeatureImageType::PixelType FeatureScalarType
VectorImageType::Pointer m_AdvectionImage
virtual void CalculateSpeedImage()
Const version of NeighborhoodIterator, defining iteration of a local N-dimensional neighborhood of pi...
FeatureImageType::ConstPointer m_FeatureImage
Simulate a standard C array with copy semnatics.
typename ImageType::IndexType IndexType
VectorInterpolatorType::Pointer m_VectorInterpolator
typename InterpolatorType::ContinuousIndexType ContinuousIndexType
typename ConstNeighborhoodIterator< TImageType >::RadiusType RadiusType
A templated class holding a n-Dimensional vector.
InterpolatorType::Pointer m_Interpolator
ImageBaseType::IndexType IndexType
Linearly interpolate an image at specified positions.
virtual ImageType * GetSpeedImage()
virtual void SetFeatureImage(const FeatureImageType *f)
virtual void CalculateAdvectionImage()
ImageType::Pointer m_SpeedImage
SegmentationLevelSetFunction()
typename Superclass::ContinuousIndexType ContinuousIndexType
TFeatureImageType FeatureImageType
virtual const FeatureImageType * GetFeatureImage() const
virtual VectorImageType * GetAdvectionImage() const
ImageBaseType::SpacingType VectorType
Templated n-dimensional image class.
Linearly interpolate a vector image at specified positions.