- java.lang.Object
-
- ij.io.TiffDecoder
-
public class TiffDecoder extends java.lang.ObjectDecodes single and multi-image TIFF files. The LZW decompression code was contributed by Curtis Rueden.
-
-
Field Summary
Fields Modifier and Type Field Description static intARTISTstatic intBITS_PER_SAMPLEstatic intCOLOR_MAPstatic intCOMPRESSIONstatic intDATE_TIMEprotected booleandebugModestatic intHOST_COMPUTERstatic intIMAGE_DESCRIPTIONstatic intIMAGE_LENGTHstatic intIMAGE_WIDTHprotected RandomAccessStreaminstatic intIPLABstatic intJPEG_TABLESstatic intMETA_DATAstatic intMETA_DATA_BYTE_COUNTSstatic intMETAMORPH1static intMETAMORPH2static intNEW_SUBFILE_TYPEstatic intNIH_IMAGE_HDRstatic intORIENTATIONstatic intPHOTO_INTERPstatic intPLANAR_CONFIGURATIONstatic intPREDICTORstatic intRESOLUTION_UNITstatic intROWS_PER_STRIPstatic intSAMPLE_FORMATstatic intSAMPLES_PER_PIXELstatic intSOFTWAREstatic intSTRIP_BYTE_COUNTstatic intSTRIP_OFFSETSstatic intTILE_WIDTHstatic intX_RESOLUTIONstatic intY_RESOLUTION
-
Constructor Summary
Constructors Constructor Description TiffDecoder(java.io.InputStream in, java.lang.String name)TiffDecoder(java.lang.String directory, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenableDebugging()FileInfo[]getTiffInfo()voidsaveImageDescription(byte[] description, FileInfo fi)Save the image description in the specified FileInfo.voidsaveMetadata(java.lang.String name, java.lang.String data)
-
-
-
Field Detail
-
NEW_SUBFILE_TYPE
public static final int NEW_SUBFILE_TYPE
- See Also:
- Constant Field Values
-
IMAGE_WIDTH
public static final int IMAGE_WIDTH
- See Also:
- Constant Field Values
-
IMAGE_LENGTH
public static final int IMAGE_LENGTH
- See Also:
- Constant Field Values
-
BITS_PER_SAMPLE
public static final int BITS_PER_SAMPLE
- See Also:
- Constant Field Values
-
COMPRESSION
public static final int COMPRESSION
- See Also:
- Constant Field Values
-
PHOTO_INTERP
public static final int PHOTO_INTERP
- See Also:
- Constant Field Values
-
IMAGE_DESCRIPTION
public static final int IMAGE_DESCRIPTION
- See Also:
- Constant Field Values
-
STRIP_OFFSETS
public static final int STRIP_OFFSETS
- See Also:
- Constant Field Values
-
ORIENTATION
public static final int ORIENTATION
- See Also:
- Constant Field Values
-
SAMPLES_PER_PIXEL
public static final int SAMPLES_PER_PIXEL
- See Also:
- Constant Field Values
-
ROWS_PER_STRIP
public static final int ROWS_PER_STRIP
- See Also:
- Constant Field Values
-
STRIP_BYTE_COUNT
public static final int STRIP_BYTE_COUNT
- See Also:
- Constant Field Values
-
X_RESOLUTION
public static final int X_RESOLUTION
- See Also:
- Constant Field Values
-
Y_RESOLUTION
public static final int Y_RESOLUTION
- See Also:
- Constant Field Values
-
PLANAR_CONFIGURATION
public static final int PLANAR_CONFIGURATION
- See Also:
- Constant Field Values
-
RESOLUTION_UNIT
public static final int RESOLUTION_UNIT
- See Also:
- Constant Field Values
-
SOFTWARE
public static final int SOFTWARE
- See Also:
- Constant Field Values
-
DATE_TIME
public static final int DATE_TIME
- See Also:
- Constant Field Values
-
ARTIST
public static final int ARTIST
- See Also:
- Constant Field Values
-
HOST_COMPUTER
public static final int HOST_COMPUTER
- See Also:
- Constant Field Values
-
PREDICTOR
public static final int PREDICTOR
- See Also:
- Constant Field Values
-
COLOR_MAP
public static final int COLOR_MAP
- See Also:
- Constant Field Values
-
TILE_WIDTH
public static final int TILE_WIDTH
- See Also:
- Constant Field Values
-
SAMPLE_FORMAT
public static final int SAMPLE_FORMAT
- See Also:
- Constant Field Values
-
JPEG_TABLES
public static final int JPEG_TABLES
- See Also:
- Constant Field Values
-
METAMORPH1
public static final int METAMORPH1
- See Also:
- Constant Field Values
-
METAMORPH2
public static final int METAMORPH2
- See Also:
- Constant Field Values
-
IPLAB
public static final int IPLAB
- See Also:
- Constant Field Values
-
NIH_IMAGE_HDR
public static final int NIH_IMAGE_HDR
- See Also:
- Constant Field Values
-
META_DATA_BYTE_COUNTS
public static final int META_DATA_BYTE_COUNTS
- See Also:
- Constant Field Values
-
META_DATA
public static final int META_DATA
- See Also:
- Constant Field Values
-
in
protected RandomAccessStream in
-
debugMode
protected boolean debugMode
-
-
Method Detail
-
saveImageDescription
public void saveImageDescription(byte[] description, FileInfo fi)Save the image description in the specified FileInfo. ImageJ saves spatial and density calibration data in this string. For stacks, it also saves the number of images to avoid having to decode an IFD for each image.
-
saveMetadata
public void saveMetadata(java.lang.String name, java.lang.String data)
-
enableDebugging
public void enableDebugging()
-
getTiffInfo
public FileInfo[] getTiffInfo() throws java.io.IOException
- Throws:
java.io.IOException
-
-