How to convert a Mat variable type in an IplImage variable type in OpenCV 2.0 ?
Posted
by user290613
on Stack Overflow
See other posts from Stack Overflow
or by user290613
Published on 2010-03-18T08:19:32Z
Indexed on
2010/03/18
8:21 UTC
Read the original article
Hit count: 1148
Hi all,
I am trying to rotate an image in OpenCV.
I've used this code that I found here on StackOverflow
Mat source(img);
Point2f src_center(source.cols/2.0, source.rows/2.0);
Mat rot_mat = getRotationMatrix2D(src_center, 40.0, 1.0);
Mat dst;
warpAffine(source, dst, rot_mat, source.size());
Once I have my dst Mat variable type filled up I would like to put it back to an IplImage variable type, any idea about how to do this ?
Thank you,
© Stack Overflow or respective owner