Convert Magick::Image to cv::Mat

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
adjkant
Posts: 2
Joined: 2017-01-24T18:22:58-07:00
Authentication code: 1151

Convert Magick::Image to cv::Mat

Post 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!
adjkant
Posts: 2
Joined: 2017-01-24T18:22:58-07:00
Authentication code: 1151

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

Post by adjkant »

Post Reply