%% Get Image Data and Associated Alpha Matting
% Get all image data and its associated alpha matting from a TIFF file.
% Create a 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.

imshow(RGB)

% Close the Tiff object.

close(t);

% Copyright 2012 The MathWorks, Inc.