18 #ifndef itkCannySegmentationLevelSetFunction_h
19 #define itkCannySegmentationLevelSetFunction_h
34 template<
typename TImageType,
typename TFeatureImageType = TImageType >
62 static constexpr
unsigned int ImageDimension = Superclass::ImageDimension;
68 {
return m_Threshold; }
75 {
return m_Variance; }
80 void CalculateSpeedImage()
override;
84 void CalculateAdvectionImage()
override;
88 virtual void CalculateDistanceImage();
92 Superclass::Initialize(r);
100 {
return m_Canny->GetOutput(); }
127 template <
typename DummyImagePo
interType>
129 DummyImagePointerType &)
131 m_Caster->SetInput(feature);
132 m_Canny->SetInput( m_Caster->GetOutput() );
139 typename FeatureImageType::Pointer &)
141 m_Canny->SetInput(feature);
147 #ifndef ITK_MANUAL_INSTANTIATION
148 #include "itkCannySegmentationLevelSetFunction.hxx"
ImageType * GetCannyImage()
Light weight base class for most itk classes.
ScalarValueType m_Variance
void Initialize(const RadiusType &r) override
void AssignCannyInput(typename FeatureImageType::Pointer &feature, DummyImagePointerType &)
Define numeric traits for std::vector.
CastImageFilter< FeatureImageType, ImageType >::Pointer m_Caster
double GetVariance() const
void SetVariance(double v)
CannySegmentationLevelSetFunction()
typename Superclass::ScalarValueType ScalarValueType
typename Superclass::VectorImageType VectorImageType
typename ConstNeighborhoodIterator< TImageType >::RadiusType RadiusType
typename Superclass::FeatureScalarType FeatureScalarType
void AssignCannyInput(typename FeatureImageType::Pointer &feature, typename FeatureImageType::Pointer &)
ScalarValueType GetThreshold() const
A refinement of the standard level-set function which computes a speed term and advection term based ...
TFeatureImageType FeatureImageType
void SetThreshold(ScalarValueType v)
DanielssonDistanceMapImageFilter< ImageType, ImageType >::Pointer m_Distance
This filter computes the distance map of the input image as an approximation with pixel accuracy to t...
typename Superclass::ScalarValueType ScalarValueType
Casts input pixels to output pixel type.
CannyEdgeDetectionImageFilter< ImageType, ImageType >::Pointer m_Canny
This filter is an implementation of a Canny edge detector for scalar-valued images.