Main Content

Image Browser

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.

Image Browser app

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

expand all

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/'))

imageBrowser.png

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.

imageBrowser_with_subfolders.png

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.

imageBrowser(imds)

ImageBrowser_Datastore.png

Related Examples

Programmatic Use

expand all

imageBrowser opens the Image Browser app.

imageBrowser(folder) opens the Image Browser app and loads all images in the folder folder. The app ignores images in subfolders.

imageBrowser(imds) opens the Image Browser app and loads all images in the image datastore imds.

Version History

Introduced in R2016b

expand all