OpenCV Q&A Forum - RSS feedhttp://answers.opencv.org/questions/OpenCV answersenCopyright <a href="http://www.opencv.org">OpenCV foundation</a>, 2012-2018.Fri, 08 Jan 2016 05:25:21 -0600How to get OpenCV to store HSV in Matlab notation [0-1]?http://answers.opencv.org/question/82822/how-to-get-opencv-to-store-hsv-in-matlab-notation-0-1/I am working on transferring a working Matlab project to C++/OpenCV, but I'm encountering a problem while converting from BGR to HSV, since the project is intended to work with small numbers that Matlab uses to store HSV values.
If i just do a normalization to the HSV matrix (Hue/179, Saturation/255, Value/255) I will lose a part of data that could be important in the image recognition later on.
**Is there a better way to convert from BGR - HSV without losing part of the data?** Has anyone encountered this problem? What is the most efficient way solve to it?
Thanks
ZvonimirzvonimirbFri, 08 Jan 2016 05:25:21 -0600http://answers.opencv.org/question/82822/