00001 #ifndef __RGBtoLHS__
00002 #define __RGBtoLHS__
00003
00004
00005
00026 #include <stdio.h>
00027
00028
00029 #include "AR3ChannelConverter.hpp"
00030
00031 class RGBtoLHS : public AR3ChannelConverter
00032 {
00033 private:
00034
00035 double k;
00036 bool saturationClipping;
00037
00038 public:
00039
00040 RGBtoLHS(bool correction=true, double saturation=1.0){ k=saturation; saturationClipping= correction;}
00041 virtual ~RGBtoLHS(){}
00042
00043
00044 virtual Real3CImage* convert(Real3CImage* from, Real3CImage* to=0);
00045 virtual Real3CImage* revert(Real3CImage* from, Real3CImage* to=0);
00046
00047 virtual void report(FILE* file){}
00048 };
00049
00050
00051 #endif