(Not recommended) Define collection of images
The imageSet object is not recommended. Instead, manage collections of
image data using an imageDatastore object. For more information, see
Compatibility Considerations.
An imageSet object stores information about an image data set or
a collection of image data sets. You can use this object to manage your image data. The object
contains image descriptions, locations of images, and the number of images in your collection.
imgSet = imageSet( creates an
imageLocation)imageSet object.
imgSetVector = imageSet(
returns a vector of image sets found through a recursive search starting from
imgFolder,'recursive')imgFolder. The imgSetVector output is a
1-by-NumFolders vector of imageSet objects, where
NumFolders is the number of folders that contain at least one
image.