Create a datastore that maintains parity between the pair of images of the underlying datastores. For instance, create two separate image datastores, and then create a combined datastore representing the two underlying datastores.
Create an image datastore imds1 representing a collection of three images.
Preview the data in the combined datastore. The output is a 1-by-2 cell array. The two columns represent the first subset of data from the two underlying datastores imds1 and imds2, respectively.
Subset of data, returned as a table or an array depending on the type of
ds.
Type of Datastore
Data type of data
Description
TabularTextDatastore and
SpreadsheetDatastore
Table
Table with variables specified by the
SelectedVariableNames property. The
table contains at most eight rows.
ImageDatastore
Integer array
Array of integers corresponding to the first image.
The dimensions of the integer array depend on the type
of image:
For grayscale images,
data is
m-by-n.
For truecolor images,
data is
m-by-n-by-3.
For CMYK Tiff images,
data is
m-by-n-by-4.
The preview function
supports all image types supported by the
imread function. For more
information on the supported image types, see imread.
KeyValueDatastore
Table
Table with the variables Key and
Value.
FileDatastore
Table
Table containing the output returned by the read
function, specified by the 'ReadFcn'
parameter in the fileDatastore
function.
TransformedDatastore
Varies
The output is the same as the output returned by the
underlying datastore specified by the
UnderlyingDatastores property. For
example, if the underlying datastore is an image datastore
with a ReadSize property value of 1, then
data is returned as a integer
array.
CombinedDatastore
Cell array
Each element of the cell array contains the output
returned by the corresponding underlying datastore specified
by the UnderlyingDatastores
property.
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.