Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.fr>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to show figure without black portion?
Date: Sat, 19 Jul 2008 06:09:01 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 24
Message-ID: <g5s0dt$c4o$1@fred.mathworks.com>
References: <g5rkue$4bg$1@fred.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.fr>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1216447741 12440 172.30.248.35 (19 Jul 2008 06:09:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 19 Jul 2008 06:09:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:480417



"Nan W." <iiuu_chan@yahoo.co.jp> wrote in message
<g5rkue$4bg$1@fred.mathworks.com>...
> Dear all,
> 
> I would like to know whether there is any techniques to show
> to image in MATLAB without black portion border? My case is
> I tried to superimpose two images with one is the rotate
> version of another. So it would be great if the final image
> has no black area causing by 'imrotate'.
> 
> Thanks in advance.

Have you tried 'crop' option in the 4th argument of imrotate?

If it's not enough you might calculate the thickness of the
border from image size and rotation angle and throw manually
the borders.

I believe cropping will keep the same image size/image
magnification, but with a small border. Remove completely
the borders would change the original magnification, aspect
ratio, and image size.

Bruno