Color Spaces



I convert a sRGB into a YCbCr Image with:

ColorSpace cs = ColorSpace.getInstance(ColorSpace.CS_TYPE_YCbCr);
ColorConvertOp op = new ColorConvertOp(cs, null);
bufferedImage = op.filter(bufferedImage, null);

How can I select now the Y-, Cb- and Cr-Component seperatly?


.



Relevant Pages

  • Re: Really interesting graphics/image problem
    ... So it turns out that the problem is a ColorSpace mismatch between the underlying image and the transparent JPanel. ... BufferedImage convertImage{ ... ColorConvertOp op = new ColorConvertOp( ...
    (comp.lang.java.gui)
  • Re: Transparent BG for loaded Image
    ... ColorConvertOp. ... Those Ops are actually pretty cool, you put a BufferedImage ... how to initialize them right. ...
    (comp.lang.java.programmer)
  • Re: drawImage with scale on BufferedImage performance issue
    ... I have noticed a big performance hit if I call drawImage(image, x, y, ... I need a bufferedimage because I am creating a gray image off another ... If both your images can be BufferedImages then you can get a pretty good improvement over drawing by using a ColorConvertOp. ... Knute Johnson ...
    (comp.lang.java.gui)