5#include "transformation.hpp"
10 class SLIDEIO_TRANSFORMER_EXPORTS CannyFilter :
public Transformation
15 m_type = TransformationType::CannyFilter;
18 double getThreshold1()
const
23 void setThreshold1(
double threshold1)
25 m_threshold1 = threshold1;
28 double getThreshold2()
const
33 void setThreshold2(
double threshold2)
35 m_threshold2 = threshold2;
38 int getApertureSize()
const
40 return m_apertureSize;
43 void setApertureSize(
int apertureSize)
45 m_apertureSize = apertureSize;
48 bool getL2Gradient()
const
53 void setL2Gradient(
bool L2gradient)
55 m_L2gradient = L2gradient;
58 void applyTransformation(
const cv::Mat& block, cv::OutputArray transformedBlock)
const override;
59 std::vector<DataType> computeChannelDataTypes(
const std::vector<DataType>& channels)
const override;
60 int getInflationValue()
const override;
63 double m_threshold1 = 100.;
64 double m_threshold2 = 200.;
65 int m_apertureSize = 3;
66 bool m_L2gradient =
false;
Definition: exceptions.hpp:12