#ifndef CC_LUT_H #define CC_LUT_H #include #include #include namespace icl{ /// static utility function for displaying some progress information in console void progress_init(const std::string &text="Creating LUT"); /// static utility function for displaying some progress information in console void progress_finish(); /// static utility function for displaying some progress information in console void progress(int curr, int max); class CCLUT{ public: CCLUT(format srcFmt, format dstFmt); void cc(const ImgBase *src, ImgBase *dst, bool roiOnly=false); private: Img8u m_oLUT; format m_eSrcFmt; format m_eDstFmt; }; /// TODO basisklass CCLUT /// unterklassen CCLUT3x3 usw /** evtl: kleinere luts durch internes runtersamplen der farbinfos z.B. factor 2 oder 4 2: 3*2 statt 3*16mb zusätzliche beschleunigung: statt yuvToRGB vielleicht ippiYUVToHLS direkt im grabber! **/ /****************** class CCLUT{ static const int OFS1 = 256; static const int OFS2 = 65536; public: CCLUT(format srcFmt, format dstFmt){ m_iSrcChan = getChannelsOfFormat(srcFmt); m_iDstChan = getChannelsOfFormat(dstFmt); int DIM = (int)pow(256,m_iSrcChan); // alloc lut memset(m_apucLUT,0,3*sizeof(icl8u*)); for(int i=0;i