1 | initial version |
I don't believe so. YUV-RGB is simple, but RGB->HSV is not. Calculating Hue depends explicitly on the values of R, G, and B, so you'd need to more or less convert anyway.
If I may suggest, you can convert from YUV420p to RGB directly in OpenCV using the COLOR_YUV420p2RGB and COLOR_YUV420p2BGR tokens. It's probably much faster that way. OpenCV is pretty well optimized for these calls, especially if you've got Intel IPP, which you almost certainly do.