This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Class: Tiff

Read entire image


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


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

[Y,Cb,Cr] = read(tiffobj) 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.


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

t = Tiff('example.tif','r');
imageData = read(t);
Was this topic helpful?