[magick-users] yuv -> rgb convertion difficulty
Fred Weinhaus
fmw at alink.net
Wed Sep 9 21:27:26 PDT 2009
best I can suggest is to look at
http://www.imagemagick.org/script/command-line-options.php#colorspace
other than that you need answers from the IM folks as I am not an
expert on these matters.
First from the above link you will see that YUV is not the same as YCbCr.
Second I suspect you get Y, Cb, Cr and not Y, Cb, Y, Cr (3 channels
and not 4) from IM
Or Y, U, V again as 3 channels from IIM
You can try
convert yuvimage -separate yuvimage_%d.png
and see how many images you get (yuvimage_0.png, yuvimage_1.png ....)
I suspect 3, the first is Y, the second is U and the third is V
or
the first is Y, the second is Cb and the third is Cr
depending upon your input format.
More information about the Magick-users
mailing list