Image Browser - Browse images using thumbnails - MATLAB (original) (raw)
Main Content
Browse images using thumbnails
Description
The Image Browser app lets you view thumbnails of a collection of images in folders or image datastore. You can select images to view information such as the image size and data type, or open an image in one of several Image Processing Toolbox™ apps. You can save images displayed in the app to the MATLAB® workspace as an ImageDatastore object.
Open the Image Browser App
- MATLAB Toolstrip: On the Apps tab, under Image Processing and Computer Vision, click the Image Browser app icon.
- MATLAB command prompt: Enter
imageBrowser
.
Examples
Open the app using the imageBrowser
function. Specify the name of the folder that contains the images that you want to view. When you specify the name of the folder, Image Browser displays only thumbnails of the images in that folder. The app ignores the images in subfolders. For example, to view thumbnails of the images in the imdata
folder, use this command:
imageBrowser(fullfile(matlabroot,'toolbox/images/imdata/'))
If you want to view thumbnails of the images in the folder and all subfolders, you must load the images into the app using the Add button on the app toolstrip.
First, clear the current collection of images from the app by clicking New. Then, click Add > Folder, include subfolders on the app toolstrip. In the Select Folder dialog box, select the top level folder. The app displays thumbnails of the images in subfolders after the thumbnails of images in the top level folder.
Create an image datastore consisting of the JPEG images in the imdata
folder.
imDir = fullfile(matlabroot,'toolbox/images/imdata'); imds = imageDatastore(imDir,FileExtensions=[".jpg",".jpeg"]);
Open the app using the imageBrowser
function, specifying the name of the datastore.
Related Examples
Programmatic Use
imageBrowser
opens the Image Browser app.
imageBrowser(`folder`)
opens the Image Browser app and loads all images in the folderfolder
. The app ignores images in subfolders.
imageBrowser(`imds`)
opens the Image Browser app and loads all images in the image datastoreimds
.
Version History
Introduced in R2016b
Image Browser supports a greater set of options for curating a collection of images:
- Add images in directories or datastores to an already opened collection of images
- Remove a subset of images from a collection
- Export a subset of images to an image datastore
- Export images from a datastore to another datastore