Convert wiki tutorial from deprecated IplImage to Mat
Hello, this is the Opencv's wiki tutorial: How to Display more than one image in a single window. I tried to run the code on OpenCV 3.x and didn't work.
The tutorial uses IplImage that is the legacy Intel Image Processing Library for C language. The Detailed Description of the function states:
OpenCV handles ROIs differently. OpenCV functions require that the image size or ROI size of all source and destination images match exactly. On the other hand, the Intel Image Processing Library processes the area of intersection between the source and destination images (or ROIs), allowing them to vary independently.
So to display many images in one display, the images are transformed into Regions of Interest and then allocated to the display. Which is the best way to do it on OpenCV 3.x? Use the legacy IplImage or convert to Mat.
Conversion:I was trying to convert to Mat reading some SO and Q&A threads
- Conversion from IplImage* to cv::MAT however, the code uses many functions that are dependent on IplImage, e.g.: cvSetImageROI()
- set ROI in cv::Mat
- some includes paths change on the code
Is it better to convert IplImage or maybe create a new program? Is it easy to convert this tutorial?
a question asked before maybe helpful http://answers.opencv.org/question/82812