5#include "slideio/transformer/transformationex.hpp"
6#include "slideio/base/slideio_enums.hpp"
7#include "slideio/transformer/transformationtype.hpp"
12 class SLIDEIO_TRANSFORMER_EXPORTS LaplacianFilter :
public TransformationEx
15 LaplacianFilter(
const LaplacianFilter& other)
16 : TransformationEx(other),
17 m_depth(other.m_depth),
18 m_kernelSize(other.m_kernelSize),
19 m_scale(other.m_scale),
20 m_delta(other.m_delta) {
23 LaplacianFilter(LaplacianFilter&& other) noexcept
24 : TransformationEx(std::move(other)),
25 m_depth(other.m_depth),
26 m_kernelSize(other.m_kernelSize),
27 m_scale(other.m_scale),
28 m_delta(other.m_delta) {
31 LaplacianFilter& operator=(
const LaplacianFilter& other) {
34 TransformationEx::operator =(other);
35 m_depth = other.m_depth;
36 m_kernelSize = other.m_kernelSize;
37 m_scale = other.m_scale;
38 m_delta = other.m_delta;
42 LaplacianFilter& operator=(LaplacianFilter&& other)
noexcept {
45 TransformationEx::operator =(std::move(other));
46 m_depth = other.m_depth;
47 m_kernelSize = other.m_kernelSize;
48 m_scale = other.m_scale;
49 m_delta = other.m_delta;
55 m_type = TransformationType::LaplacianFilter;
58 DataType getDepth()
const
63 void setDepth(
const DataType& depth)
68 int getKernelSize()
const
73 void setKernelSize(
int kernelSize)
75 m_kernelSize = kernelSize;
78 double getScale()
const
83 void setScale(
double scale)
88 double getDelta()
const
93 void setDelta(
double delta)
98 void applyTransformation(
const cv::Mat& block, cv::OutputArray transformedBlock)
const override;
99 int getInflationValue()
const override;
100 std::vector<DataType> computeChannelDataTypes(
const std::vector<DataType>& channels)
const override;
103 DataType m_depth = DataType::DT_Float32;
104 int m_kernelSize = 1;
Definition: exceptions.hpp:15