I am using a C++ code with old version of opencv that uses this to convert BGR to HSV -
cvCvtColor(frame, imgHSV, CV_BGR2HSV);
cvReleaseImage(&imgHSV);
where frame and imgHSV are IplImage* objects
The newer versions of opencv don't have this method and I found cvtColor() in imgproc that does the same. But this method uses cv::InputArray and cv::OutputAray formats for parameters instead of IplImage* . How do I convert and convert back the IplImage* formats to these new formats? Any other way to convert from BGR to HSV for IplImage* that I don't know of?