18 #ifndef sitkCannyEdgeDetectionImageFilter_h
19 #define sitkCannyEdgeDetectionImageFilter_h
89 SITK_RETURN_SELF_TYPE_HEADER
SetLowerThreshold (
double LowerThreshold ) { this->m_LowerThreshold = LowerThreshold;
return *
this; }
99 SITK_RETURN_SELF_TYPE_HEADER
SetUpperThreshold (
double UpperThreshold ) { this->m_UpperThreshold = UpperThreshold;
return *
this; }
108 SITK_RETURN_SELF_TYPE_HEADER
SetVariance ( std::vector<double> Variance ) { this->m_Variance = std::move(Variance);
return *
this; }
111 SITK_RETURN_SELF_TYPE_HEADER
SetVariance(
double value ) { this->m_Variance = std::vector<double>(3, value);
return *
this; }
116 std::vector<double>
GetVariance()
const {
return this->m_Variance; }\
121 SITK_RETURN_SELF_TYPE_HEADER
SetMaximumError ( std::vector<double> MaximumError ) { this->m_MaximumError = std::move(MaximumError);
return *
this; }
124 SITK_RETURN_SELF_TYPE_HEADER
SetMaximumError(
double value ) { this->m_MaximumError = std::vector<double>(3, value);
return *
this; }
132 std::string
GetName()
const {
return std::string (
"CannyEdgeDetectionImageFilter"); }
135 std::string ToString()
const;
147 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
155 double m_LowerThreshold{0.0};
157 double m_UpperThreshold{0.0};
160 std::vector<double> m_Variance{std::vector<double>(3, 0.0)};
163 std::vector<double> m_MaximumError{std::vector<double>(3, 0.01)};
178 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) );