5#include "transformer_def.hpp"
6#include "transformation.hpp"
23 class SLIDEIO_TRANSFORMER_EXPORTS ColorTransformation :
public slideio::Transformation
26 ColorTransformation() {
27 m_type = TransformationType::ColorTransformation;
28 m_colorSpace = ColorSpace::RGB;
30 ColorSpace getColorSpace()
const {
33 void setColorSpace(ColorSpace colorSpace) {
34 m_colorSpace = colorSpace;
37 void applyTransformation(
const cv::Mat& block, cv::OutputArray transformedBlock)
const override;
38 std::vector<DataType> computeChannelDataTypes(
const std::vector<DataType>& channels)
const override;
41 ColorSpace m_colorSpace;
Definition: exceptions.hpp:12