Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

opencv conversion from a Mat element to IplImage *

How can I convert a Mat element to IplImage * element? Please Help!

like image 826
Kaushal Avatar asked Jun 10 '10 18:06

Kaushal


1 Answers

Mat mat_img;
//....
IplImage ipl_img = mat_img;

This puts a header of IplImage on top of mat_img so there is no copying. You can pass &ipl_img to function which need IplImage*.

like image 118
Jacob Avatar answered Oct 13 '22 01:10

Jacob