Main Content

readByIndex

Read data specified by index frompixelLabelImageDatastore

Description

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

Input Arguments

collapse all

Pixel label image datastore, specified as apixelLabelImageDatastoreobject.

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. The structure array can contain the following fields.

Field Name Description
Filename Filenameis a fully resolved path containing the path string, name of the file, and file extension.
FileSize

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

Version History

Introduced in R2018a