00001 #ifndef __RLinearRGBtoLMS__
00002 #define __RLinearRGBtoLMS__
00003 
00004 
00005 
00029 #include <stdio.h>
00030 
00031 #include "ARLinearColorSpaceMapping.hpp"
00032 
00033 class RLinearRGBtoLMS : public ARLinearColorSpaceMapping
00034 {
00035 public:
00036         
00037 RLinearRGBtoLMS():ARLinearColorSpaceMapping()
00038 {
00039 
00040 T[0][0]= 0.3811; T[1][0]= 0.5783; T[2][0]= 0.0402;
00041 T[0][1]= 0.1967; T[1][1]= 0.7244; T[2][1]= 0.0782;
00042 T[0][2]= 0.0241; T[1][2]= 0.1288; T[2][2]= 0.8444;
00043 
00044 
00045 Tinv[0][0]=  4.4679; Tinv[1][0]= -3.5873; Tinv[2][0]=  0.1193;
00046 Tinv[0][1]= -1.2186; Tinv[1][1]=  2.3809; Tinv[2][1]= -0.1624;
00047 Tinv[0][2]=  0.0497; Tinv[1][2]= -0.2439; Tinv[2][2]=  1.2045;
00048 }
00049 
00050 virtual ~RLinearRGBtoLMS(){}
00051 
00052 virtual void report(FILE* file){}
00053 };
00054 
00055 
00056 #endif