18 #ifndef sitkCannyEdgeDetectionImageFilter_h
19 #define sitkCannyEdgeDetectionImageFilter_h
82 SITK_RETURN_SELF_TYPE_HEADER
SetLowerThreshold (
double LowerThreshold ) { this->m_LowerThreshold = LowerThreshold;
return *
this; }
92 SITK_RETURN_SELF_TYPE_HEADER
SetUpperThreshold (
double UpperThreshold ) { this->m_UpperThreshold = UpperThreshold;
return *
this; }
101 SITK_RETURN_SELF_TYPE_HEADER
SetVariance (
const std::vector<double> & Variance ) { this->m_Variance = Variance;
return *
this; }
104 SITK_RETURN_SELF_TYPE_HEADER
SetVariance(
double value ) { this->m_Variance = std::vector<double>(3, value);
return *
this; }
110 std::vector<double>
GetVariance()
const {
return this->m_Variance; }
115 SITK_RETURN_SELF_TYPE_HEADER
SetMaximumError (
const std::vector<double> & MaximumError ) { this->m_MaximumError = MaximumError;
return *
this; }
118 SITK_RETURN_SELF_TYPE_HEADER
SetMaximumError(
double value ) { this->m_MaximumError = std::vector<double>(3, value);
return *
this; }
126 std::string
GetName()
const {
return std::string (
"CannyEdgeDetectionImageFilter"); }
129 std::string ToString()
const;
137 Image Execute (
const Image& image1,
double lowerThreshold,
double upperThreshold,
const std::vector<double> & variance,
const std::vector<double> & maximumError );
143 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
144 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
169 SITKBasicFilters_EXPORT Image CannyEdgeDetection (
const Image& image1,
double lowerThreshold = 0.0,
double upperThreshold = 0.0,
const std::vector<double> & variance = std::vector<double>(3, 0.0),
const std::vector<double> & maximumError = std::vector<double>(3, 0.01) );
std::vector< double > m_MaximumError
std::vector< double > GetVariance() const
Self & SetMaximumError(const std::vector< double > &MaximumError)
std::vector< double > m_Variance
double GetUpperThreshold() const
Self & SetLowerThreshold(double LowerThreshold)
double GetLowerThreshold() const
#define SITKBasicFilters_EXPORT
Self & SetVariance(double value)
Self & SetUpperThreshold(double UpperThreshold)
Set the Threshold value for detected edges. TODO: Document in the ITKv4 migration guide that the SetT...
This filter is an implementation of a Canny edge detector for scalar-valued images.
typelist::MakeTypeList< BasicPixelID< float >, BasicPixelID< double > >::Type RealPixelIDTypeList
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
std::vector< double > GetMaximumError() const
std::string GetName() const
The Image class for SimpleITK.
Image CannyEdgeDetection(const Image &image1, double lowerThreshold=0.0, double upperThreshold=0.0, const std::vector< double > &variance=std::vector< double >(3, 0.0), const std::vector< double > &maximumError=std::vector< double >(3, 0.01))
This filter is an implementation of a Canny edge detector for scalar-valued images.
RealPixelIDTypeList PixelIDTypeList
CannyEdgeDetectionImageFilter Self
Self & SetVariance(const std::vector< double > &Variance)
The base interface for SimpleITK filters that take one input image.
Self & SetMaximumError(double value)