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

RGB_NTSCtoXYZ.hpp

00001 #ifndef __RGB_NTSCtoXYZ__
00002 #define __RGB_NTSCtoXYZ__
00003 
00004 
00005 
00031 #include <stdio.h>
00032 
00033 #include "ARLinearColorSpaceMapping.hpp"
00034 
00035 class RGB_NTSCtoXYZ : public ARLinearColorSpaceMapping
00036 {
00037 public:
00038         
00039 RGB_NTSCtoXYZ():ARLinearColorSpaceMapping()
00040 {
00041 // RGB(1,1,1) -> device independent XYZ
00042 T[0][0]= 0.607; T[1][0]= 0.174; T[2][0]= 0.200;
00043 T[0][1]= 0.299; T[1][1]= 0.587; T[2][1]= 0.114;
00044 T[0][2]= 0.000; T[1][2]= 0.066; T[2][2]= 1.116;
00045 
00046 // RGB(1,1,1) <- device independent XYZ
00047 Tinv[0][0]=  1.910; Tinv[1][0]= -0.532; Tinv[2][0]= -0.288;
00048 Tinv[0][1]= -0.985; Tinv[1][1]=  2.000; Tinv[2][1]=  0.028;
00049 Tinv[0][2]=  0.058; Tinv[1][2]= -0.118; Tinv[2][2]=  0.898;
00050 }
00051 
00052 virtual ~RGB_NTSCtoXYZ(){}
00053 
00054 virtual void report(FILE* file){}
00055 };
00056 
00057 #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