5#include "slideio/transformer/transformationex.hpp"
6#include "slideio/base/slideio_enums.hpp"
7#include "slideio/transformer/transformationtype.hpp"
12 class SLIDEIO_TRANSFORMER_EXPORTS SobelFilter :
public TransformationEx
15 SobelFilter(
const SobelFilter& other)
16 : TransformationEx(other),
17 m_depth(other.m_depth),
20 m_ksize(other.m_ksize),
21 m_scale(other.m_scale),
22 m_delta(other.m_delta) {
25 SobelFilter(SobelFilter&& other) noexcept
26 : TransformationEx(std::move(other)),
27 m_depth(other.m_depth),
30 m_ksize(other.m_ksize),
31 m_scale(other.m_scale),
32 m_delta(other.m_delta) {
35 SobelFilter& operator=(
const SobelFilter& other) {
38 TransformationEx::operator =(other);
39 m_depth = other.m_depth;
42 m_ksize = other.m_ksize;
43 m_scale = other.m_scale;
44 m_delta = other.m_delta;
48 SobelFilter& operator=(SobelFilter&& other)
noexcept {
51 TransformationEx::operator =(std::move(other));
52 m_depth = other.m_depth;
55 m_ksize = other.m_ksize;
56 m_scale = other.m_scale;
57 m_delta = other.m_delta;
63 m_type = TransformationType::SobelFilter;
66 DataType getDepth()
const
71 void setDepth(
const DataType& depth)
96 int getKernelSize()
const
101 void setKernelSize(
int ksize)
106 double getScale()
const
111 void setScale(
double scale)
116 double getDelta()
const
121 void setDelta(
double delta)
126 void applyTransformation(
const cv::Mat& block, cv::OutputArray transformedBlock)
const override;
127 int getInflationValue()
const override;
128 std::vector<DataType> computeChannelDataTypes(
const std::vector<DataType>& channels)
const override;
131 DataType m_depth = DataType::DT_Float32;
Definition: exceptions.hpp:15