I've a project at the moment, in Java, which uses a filetype which is inherently in the YCbCr colorspace. Within this, there is a lot of number crunching happening behind the scenes (which I've had to code) to convert to RGB from the YCbCr values. This is done per-pixel, per-frame, at 25 frames per second...
The project must be entirely written in software, and must be platform independant.
If I could skip this step, and still create an image from an array, but in a YCbCr format, I could save a lot of work...
Thanks in advance.
You can probably do this with the ColorSpace class. I would be surprised if you needed to convert each YCbCr value individually. I'm sure the java.awt.image package will provide classes for handling this. You may find something in Chapter 5 of Java Advanced Imaging .
基于McDowell的回答, 这似乎很有意义,它解释了如何进行色彩空间转换。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.