Main Content

readByIndex

Read data specified by index fromaugmentedImageDatastore

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, ininfo.

Input Arguments

collapse all

Augmented image datastore, specified as anaugmentedImageDatastoreobject.

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

Output Arguments

collapse all

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

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

Field Name Description
MiniBatchIndices Numeric vector of indices.

Introduced in R2018a