Main Content

read

Read data from denoisingImageDatastore

Description

data = read(dnimds) returns a batch of data from a denoising image datastore, dnimds. Subsequent calls to the read function continue reading from the endpoint of the previous call.

[data,info] = read(dnimds) also returns information about the extracted data, including metadata, in info.

Input Arguments

collapse all

Denoising image datastore, specified as a denoisingImageDatastore object. The datastore specifies a MiniBatchSize (Deep Learning Toolbox) number of observations in each batch, and a numObservations (Deep Learning Toolbox) total number of observations.

Output Arguments

collapse all

Output data, returned as a table with MiniBatchSize number of rows.

For the last batch of data in the datastore dnimds, if numObservations is not cleanly divisible by MiniBatchSize, then read returns a partial batch containing all the remaining observations in the datastore.

Information about read data, returned as a structure array. The structure array can contain the following fields.

Field NameDescription
CurrentFileIndicesCurrent read index of the denoising image datastore.

Version History

Introduced in R2018a