%% Read YCbCr TIFF Image Data
% Create a Tiff object for a file, get image data, and display the image.

t = Tiff('peppers_YCbCr_tiled.tif','r');
[Y,Cb,Cr] = read(t);

% Display the Y component of the image.

imshow(Y); 
title('Peppers Image (Y Component)');

% Close the Tiff object.

close(t);

% Copyright 2012 The MathWorks, Inc.