Read data from a datastore
C— Output data
Output data, returned as an M-by-2 cell array, cell array of categorical matrices, or a table.
|N-by-2 cell matrix.
N must be less than or equal to
The first column must be a cell vector that contains bounding boxes. Each element in the cell vector contains M-by-4 matrices in the format [x,y,width,height].
The second column must be a cell vector that contains the label names corresponding to each bounding box. Label names are represented as an M-by-1 categorical vector.
info— Information about read data
Information about read data, returned as a structure array. The structure array can contain the following fields.
|Fully resolved path containing the path string, name
of the file, and file extension. For
Total file size, in bytes. For MAT-files,
|Fully resolved path containing the path string, name of the image file, and file extension.|
|Fully resolved path containing the path string, name of the pixel label file, and file extension.|
|Starting position of each |
read(ds) returns an error if there is no more data in the
read(ds) to avoid the error.