How can I convert a Mat element to IplImage * element? Please Help!
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*
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With