18 #ifndef itkCannySegmentationLevelSetFunction_h
19 #define itkCannySegmentationLevelSetFunction_h
34 template<
typename TImageType,
typename TFeatureImageType = TImageType >
53 typedef typename Superclass::ImageType
ImageType;
60 itkStaticConstMacro(ImageDimension,
unsigned int,
61 Superclass::ImageDimension);
67 {
return m_Threshold; }
74 {
return m_Variance; }
79 virtual void CalculateSpeedImage() ITK_OVERRIDE;
83 virtual
void CalculateAdvectionImage() ITK_OVERRIDE;
87 virtual
void CalculateDistanceImage();
89 virtual
void Initialize(const
RadiusType & r) ITK_OVERRIDE
91 Superclass::Initialize(r);
99 {
return m_Canny->GetOutput(); }
128 template <
typename DummyImagePo
interType>
130 DummyImagePointerType &)
132 m_Caster->SetInput(feature);
133 m_Canny->SetInput( m_Caster->GetOutput() );
140 typename FeatureImageType::Pointer &)
142 m_Canny->SetInput(feature);
148 #ifndef ITK_MANUAL_INSTANTIATION
149 #include "itkCannySegmentationLevelSetFunction.hxx"
CannySegmentationLevelSetFunction Self
ImageType * GetCannyImage()
Superclass::ImageType ImageType
Light weight base class for most itk classes.
ScalarValueType m_Variance
void AssignCannyInput(typename FeatureImageType::Pointer &feature, DummyImagePointerType &)
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
ConstNeighborhoodIterator< TImageType >::RadiusType RadiusType
CastImageFilter< FeatureImageType, ImageType >::Pointer m_Caster
double GetVariance() const
void SetVariance(double v)
CannySegmentationLevelSetFunction()
Superclass::ScalarValueType ScalarValueType
Superclass::RadiusType RadiusType
TFeatureImageType FeatureImageType
virtual ~CannySegmentationLevelSetFunction() override
Superclass::VectorImageType VectorImageType
Superclass::ScalarValueType ScalarValueType
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 ...
void SetThreshold(ScalarValueType v)
DanielssonDistanceMapImageFilter< ImageType, ImageType >::Pointer m_Distance
Define additional traits for native types such as int or float.
SegmentationLevelSetFunction< TImageType, TFeatureImageType > Superclass
This filter computes the distance map of the input image as an approximation with pixel accuracy to t...
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.