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

RGB_SMPTEtoXYZ.hpp

00001 #ifndef __RGB_SMPTEtoXYZ__
00002 #define __RGB_SMPTEtoXYZ__
00003 
00004 
00005 
00030 #include <stdio.h>
00031 
00032 #include "ARLinearColorSpaceMapping.hpp"
00033 
00034 class RGB_SMPTEtoXYZ : public ARLinearColorSpaceMapping
00035 {
00036 public:
00037         
00038 RGB_SMPTEtoXYZ():ARLinearColorSpaceMapping()
00039 {
00040 // RGB(1,1,1) -> device independent XYZ
00041 T[0][0]= 0.393; T[1][0]= 0.365; T[2][0]= 0.192;
00042 T[0][1]= 0.212; T[1][1]= 0.701; T[2][1]= 0.087;
00043 T[0][2]= 0.019; T[1][2]= 0.112; T[2][2]= 0.958;
00044 
00045 // RGB(1,1,1) <- device independent XYZ
00046 Tinv[0][0]=  3.508; Tinv[1][0]= -1.741; Tinv[2][0]= -0.544;
00047 Tinv[0][1]= -1.069; Tinv[1][1]=  1.977; Tinv[2][1]=  0.035;
00048 Tinv[0][2]=  0.056; Tinv[1][2]= -0.197; Tinv[2][2]=  1.051;
00049 }
00050 
00051 virtual ~RGB_SMPTEtoXYZ(){}
00052 
00053 virtual void report(FILE* file){}
00054 };
00055 
00056 #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