read

Read next consecutive file from pixel label datastore

Syntax

C = read(pxds)
[C,info] = read(pxds)

Description

C = read(pxds) returns data from a pixel label datastore. Subsequent calls to the read function continue reading from the endpoint of the previous call.

[C,info] = read(pxds) also returns information about the extracted data in info, including metadata.

Input Arguments

collapse all

Input pixel label datastore, specified as a PixelLabelDatastore object.

Output Arguments

collapse all

Output data, returned as a categorical matrix or a cell array of categorical matrices (when ReadSize is greater than 1.)

Information about read data, returned as a structure array. The structure array can contain the following fields.

Field NameDescription
FilenameFully resolved path containing the path string, name of the file, and file extension. For PixelLabelDatastore objects whose ReadSize property is greater than 1, Filename is a cell array of file names corresponding to each image.
FileSize

Total file size, in bytes. For MAT-files, FileSize is the total number of key-value pairs in the file. For PixelLabelDatastore objects whose ReadSize property is greater than 1, FileSize is a vector of file sizes corresponding to each image.

Introduced in R2017b