Read RAW Image

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
fzuend
Posts: 1
Joined: 2011-05-06T02:11:16-07:00
Authentication code: 8675308

Read RAW Image

Post by fzuend » 2011-05-06T02:18:42-07:00

Hi everyone

I need to convert 8 Bit UYVY 4:2:2 images to jpeg in my code. I can do this easily using

Code: Select all

convert -size 1920x1080 -depth 8 UYVY:frame1.raw frame1.jpg
This works well. However, if I write in the code

Code: Select all

Image image;
image.size("1920x1080");
image.depth(8);
image.magick("UYVY");
image.read("frame1.raw");
image.write("frame1.jpeg");
I get an exception saying

Code: Select all

Magick: no decode delegate for this image format `frame1.raw' @ error/constitute.c/ReadImage/532
Can anyone help me with this?

Thanks
Fabio

User avatar
magick
Site Admin
Posts: 10994
Joined: 2003-05-31T11:32:55-07:00

Re: Read RAW Image

Post by magick » 2011-05-06T05:00:33-07:00

Set the image filename as uyvy:frame1.raw.

Post Reply