Ask Your Question

Revision history [back]

Of course, there is an OpenCV function for conversion: cvtColor. You have to do it in 2 steps: first HSV to RGB (with COLOR_HSV2BGR), then RGB to Gray ( with COLOR_BGR2GRAY).

click to hide/show revision 2
No.2 Revision

Of course, there is an OpenCV function for conversion: cvtColor. You have to do it in 2 steps: first HSV to RGB (with COLOR_HSV2BGR), then RGB BGR to Gray ( with COLOR_BGR2GRAY).

click to hide/show revision 3
No.3 Revision

Of course, there is an OpenCV function for conversion: cvtColor. You have to do it in 2 steps: first HSV HSL to RGB (with COLOR_HSV2BGR), COLOR_HSL2BGR), then BGR to Gray ( with COLOR_BGR2GRAY).