%% Read All Data in ImageDatastore in Parallel
% Create an ImageDatastore object containing four images.

imds = imageDatastore({'street1.jpg','street2.jpg','peppers.png','corn.tif'});

% Read all the data in the datastore in parallel.

T = readall(imds, 'UseParallel', true);

% Examine the output variable T.

whos T

% Copyright 2020 The MathWorks, Inc.