%% File Information
% Create a datastore object containing two images and read the second image.

imds = imageDatastore({'street1.jpg','street2.jpg'});
[img,info] = readimage(imds,2);

% The info structure contains the following information for the second image: Filename, FileSize, and Label. To display the filename and path, type info.Filename in the command window. To display the file size, type info.FileSize.
% Copyright 2012 The MathWorks, Inc.