5#include "slideio/transformer/transformer_def.hpp"
6#include "slideio/transformer/transformationex.hpp"
7#include "slideio/transformer/colorspace.hpp"
8#include "slideio/transformer/transformationtype.hpp"
12 class SLIDEIO_TRANSFORMER_EXPORTS ColorTransformation :
public slideio::TransformationEx
15 ColorTransformation() {
16 m_type = TransformationType::ColorTransformation;
17 m_colorSpace = ColorSpace::RGB;
20 ColorTransformation(
const ColorTransformation& other)
21 :
slideio::TransformationEx(other),
22 m_colorSpace(other.m_colorSpace) {
25 ColorTransformation(ColorTransformation&& other) noexcept
26 : slideio::TransformationEx(std::move(other)),
27 m_colorSpace(other.m_colorSpace) {
30 ColorTransformation& operator=(
const ColorTransformation& other) {
33 slideio::TransformationEx::operator =(other);
34 m_colorSpace = other.m_colorSpace;
38 ColorTransformation& operator=(ColorTransformation&& other)
noexcept {
41 slideio::TransformationEx::operator =(std::move(other));
42 m_colorSpace = other.m_colorSpace;
46 ColorTransformation(ColorSpace colorSpace) {
47 m_type = TransformationType::ColorTransformation;
48 m_colorSpace = colorSpace;
50 ColorSpace getColorSpace()
const {
53 void setColorSpace(ColorSpace colorSpace) {
54 m_colorSpace = colorSpace;
57 void applyTransformation(
const cv::Mat& block, cv::OutputArray transformedBlock)
const override;
58 std::vector<DataType> computeChannelDataTypes(
const std::vector<DataType>& channels)
const override;
61 ColorSpace m_colorSpace;
Definition: exceptions.hpp:15