imdisp

Display multiple images as a montage of subplots
10K Downloads
Updated 8 Jul 2014

View License

This function combines the functionality of IMAGE, IMAGESC, IMSHOW and MONTAGE.
In particular, it improves upon the MONTAGE function in the Image Processing Toolbox in these ways:
- Image Processing Toolbox not required
- Images are placed in subplots, so can be zoomed separately.
- Small images are properly enlarged on screen.
- Gaps can be placed between images.
- Images can be viewed on a grid smaller than the number of images.
- Surplus images can be viewed by scrolling through pages.
- A directory of images can be viewed easily, by calling IMDISP with no arguments (a visual DIR).

To see two useful modes of operation try the following:

load mri
figure;
imdisp(D, bone(256));
figure;
imdisp(D, bone(256), 'Size', 1);

Use arrow keys to scroll through the image set with the single image.

This function is now included in the sc package:
http://www.mathworks.com/matlabcentral/fileexchange/16233
The version here will not be maintained.

Cite As

Oliver Woodford (2024). imdisp (https://www.mathworks.com/matlabcentral/fileexchange/22387-imdisp), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.12.0.0

Updated description as this file is included in the sc package.

1.11.0.0

Fix to bug introduced in previous update, which caused an error when supplying multiple images in a cell array.

1.10.0.0

Added support for multi-frame image files

1.9.0.0

Fixed bug affecting indexed images specified by filename (thanks to Christos Strubulis for helping to find it). Added support for more file formats for images specified by filename.

1.8.0.0

Improved image placement when using multiple monitors. The image should now always appear entirely on the screen.

1.7.0.0

A few bug fixes. Also made scrolling through image sets more responsive.

1.6.0.0

Faster when displaying an array of images. Can accept limits as an input (without the parameter name first), like imagesc and imshow.

1.4.0.0

Important bug fixes

1.3.0.0

Improved functionality for single images, to be more like IMSHOW. Name changed from MONTAGE to IMDISP to reflect this.

1.2.0.0

Bug fix

1.1.0.0

Added ability to scroll by row. Bug fixes.

1.0.0.0