/** * @file ColorSpace.cpp * @brief __DESC__ * @author Michael Koch * @date 07/28/2008 */ #include #include #include "ColorSpace.h" #include #include "vislearning/baselib/cc.h" using namespace OBJREC; using namespace std; using namespace NICE; //bad position for this function void ColorSpace::ColorImagetoMultiChannelImage(const NICE::ColorImage &imgrgb,NICE::MultiChannelImageT &genimg) { genimg.reInit(imgrgb.width(),imgrgb.height(),3,true); for(int y=0;ymax) { out=max; } return out; } NICE::ColorImage ColorSpace::rgbtohsl(const NICE::ColorImage &imgrgb) { NICE::ColorImage imghsl (imgrgb.width(), imgrgb.height()); for(int x=0;x