read
Read data from augmentedImageDatastore
Description
Input Arguments
auimds
— Augmented image datastore
augmentedImageDatastore
Augmented image datastore, specified as an augmentedImageDatastore
object. The datastore specifies a
MiniBatchSize
number of observations in each batch, and a
numObservations
total number of observations.
Output Arguments
data
— Output data
table
Output data, returned as a table. When the datastore
auimds
reads a full batch of data, the table has
MiniBatchSize
rows. For the last batch of data in the
datastore, if numObservations
is not cleanly divisible by
MiniBatchSize
, then read
returns
a partial batch containing all of the remaining observations.
The first column of the table, "input"
, returns the
data for each image. The table has a second column,
"response"
, when auimds
reads
data of these types:
Image files containing labeled image data, when the file names are specified by an image datastore
A numeric array containing categorical labels or numeric responses
A table that includes one or more responses
info
— Information about read data
structure array
Information about read data, returned as a structure array. The structure array can contain these fields.
Field Name | Description |
---|---|
Filename | Cell array of character vectors. Each element
is a fully resolved path containing the path string,
name of the file, and file extension for the
corresponding image. This field is present when
|
FileSize | Numeric vector. Each element is the total file
size, in bytes, of the corresponding
image. For
MAT-files, |
Label | Categorical vector. Each element is the
category label of the corresponding image. This
field is present when |
MiniBatchIndices | Numeric vector. Each element is the index of
the input image in the array. This field is present
when |
Version History
Introduced in R2018a
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)