Home Returns the index of the color in the palette of the image which is "closest" to the specified RGB value
 $index = imagecolorclosest ($newim, 217,217,217 );  Docs says that this returns the index. (Returns the index of the color in the palette of the image which is "closest" to the specified RGB value). What is the meaning of the index?? Can someone explain. I'm porting a php code to java (open cv).