18 #ifndef sitkCannyEdgeDetectionImageFilter_h
19 #define sitkCannyEdgeDetectionImageFilter_h
88 SITK_RETURN_SELF_TYPE_HEADER
SetLowerThreshold (
double LowerThreshold ) { this->m_LowerThreshold = LowerThreshold;
return *
this; }
98 SITK_RETURN_SELF_TYPE_HEADER
SetUpperThreshold (
double UpperThreshold ) { this->m_UpperThreshold = UpperThreshold;
return *
this; }
107 SITK_RETURN_SELF_TYPE_HEADER
SetVariance ( std::vector<double> Variance ) { this->m_Variance = std::move(Variance);
return *
this; }
110 SITK_RETURN_SELF_TYPE_HEADER
SetVariance(
double value ) { this->m_Variance = std::vector<double>(3, value);
return *
this; }
115 std::vector<double>
GetVariance()
const {
return this->m_Variance; }\
120 SITK_RETURN_SELF_TYPE_HEADER
SetMaximumError ( std::vector<double> MaximumError ) { this->m_MaximumError = std::move(MaximumError);
return *
this; }
123 SITK_RETURN_SELF_TYPE_HEADER
SetMaximumError(
double value ) { this->m_MaximumError = std::vector<double>(3, value);
return *
this; }
131 std::string
GetName()
const {
return std::string (
"CannyEdgeDetectionImageFilter"); }
134 std::string ToString()
const;
146 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
154 double m_LowerThreshold{0.0};
156 double m_UpperThreshold{0.0};
159 std::vector<double> m_Variance{std::vector<double>(3, 0.0)};
162 std::vector<double> m_MaximumError{std::vector<double>(3, 0.01)};
177 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) );