Converting cv::Mat to IplImage*

前端 未结 8 1131
庸人自扰
庸人自扰 2020-11-28 22:51

The documentation on this seems incredibly spotty.

I\'ve basically got an empty array of IplImage*s (IplImage** imageArray) and I\'m calling a function to import an

8条回答
  •  没有蜡笔的小新
    2020-11-28 23:20

    cv::Mat is the new type introduce in OpenCV2.X while the IplImage* is the "legacy" image structure.

    Although, cv::Mat does support the usage of IplImage in the constructor parameters, the default library does not provide function for the other way. You will need to extract the image header information manually. (Do remember that you need to allocate the IplImage structure, which is lack in your example).

提交回复
热议问题