Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

RGB_CtoXYZ1931.hpp

00001 #ifndef __RGB_CtoXYZ1931__
00002 #define __RGB_CtoXYZ1931__
00003 
00004 
00005 
00032 #include <stdio.h>
00033 
00034 #include "ARLinearColorSpaceMapping.hpp"
00035 
00036 class RGB_CtoXYZ1931 : public ARLinearColorSpaceMapping
00037 {
00038 public:
00039         
00040 RGB_CtoXYZ1931():ARLinearColorSpaceMapping()
00041 {
00042 // RGB(1,1,1) -> device independent XYZ
00043 T[0][0]= 0.490; T[1][0]= 0.310; T[2][0]= 0.200;
00044 T[0][1]= 0.177; T[1][1]= 0.812; T[2][1]= 0.011;
00045 T[0][2]= 0.000; T[1][2]= 0.010; T[2][2]= 0.990;
00046 
00047 // RGB(1,1,1) <- device independent XYZ
00048 Tinv[0][0]=  2.365; Tinv[1][0]= -0.897; Tinv[2][0]= -0.468;
00049 Tinv[0][1]= -0.515; Tinv[1][1]=  1.426; Tinv[2][1]=  0.089;
00050 Tinv[0][2]=  0.005; Tinv[1][2]= -0.014; Tinv[2][2]=  1.009;
00051 }
00052 
00053 virtual ~RGB_CtoXYZ1931(){}
00054 
00055 virtual void report(FILE* file){}
00056 };
00057 
00058 #endif
SourceForge.net Logo
Restoreinpaint sourceforge project `C++/Java Image Processing, Restoration, Inpainting Project'.

Bernard De Cuyper: Open Project Leader: Concept, design and development.
Bernard De Cuyper & Eddy Fraiha 2002, 2003. Bernard De Cuyper 2004. Open and free, for friendly usage only.
Modifications on Belgium ground of this piece of artistic work, by governement institutions or companies, must be notified to Bernard De Cuyper.
bern_bdc@hotmail.com