Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

template<class StorT>
void Impala::Core::Array::Trait::UpoRGB2rgPtr< StorT >::DoIt ( Real64 rg,
StorT *  RGB 
) [inline]

Definition at line 25 of file UpoRGB2rg.h.

00026     {
00027         Real64 total = RGB[0] + RGB[1] + RGB[2];
00028         if(fabs(total) < 0.00001) {
00029             rg[0] = 1.0 / 3.0;
00030             rg[1] = 1.0 / 3.0;
00031             rg[2] = 1.0 / 3.0;
00032         }
00033         else
00034         {
00035             rg[0] = RGB[0] / total;
00036             rg[1] = RGB[1] / total;
00037             rg[2] = RGB[2] / total;
00038         }
00039     }


Generated on Fri Mar 19 11:05:48 2010 for ImpalaSrc by  doxygen 1.5.1