SyB3R - Synthetic Benchmark for 3D Reconstruction
ImagePP_ColorMatrix.h
1 /*
2  * Syb3r - A framework for the creation and use of synthetic benchmark datasets for SfM/MVS with Blender and Cycles.
3  * Copyright (C) 2016 Andreas Ley <mail@andreas-ley.com>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  *
18  */
19 
20 
21 #ifndef IMAGEPP_COLORMATRIX_H
22 #define IMAGEPP_COLORMATRIX_H
23 
24 #include "ImagePostprocessorStep.h"
25 
26 namespace syb3r {
27 namespace synthesis {
28 
30 {
31  public:
32  static const Eigen::Matrix3f CanonEOS400_to_XYZ;
33  static const Eigen::Matrix3f XYZ_to_sRGB;
34 
35 
36  ImagePP_ColorMatrix(const Eigen::Matrix3f &colorMatrix);
37 
38  virtual void process(tools::FloatImage<Eigen::Vector3f> &output, const tools::FloatImage<Eigen::Vector3f> &input, ImageProperties &properties) const override;
39  protected:
40  Eigen::Matrix3f m_colorMatrix;
41 };
42 
43 }
44 }
45 
46 #endif // IMAGEPP_COLORMATRIX_H
Definition: CameraPathEvaluation.cpp:10
Definition: ImagePP_ColorMatrix.h:29
Definition: ImagePostprocessorStep.h:33
virtual void process(tools::FloatImage< Eigen::Vector3f > &output, const tools::FloatImage< Eigen::Vector3f > &input, ImageProperties &properties) const override
Definition: ImagePP_ColorMatrix.cpp:43
Stores basic information in key/value pairs.
Definition: ImagePostprocessor.h:25
Stores an image with arbitrary, usually float based, pixel values.
Definition: FloatImage.h:35