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 );
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) );