findColorIndex.C

Go to the documentation of this file.
00001 /*! @file VFAT/findColorIndex.C [put description here] */
00002 
00003 // $HeadURL: svn://isvn.usc.edu/software/invt/trunk/saliency/src/VFAT/findColorIndex.C $
00004 // $Id: findColorIndex.C 6182 2006-01-31 18:41:41Z rjpeters $
00005 
00006 #include "VFAT/findColorIndex.H"
00007 findColorIndex::findColorIndex()
00008 {}
00009 
00010 findColorIndex::~findColorIndex()
00011 {}
00012 
00013 void findColorIndex::FACgetColor12(unsigned int *index, PixRGB<float> *pix)
00014 {
00015   pix->setRed(0.0F);
00016   pix->setGreen(0.0F);
00017   pix->setBlue(0.0F);
00018 
00019   switch(*index)
00020   {
00021   case 0:  pix->setRed(255.0F); break;
00022   case 1:  pix->setRed(255.0F); pix->setGreen(128.0F); break;
00023   case 2:  pix->setRed(255.0F); pix->setGreen(255.0F); break;
00024   case 3:  pix->setRed(128.0F); pix->setGreen(255.0F); break;
00025   case 4:  pix->setGreen(255.0F); break;
00026   case 5:  pix->setGreen(255.0F); pix->setBlue(128.0F); break;
00027   case 6:  pix->setGreen(255.0F); pix->setBlue(255.0F); break;
00028   case 7:  pix->setGreen(128.0F); pix->setBlue(255.0F); break;
00029   case 8:  pix->setBlue(255.0F); break;
00030   case 9: pix->setBlue(255.0F); pix->setRed(128.0F); break;
00031   case 10: pix->setBlue(255.0F); pix->setRed(255.0F); break;
00032   case 11: pix->setBlue(128.0F); pix->setRed(255.0F); break;
00033   default: pix->setRed(255.0F); pix->setGreen(255.0F); pix->setBlue(255.0F);
00034     break;
00035   }
00036 };
Generated on Sun May 8 08:42:34 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3