--- ../../anoncvs/gift/FeatureExtraction/rgb2hsv_utils.c 2006-07-20 12:09:15.000000000 -0500 +++ FeatureExtraction/rgb2hsv_utils.c 2006-11-08 16:09:08.000000000 -0600 @@ -202,7 +202,7 @@ (*im_hsv)->pixel[3*i + HUE] = (byte)rint((H/360.0)*max_col); (*im_hsv)->pixel[3*i + SATURATION] = (byte)rint(S*max_col); (*im_hsv)->pixel[3*i + VALUE] = (byte)rint(V*max_col); - (*im_hsv)->value_plane_double_reversed[num_pixels-i]=(V*max_col); + (*im_hsv)->value_plane_double_reversed[num_pixels-i-1]=(V*max_col); } add_comment((*im_hsv), "# Image converted from RGB to HSV format.\n");