Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Displaying grid of images
Date: Mon, 23 Mar 2009 12:44:01 +0000 (UTC)
Organization: Oxford University
Lines: 6
Message-ID: <gq806h$jbo$1@fred.mathworks.com>
References: <gq7016$a24$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1237812241 19832 172.30.248.37 (23 Mar 2009 12:44:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 23 Mar 2009 12:44:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1073021
Xref: news.mathworks.com comp.soft-sys.matlab:526909


"Yaroslav Bulatov" wrote:
> How can I display a grid of images with no space between the images? I've tried subplot->imshow->subplotspace, but it's hard to get it to leave no space, and it's very slow to execute

ImageAnalyst is correct. IMDISP on the FEX (http://www.mathworks.com/matlabcentral/fileexchange/22387) will do this easily for you, creating a grid of subplots. Simply stack the images along the 4th dimension or put them in a cell array, and use as the first argument. There is a 'Border' option (see help imdisp) which defines the space between images; the default is 0, leaving no space.

Note that MATLAB's montage function will do something similar, but it creates a single image from the input images and displays this.