18 #ifndef itkCannySegmentationLevelSetFunction_h
19 #define itkCannySegmentationLevelSetFunction_h
34 template <
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;
93 CalculateSpeedImage()
override;
98 CalculateAdvectionImage()
override;
103 CalculateDistanceImage();
108 Superclass::Initialize(r);
118 return m_Canny->GetOutput();
125 m_Threshold = ScalarValueType{};
134 ScalarValueType m_Variance{};
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"