How to convert Magick::Image to YUV 4:2:0 format?
Posted: 2013-11-25T05:13:22-07:00
I converted a image with the below ImageMagick command line option.
$convert input_image.jpg -sampling-factor 4:2:0 output_image.jpg
I used ImageMagick/bin/convert and Now, I want to implement it with Magick++.
I have a Magick::Image instance which read the pixel values with .read() method.
I'd like to do chromatic downsampling in YUV format
and want to save this instance to the file, as I did in the above command line options.
I cannot find any method to convert Magick::Image to YUV4:2:0 format.
Can you help me?
Then I will save this Magick::Image instance as Jpeg, 75 quality.
Thanks
$convert input_image.jpg -sampling-factor 4:2:0 output_image.jpg
I used ImageMagick/bin/convert and Now, I want to implement it with Magick++.
I have a Magick::Image instance which read the pixel values with .read() method.
I'd like to do chromatic downsampling in YUV format
and want to save this instance to the file, as I did in the above command line options.
I cannot find any method to convert Magick::Image to YUV4:2:0 format.
Can you help me?
Then I will save this Magick::Image instance as Jpeg, 75 quality.
Thanks