Main Content


Read specified pixel label data file


C = readimage(pxds,k) returns the kth file in the pixel label datastore specified by pxds.

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

Input Arguments

collapse all

Input pixel label datastore, specified as a PixelLabelDatastore object.

File number to read from the pixel label datastore, specified as a positive integer.

Output Arguments

collapse all

Output data, returned as a categorical matrix.

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.

Total file size, in bytes.

Version History

Introduced in R2017b

See Also