Mat m = Mat(4, 4, CV_8UC3);
IplImage * iplImage = cvIplImage(m);
error: cannot convert ‘_IplImage’ to ‘IplImage*’ {aka ‘_IplImage*’} in initialization
opencv 4.5.3 ubuntu 20.04
Mat m = Mat(4, 4, CV_8UC3);
IplImage * iplImage = cvIplImage(m);
error: cannot convert ‘_IplImage’ to ‘IplImage*’ {aka ‘_IplImage*’} in initialization
opencv 4.5.3 ubuntu 20.04
In opencv 4.5 there is still a ctor of IplImage
that takes a cv::Mat
.
There is also a function cvIplImage
to convert cv::Mat
to IplImage
.
However - as you can see in ...\include\opencv2\core\types_c.h
, some code is only available if you compiled opencv with the proper flags (e.g. CV__ENABLE_C_API_CTORS
for the IplImage
ctor).