Quantcast

Documentation Center

  • Trial Software
  • Product Updates

read

Class: Tiff

Read entire image

Syntax

imageData = tiffobj.read()
[Y,Cb,Cr] = tiffobj.read()

Description

imageData = tiffobj.read() reads the image data from the current image file directory (IFD) in the TIFF file associated with the Tiff object, tiffobj.

[Y,Cb,Cr] = tiffobj.read()reads the YCbCr component data from the current directory in the TIFF file. Depending upon the values of the YCbCrSubSampling tag, the size of the Cb and Cr channels might differ from the Y channel.

Examples

Open a Tiff object and read data from the TIFF file:

t = Tiff('example.tif','r');
imageData = t.read();
t.close();

See Also

|

Tutorials

Was this topic helpful?