Main Content

readByIndex

Read data specified by index from augmentedImageDatastore

Description

data = readByIndex(auimds,ind) returns a subset of observations from an augmented image datastore, auimds. The desired observations are specified by indices, ind.

[data,info] = readByIndex(auimds,ind) also returns information about the observations, including metadata, in info.

Input Arguments

collapse all

Augmented image datastore, specified as an augmentedImageDatastore object.

Indices of observations, specified as a vector of positive integers.

Output Arguments

collapse all

Observations from the datastore, returned as a table with length(ind) number of rows.

Information about read data, returned as a structure array with the following fields.

Field NameDescription
MiniBatchIndicesNumeric vector of indices.

Introduced in R2018a