Path: news.mathworks.com!not-for-mail
From: "Alan B" <monguin61REM@OVEyahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: image processing help
Date: Thu, 23 Jul 2009 15:47:01 +0000 (UTC)
Organization: UT
Lines: 10
Message-ID: <h4a0ll$9lf$1@fred.mathworks.com>
References: <h49vah$pd6$1@fred.mathworks.com>
Reply-To: "Alan B" <monguin61REM@OVEyahoo.com>
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 1248364021 9903 172.30.248.35 (23 Jul 2009 15:47:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 23 Jul 2009 15:47:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1446885
Xref: news.mathworks.com comp.soft-sys.matlab:557880


"Mathew Thomas" <mathew99@gmail.com> wrote in message <h49vah$pd6$1@fred.mathworks.com>...
> Hello,
> 
> I have an image (for eg, a bone). I have found the coordinate points (x,y) on the four sides (one on each side). Now I want to crop the image such that the the coordinate points are perpendicular to adjacent points. Any ideas are welcome.
> 
> Thank you,
> 
> Mathew.

A point can't be perpendicular to anything, but it sounds like you want to first rotate the image so that your non-axis-aligned rectangle becomes axis-aligned, then crop to contain just that rectangle. Is that right? imrotate and imcrop will probably help.