从RGB转换成YCbCr // Purpose: // Save RGB->YCC colorspace conversion for reuse, only computing once // so dont need multiply in color conversion later /* Notes:** YCbCr is defined per CCIR 601-1, except that Cb and Cr are* normal…
源:http://blog.sina.com.cn/s/blog_4d80055a01000atu.html import java.lang.Math; import java.awt.*; public class ColorConverter{ public ColorConverter(){ } //RGB转换CMYk public int[] rgb2cmyk(int R,int G,int B){ int cmyk []= new int[4]; cmyk[3]=(int)(Math…