Re: Plugin to transform from RGB to HSB (HSV)
Posted by Gabriel Landini on Jun 26, 2007; 11:47pm
URL: http://imagej.273.s1.nabble.com/float-point-HSB-tp3698996p3698998.html
I found the bug!.
Line 90, it should read:
if ( rf == var_Max ) H[q] = del_B - del_G;
else if ( gf == var_Max ) H[q] = ( 1.0f / 3.0f ) + del_R - del_B;
else if ( bf == var_Max ) H[q] = ( 2.0f / 3.0f ) + del_G - del_R;
that is all.
Cheers
Gabriel