public class PhotometricInterpreterYCbCr extends PhotometricInterpreter
bitsPerSample, height, predictor, samplesPerPixel, width
Constructor and Description |
---|
PhotometricInterpreterYCbCr(double[] fYCbCrCoefficients,
int[] fYCbCrPositioning,
int[] fYCbCrSubSampling,
double[] fReferenceBlackWhite,
int fSamplesPerPixel,
int[] fBitsPerSample,
int Predictor,
int width,
int height) |
Modifier and Type | Method and Description |
---|---|
int |
convertYCbCrtoRGB(int Y,
int Cb,
int Cr)
This method converts a YUV (aka YCbCr) colorspace to a RGB colorspace.
|
void |
interpretPixel(BufferedImage bi,
int[] samples,
int x,
int y) |
int |
limit(int value,
int min,
int max) |
dumpstats
public PhotometricInterpreterYCbCr(double[] fYCbCrCoefficients, int[] fYCbCrPositioning, int[] fYCbCrSubSampling, double[] fReferenceBlackWhite, int fSamplesPerPixel, int[] fBitsPerSample, int Predictor, int width, int height)
public int limit(int value, int min, int max)
public int convertYCbCrtoRGB(int Y, int Cb, int Cr)
Y
- The Y component set.Cb
- The Cb component set.Cr
- The Cr component set.public void interpretPixel(BufferedImage bi, int[] samples, int x, int y) throws ImageReadException, IOException
interpretPixel
in class PhotometricInterpreter
ImageReadException
IOException
Copyright © 2007-2012. All Rights Reserved.