Package gov.nih.mipav.model.file
Class FileSVS.TIFFYCbCrInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
gov.nih.mipav.model.file.FileSVS.IntFilterInputStream
gov.nih.mipav.model.file.FileSVS.TIFFYCbCrInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
FileSVS
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleprivate doubleprivate doubleprivate doubleprotected doubleprotected doubleprotected doubleprivate doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleFields inherited from class java.io.FilterInputStream
in -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intconvert(int YCbCr) doubledoubledoubleintread()intread(int[] buf, int off, int len) voidsetColourCoefficients(double LumaRed, double LumaGreen, double LumaBlue) voidsetRfBWCb(double black, double white) voidsetRfBWCr(double black, double white) voidsetRfBWY(double black, double white) Methods inherited from class gov.nih.mipav.model.file.FileSVS.IntFilterInputStream
read, setInMethods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, reset, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
LumaRed
protected double LumaRed -
LumaGreen
protected double LumaGreen -
LumaBlue
protected double LumaBlue -
RfBY
protected double RfBY -
RfBCb
protected double RfBCb -
RfBCr
protected double RfBCr -
RfWY
protected double RfWY -
RfWCb
protected double RfWCb -
RfWCr
protected double RfWCr -
RCr
private double RCr -
BCb
private double BCb -
GY
private double GY -
GB
private double GB -
GR
private double GR
-
-
Constructor Details
-
TIFFYCbCrInputStream
- Throws:
IOException
-
-
Method Details
-
setColourCoefficients
public void setColourCoefficients(double LumaRed, double LumaGreen, double LumaBlue) -
getLumaRed
public double getLumaRed() -
getLumaGreen
public double getLumaGreen() -
getLumaBlue
public double getLumaBlue() -
setRfBWY
public void setRfBWY(double black, double white) -
setRfBWCb
public void setRfBWCb(double black, double white) -
setRfBWCr
public void setRfBWCr(double black, double white) -
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
convert
- Throws:
IOException
-
read
- Specified by:
readin classFileSVS.IntFilterInputStream- Throws:
IOException
-