I'm looking for an algorithm to create a table of false color. Of course we can use something like
void ImgCoreQCV::GeneratePseudocolorTab(vector<Vec3b> &vec, int iNColor)
{
for(int i=0; i<iNColor; i++){
int b = theRNG().uniform(0, 255);
int g = theRNG().uniform(0, 255);
int r = theRNG().uniform(0, 255);
/*int b = rand()&255;
int r = rand()&255;
int g = rand()&255;*/
vec.push_back(Vec3b((uchar)b, (uchar)g, (uchar)r));
}
}
but often generated color are very similar. Perhaps there is an algorithm in which the difference between the perception of colors is maximum?