Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: How to calculate the angle between two images?
Replies: 41   Last Post: Dec 8, 2012 11:02 PM

 Messages: [ Previous | Next ]
 Dave Robinson Posts: 1,338 Registered: 1/25/05
Re: How to calculate the angle between two images?
Posted: Apr 3, 2009 10:39 AM

Skeptic <skeptic@mailinator.com> wrote in message <6dc4d317-8b62-4e03-8bea-662e35f6eb67@d38g2000prn.googlegroups.com>...
> 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

Regards

Dave Robinson

Date Subject Author
4/3/09 khoo
4/3/09 Dave Robinson
4/3/09 khoo
4/3/09 Dave Robinson
4/3/09 khoo
4/3/09 Dave Robinson
4/3/09 khoo
4/3/09 khoo
4/4/09 khoo
4/4/09 Dave Robinson
4/4/09 khoo
4/4/09 khoo
4/5/09 khoo
4/5/09 Dave Robinson
4/5/09 khoo
4/5/09 khoo
4/5/09 Dave Robinson
4/5/09 khoo
4/6/09 khoo
4/6/09 Dave Robinson
4/6/09 khoo
4/6/09 Dave Robinson
4/6/09 khoo
4/6/09 Dave Robinson
4/6/09 khoo
4/6/09 khoo
4/6/09 khoo
4/7/09 khoo
4/7/09 khoo
4/7/09 Dave Robinson
12/8/12 Jeff
4/3/09 Skeptic
4/3/09 Dave Robinson
4/3/09 Roger Stafford
4/3/09 khoo
4/3/09 Roger Stafford
4/3/09 ImageAnalyst
4/3/09 khoo
4/4/09 khoo
4/6/09 Matt
4/6/09 khoo
4/6/09 Matt