Page 1 of 1

Convert Magick::Image to cv::Mat

Posted: 2017-01-24T18:26:14-07:00
by adjkant
I am trying to convert an image loaded in from a GIF via Magick++ into a cv::Mat. I have already converted from cv::Mat to Magick::Image but cannot seem to find how to pull the data out of an Image in Magick in order to load it into a Mat. What's the best way to do this?

For reference, in reverse: http://stackoverflow.com/questions/8227 ... agickimage

Notes: I want to get a RGBA Mat, which is what was loaded in, with the appropriate settings (as far as I know) when making the GIF.

Thanks!

Re: Convert Magick::Image to cv::Mat

Posted: 2017-01-25T11:13:19-07:00
by adjkant