Hey guys
Ipltomat.cpp
This is a tutorial for converting OpenCV image handlers
*IplImage to cv::Mat
*cv::Mat to IplImage
IplImage to cv::Mat example program
///Opencv 2.4.2
#include "opencv2/highgui/highgui.hpp"
#include <iostream>
#include <stdio.h>
using namespace std;
using namespace cv;
int main(int argc,
char *argv[]
)
{
///Loading image to IplImage
IplImage *img=cvLoadImage(argv[1]);
cvShowImage("Ipl",img);
///converting IplImage to cv::Mat
Mat image=cvarrToMat(img);
imshow("Mat",image);
waitKey();
return 0;
}



