Read image using RGBA interface
Get all image data and its associated alpha matting from a TIFF file.
Tiff object for an image file.
t = Tiff('example.tif','r');
Read the image data and the associated alpha matting.
[RGB,A] = readRGBAImage(t);
Display the image.
RGB— Image data
Image data, returned as a
numeric array. Where
n are the
height and width of the image, respectively.
readRGBAImage function can transform the pixel
values based on specifications in these tags:
alpha— Alpha matting
Alpha matting associated with the image, returned as an
n numeric array. Where
n are the height and width
of the image, respectively.
If the image does not have associated alpha matting, then
alpha is a matrix with all values set to