Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
TiffDecoder Class Reference

Public Member Functions

 TiffDecoder (String directory, String name)
 
 TiffDecoder (InputStream in, String name)
 
void decodeImageDescription (byte[] description, FileInfo fi)
 
void enableDebugging ()
 
FileInfo[] getTiffInfo () throws IOException
 

Static Public Attributes

static final int NEW_SUBFILE_TYPE = 254
 
static final int IMAGE_WIDTH = 256
 
static final int IMAGE_LENGTH = 257
 
static final int BITS_PER_SAMPLE = 258
 
static final int COMPRESSION = 259
 
static final int PHOTO_INTERP = 262
 
static final int IMAGE_DESCRIPTION = 270
 
static final int STRIP_OFFSETS = 273
 
static final int SAMPLES_PER_PIXEL = 277
 
static final int ROWS_PER_STRIP = 278
 
static final int STRIP_BYTE_COUNT = 279
 
static final int X_RESOLUTION = 282
 
static final int Y_RESOLUTION = 283
 
static final int PLANAR_CONFIGURATION = 284
 
static final int RESOLUTION_UNIT = 296
 
static final int SOFTWARE = 305
 
static final int DATE_TIME = 306
 
static final int COLOR_MAP = 320
 
static final int SAMPLE_FORMAT = 339
 
static final int METAMORPH1 = 33628
 
static final int METAMORPH2 = 33629
 
static final int IPLAB = 34122
 
static final int NIH_IMAGE_HDR = 43314
 

Protected Attributes

RandomAccessStream in
 
boolean debugMode
 

Detailed Description

Decodes uncompressed, multi-image TIFF files.

Definition at line 7 of file TiffDecoder.java.

Member Function Documentation

void decodeImageDescription ( byte[]  description,
FileInfo  fi 
)
inline

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.

Definition at line 152 of file TiffDecoder.java.


The documentation for this class was generated from the following file: