Read image using RGBA interface
[RGB,alpha] = readRGBAImage(tiffobj)
[RGB,alpha] = readRGBAImage(tiffobj) reads the image data from the TIFF
file associated with the
tiffobj using the RGBA interface.
RGB consists of an
colormetric image, where
n are the height and width of the
alpha is the associated
alpha matting. If the image does not have associated alpha
alpha is a matrix with all
values set to 255 (transparent).
The pixel values may be transformed depending upon the values of the following tags:
Return all image data as RGB, with associated alpha matting.
t = Tiff('example.tif','r'); t.setDirectory(2); [RGB,A] = t.readRGBAImage(); t.close();
This method corresponds to the
in the LibTIFF C API.
To use this method, you must be familiar with LibTIFF version
4.0.0, as well as the TIFF specification and technical notes. View
this documentation at
- TIFF Library and Utilities.