Main Content


Read data specified by index from pixelLabelImageDatastore


data = readByIndex(pximds,ind) returns a subset of observations from a pixel label image datastore, pximds. The desired observations are specified by indices, ind.

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

Input Arguments

collapse all

Pixel label image datastore, specified as a pixelLabelImageDatastore 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. The structure array can contain the following fields.

Field NameDescription
FilenameFilename is a fully resolved path containing the path string, name of the file, and file extension.

Total file size, in bytes. For MAT-files, FileSize is the total number of key-value pairs in the file.

Version History

Introduced in R2018a