5#include "slideio/transformer/transformationex.hpp"
6#include "slideio/transformer/transformationtype.hpp"
11 class SLIDEIO_TRANSFORMER_EXPORTS MedianBlurFilter :
public TransformationEx
16 m_type = TransformationType::MedianBlurFilter;
19 MedianBlurFilter(
const MedianBlurFilter& other)
20 : TransformationEx(other),
21 m_kernelSize(other.m_kernelSize) {
24 MedianBlurFilter(MedianBlurFilter&& other) noexcept
25 : TransformationEx(std::move(other)),
26 m_kernelSize(other.m_kernelSize) {
29 MedianBlurFilter& operator=(
const MedianBlurFilter& other) {
32 TransformationEx::operator =(other);
33 m_kernelSize = other.m_kernelSize;
37 MedianBlurFilter& operator=(MedianBlurFilter&& other)
noexcept {
40 TransformationEx::operator =(std::move(other));
41 m_kernelSize = other.m_kernelSize;
45 virtual ~MedianBlurFilter() =
default;
47 int getKernelSize()
const
52 void setKernelSize(
int kernelSize)
54 m_kernelSize = kernelSize;
57 void applyTransformation(
const cv::Mat& block, cv::OutputArray transformedBlock)
const override;
58 int getInflationValue()
const override;
Definition: exceptions.hpp:15