SlideIO 2.0.0
Open-source library for reading of medical images
Loading...
Searching...
No Matches
medianblurfilter.hpp
1// This file is part of slideio project.
2// It is subject to the license terms in the LICENSE file found in the top-level directory
3// of this distribution and at http://slideio.com/license.html.
4#pragma once
5#include "transformation.hpp"
6#include "slideio/base/slideio_enums.hpp"
7
8namespace slideio
9{
10
11 class SLIDEIO_TRANSFORMER_EXPORTS MedianBlurFilter : public Transformation
12 {
13 public:
14 MedianBlurFilter()
15 {
16 m_type = TransformationType::MedianBlurFilter;
17 }
18
19 virtual ~MedianBlurFilter() = default;
20
21 int getKernelSize() const
22 {
23 return m_kernelSize;
24 }
25
26 void setKernelSize(int kernelSize)
27 {
28 m_kernelSize = kernelSize;
29 }
30
31 void applyTransformation(const cv::Mat& block, cv::OutputArray transformedBlock) const override;
32 int getInflationValue() const override;
33
34 private:
35 int m_kernelSize = 5;
36 };
37
38}
Definition: exceptions.hpp:12