How to convert a AYUV image to an RGB one?
Posted: 2012-03-01T10:24:39-07:00
I have a 4:4:4 four component AYUV image (8-bit precision per component) in YCbCr space. I am trying to convert it to any other non-lossy image format in RGB space. No matter what I try, the colors in the output image look wrong as if they are in the wrong space. Anybody have any hints on what command line parameters I need to pass to "convert"?
This is what I thought I should use:
convert -size 640x480 -colorspace YcbCr -sampling-factor 4:4:4 input.yuv output.png
Does -colorspace set the color space of the output image or does it define the color space of the input image? I think this could be the problem since I am basically trying to convert both the image format and the color space at the same time.
Thanks!
This is what I thought I should use:
convert -size 640x480 -colorspace YcbCr -sampling-factor 4:4:4 input.yuv output.png
Does -colorspace set the color space of the output image or does it define the color space of the input image? I think this could be the problem since I am basically trying to convert both the image format and the color space at the same time.
Thanks!