This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

readByIndex

Read data specified by index from pixelLabelImageDatastore

Syntax

data = readByIndex(pximds,ind)
[data,info] = readByIndex(pximds,ind)

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

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

Introduced in R2018a