Reads aTag Image File Format (TIFF) file.
NOTE: This function was retired with version 6.1, because the new IMAGE_READ function provides the same capability. Although DC_READ_TIFF is still available for backward compatibility, we strongly recommend that you use IMAGE_READ instead.
Colormap The TIFF image colormap. If present, the colormap associated with the TIFF image is returned. Colormap is returned as a 2-dimensional array of long integers.
Compression The compression style used in the TIFF image. Compression is returned as an integer; expected values are:
Imagewidth The TIFF image width. If present, the TIFF image width is returned. Imagewidth is returned as a long integer value.
Imgnum The number of the image to read from the file. If not provided, the first image (image number 0) is read.
Order If nonzero, Order reverses the y-axis direction of the original image. In other words, if the original image is stored from top to bottom, the returned image is stored from bottom to top.
PhotometricInterpretation The class of the TIFF image. If present, retrieves photometric information from the TIFF image header. PhotometricInterpretation is returned as an integer; expected values are:
The first four classes of TIFF images are explained in more detail in the PV-WAVE Programmer's Guide.
PlanarConfig The arrangement of the RGB information. If present, retrieves RGB configuration information from the TIFF image header. PlanarConfig is returned as an integer; expected values are:
ResolutionUnit The type of resolution units specified in the TIFF image header. If present, retrieves unit information from the TIFF image. ResolutionUnit is returned as an integer; expected values are:
YResolution The number of pixels per ResolutionUnit in the Y direction. If present, retrieves information about the number of Y pixels from the TIFF image header. YResolution is returned as a floating-point value.
For more information about the output keywords described in this section, see the Technical Memorandum, Tag Image File Format Specification, Revision 5.0 (FINAL), published jointly by Aldus(TM) Corporation and Microsoft® Corporation.
DC_READ_TIFF sets the dimension and type (byte array) of imgarr automatically, depending on the width and height of the image. For 24-bit images, the interleaving method (see description of PlanarConfig keyword) is considered, as well. PV-WAVE uses the following guidelines to dimension imgarr:
NOTE: Compressed TIFF images are uncompressed before being transferred to the named variable.
status = DC_READ_TIFF('oxford.tif', oximage)
oxford.tif
and returns the TIFF image data contained in the first image of that file. The data is transferred to the variable oximage
.
status = DC_READ_TIFF('shamu.tif', shamu, $ Imagewidth=xsz, Imagelength=ysz, $ PlanarConfig=planar, Photometric=photo)
shamu.tif
. The width and length of the image are returned in xsz
and ysz
, respectively. PlanarConfig and PhotometricInterpretation are returned in planar
and photo
, respectively.The fact that the PlanarConfig keyword is being returned with the function call suggests that the image in
shamu.tif
is a full-color RGB (24-bit) image. The PlanarConfig keyword is used to return the image interleaving method for 24-bit images.
See the PV-WAVE Programmer's Guide for more information about TIFF image I/O.