18 #ifndef sitkCannyEdgeDetectionImageFilter_h
19 #define sitkCannyEdgeDetectionImageFilter_h
88 SITK_RETURN_SELF_TYPE_HEADER
SetLowerThreshold (
double LowerThreshold ) { this->m_LowerThreshold = LowerThreshold;
return *
this; }
97 SITK_RETURN_SELF_TYPE_HEADER
SetUpperThreshold (
double UpperThreshold ) { this->m_UpperThreshold = UpperThreshold;
return *
this; }
106 SITK_RETURN_SELF_TYPE_HEADER
SetVariance ( std::vector<double> Variance ) { this->m_Variance = std::move(Variance);
return *
this; }
109 SITK_RETURN_SELF_TYPE_HEADER
SetVariance(
double value ) { this->m_Variance = std::vector<double>(3, value);
return *
this; }
114 std::vector<double>
GetVariance()
const {
return this->m_Variance; }\
119 SITK_RETURN_SELF_TYPE_HEADER
SetMaximumError ( std::vector<double> MaximumError ) { this->m_MaximumError = std::move(MaximumError);
return *
this; }
122 SITK_RETURN_SELF_TYPE_HEADER
SetMaximumError(
double value ) { this->m_MaximumError = std::vector<double>(3, value);
return *
this; }
130 std::string
GetName()
const {
return std::string (
"CannyEdgeDetectionImageFilter"); }
133 std::string ToString()
const;
145 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
153 double m_LowerThreshold{0.0};
155 double m_UpperThreshold{0.0};
158 std::vector<double> m_Variance{std::vector<double>(3, 0.0)};
161 std::vector<double> m_MaximumError{std::vector<double>(3, 0.01)};
176 SITKBasicFilters_EXPORT Image CannyEdgeDetection (
const Image& image1,
double lowerThreshold = 0.0,
double upperThreshold = 0.0, std::vector<double> variance = std::vector<double>(3, 0.0), std::vector<double> maximumError = std::vector<double>(3, 0.01) );