Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Any way to convert IplImage* to cv::Mat in OpenCV 3.0.0?

Hi,

I'm having problems porting some legacy code to OpenCV 3.X (git master), because can't find any replacement for this kind of conversions:

    IplImage * ipl1, *ipl2;
    // ...
    const cv::Mat m = cv::Mat(ipl,false);  // Fails 
    cv::Mat  m2 = ipl2;  // Fails

Have been removed all those constructors from the new OpenCV 3.X for some reason? Are there any alternatives?

Thanks.

Any way to convert IplImage* to cv::Mat in OpenCV 3.0.0?

Hi,

I'm having problems porting some legacy code to OpenCV 3.X (git master), because can't find any replacement for this kind of conversions:

    IplImage * ipl1, *ipl2;
    // ...
    const cv::Mat m = cv::Mat(ipl,false);  // Fails 
    cv::Mat  m2 = ipl2;  // Fails

Have been removed all those constructors been removed from the new OpenCV 3.X for some reason? Are there any alternatives?

Thanks.