From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to calculate the angle between two images?
Date: Fri, 3 Apr 2009 14:39:01 +0000 (UTC)
Organization: STFC Rutherford Appleton Laboratory
Lines: 29
Message-ID: <gr5725$e6e$>
References: <gr4ten$oks$> <gr4u55$add$> <>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: 1238769541 14542 (3 Apr 2009 14:39:01 GMT)
NNTP-Posting-Date: Fri, 3 Apr 2009 14:39:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 968489
Xref: comp.soft-sys.matlab:530065

Skeptic <> wrote in message <>...
> Dave Robinson wrote a nice algorithm:
> > One method that I found for easily determining the relative
> > angle of 'twist' between a known reference image  and a rotated image was accomplished very reliably even for arbitrary images.
> >
> [snip]
> > Dave Robinson
> -------------------------------------------------------
> Dave:
> Nice.  Clever yet makes good intuitive sense.  Does it still perform
> well under stress conditions such as:
> 1.  image contrasts don't match
> 2. rotations, such as 45 degrees, where some information is rotated
> out and other new info is rotated in (think of an aerial photo rotated
> 45 degrees).
> 3. rotation is not about the center of the image.
> -ImageAnalyst

1) My application had relatively controlled lighting, but as the angle is computed indirectly via a ratio then it should be fairly robust against variable contrast

2) Again this wasn't a problem to me, my 'credit cards' were on a featureless conveyor belt. In general I think you have a good point.

3) The angle of rotation is translation independent, so apart from point 2) where you bring in other image regions you are OK.

Thanks for your welcome input, it is nice to be able to bounce ideas with someone of your reputation


Dave Robinson