1 | initial version |
If your original image is BGR and you want only gray-scale, skip the HSV stage and use CV_BGR2GRAY. Only if you are interested in saturation or hue, use CV_BGR2HSV. In the HSV color space, the V is the same as gray-scale. If you have RGB (opposite color-order from BGR), use CV_RGB2GRAY or CV_RGB2HSV instead of the BGR options.