18#ifndef itkCannySegmentationLevelSetFunction_h
19#define itkCannySegmentationLevelSetFunction_h
34template <
typename TImageType,
typename TFeatureImageType = TImageType>
55 using typename Superclass::ImageType;
56 using typename Superclass::ScalarValueType;
57 using typename Superclass::VectorImageType;
58 using typename Superclass::FeatureScalarType;
59 using typename Superclass::RadiusType;
62 static constexpr unsigned int ImageDimension = Superclass::ImageDimension;
108 Superclass::Initialize(r);
118 return m_Canny->GetOutput();
135 double m_Threshold{};
146 template <
typename DummyImagePo
interType>
150 m_Caster->SetInput(feature);
151 m_Canny->SetInput(m_Caster->GetOutput());
160 m_Canny->SetInput(feature);
166#ifndef ITK_MANUAL_INSTANTIATION
167# include "itkCannySegmentationLevelSetFunction.hxx"
This filter is an implementation of a Canny edge detector for scalar-valued images.
A refinement of the standard level-set function which computes a speed term and advection term based ...
double GetVariance() const
ScalarValueType GetThreshold() const
void CalculateAdvectionImage() override
void SetVariance(double v)
ImageType * GetCannyImage()
virtual void CalculateDistanceImage()
CannySegmentationLevelSetFunction()
~CannySegmentationLevelSetFunction() override=default
void Initialize(const RadiusType &r) override
void AssignCannyInput(typename FeatureImageType::Pointer &feature, typename FeatureImageType::Pointer &)
void AssignCannyInput(typename FeatureImageType::Pointer &feature, DummyImagePointerType &)
void CalculateSpeedImage() override
TFeatureImageType FeatureImageType
void SetThreshold(ScalarValueType v)
Casts input pixels to output pixel type.
This filter computes the distance map of the input image as an approximation with pixel accuracy to t...
typename ConstNeighborhoodIterator< TImageType >::RadiusType RadiusType
PixelType ScalarValueType
Light weight base class for most itk classes.
Define additional traits for native types such as int or float.
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....