How to work with BufferedImage and YCbCr colorspace?
Posted
by Onlyx
on Stack Overflow
See other posts from Stack Overflow
or by Onlyx
Published on 2010-05-06T09:27:16Z
Indexed on
2010/05/06
9:28 UTC
Read the original article
Hit count: 364
Hi everyone!
I need to translate colors in bitmap loaded to BufferedImage from RGB to YCbCr (luminance and 2 channels chrominance) and back after process.
I made it with functions used like rgb2ycbcr() in main method for each pixel, but it isn't so smart solution. I should use ColorSpace and ColorModel classes to get BufferedImage with correct color space. It would be more flexible method, but I don't know how to do that.
I'm lost and I need some tips. Can somebody help me?
© Stack Overflow or respective owner