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

void Impala::Visualization::Plot::Similarity::SelectColor ( int  colorId,
double  intensity = 1. 
) [inline]

Definition at line 98 of file Similarity.h.

References Impala::Core::Array::Element::ColHSI2RGB(), PHI, and PI.

00099     {
00100         double sat = sqrt((double)colorId/37.);
00101         double angle = (colorId*PHI*2.);
00102         while(angle>2.)
00103             angle -= 2.;
00104         Vec3Real64 color(angle*PI, intensity, sat);
00105         color = ColHSI2RGB(color);
00106         glColor3d(color.X(), color.Y(), color.Z());
00107     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:53:15 2010 for ImpalaSrc by  doxygen 1.5.1