opencv从Mat元素到IplImage的转换* [英] opencv conversion from a Mat element to IplImage *
本文介绍了opencv从Mat元素到IplImage的转换*的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将Mat元素转换为IplImage *元素?请帮助!
How can I convert a Mat element to IplImage * element? Please Help!
推荐答案
Mat mat_img;
//....
IplImage ipl_img = mat_img;
这会在顶部放置 IplImage
的 mat_img
,因此没有复制。您可以将& ipl_img
传递到需要 IplImage *
的函数。
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*
.
这篇关于opencv从Mat元素到IplImage的转换*的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文