5#include "slideio/transformer/transformationex.hpp"
6#include "slideio/transformer/transformationtype.hpp"
7#include "slideio/base/slideio_enums.hpp"
11 class SLIDEIO_TRANSFORMER_EXPORTS ScharrFilter :
public TransformationEx
15 m_type = TransformationType::ScharrFilter;
18 ScharrFilter(
const ScharrFilter& other)
19 : TransformationEx(other),
20 m_depth(other.m_depth),
23 m_scale(other.m_scale),
24 m_delta(other.m_delta) {
27 ScharrFilter(ScharrFilter&& other) noexcept
28 : TransformationEx(std::move(other)),
29 m_depth(other.m_depth),
32 m_scale(other.m_scale),
33 m_delta(other.m_delta) {
36 ScharrFilter& operator=(
const ScharrFilter& other) {
39 TransformationEx::operator =(other);
40 m_depth = other.m_depth;
43 m_scale = other.m_scale;
44 m_delta = other.m_delta;
48 ScharrFilter& operator=(ScharrFilter&& other)
noexcept {
51 TransformationEx::operator =(std::move(other));
52 m_depth = other.m_depth;
55 m_scale = other.m_scale;
56 m_delta = other.m_delta;
60 DataType getDepth()
const {
64 void setDepth(
const DataType& depth) {
84 double getScale()
const {
88 void setScale(
double scale) {
92 double getDelta()
const {
96 void setDelta(
double delta) {
100 void applyTransformation(
const cv::Mat& block, cv::OutputArray transformedBlock)
const override;
101 int getInflationValue()
const override;
102 std::vector<DataType> computeChannelDataTypes(
const std::vector<DataType>& channels)
const override;
105 DataType m_depth = DataType::DT_Float32;
Definition: exceptions.hpp:15