Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
how to find the rotation angle of two template?

Subject: how to find the rotation angle of two template?

From: Ja-yun

Date: 28 May, 2010 10:48:04

Message: 1 of 2

i want to find the rotation angle of the contents in two template

i tried radon transform method, but it doesn't work for
fig 1 http://img231.imageshack.us/img231/7269/dogk.png
and
fig 2 http://img541.imageshack.us/img541/5199/dog90.png

instead , it works for fig1 and
fig 3 http://img706.imageshack.us/img706/1601/dog45.png
, and the angle can be found

Is there any way to find a rotation angle between fig1 and fing 2? thanks a million

Subject: how to find the rotation angle of two template?

From: Roger Stafford

Date: 28 May, 2010 18:09:09

Message: 2 of 2

"Ja-yun " <silodraw@gmail.com> wrote in message <hto714$m3d$1@fred.mathworks.com>...
> i want to find the rotation angle of the contents in two template
>
> i tried radon transform method, but it doesn't work for
> fig 1 http://img231.imageshack.us/img231/7269/dogk.png
> and
> fig 2 http://img541.imageshack.us/img541/5199/dog90.png
>
> instead , it works for fig1 and
> fig 3 http://img706.imageshack.us/img706/1601/dog45.png
> , and the angle can be found
>
> Is there any way to find a rotation angle between fig1 and fing 2? thanks a million

  The radon transform is based on integrating a function along a line until the line finally enters a region where the function remains all zero. Since the white background in a grey level picture is by definition up at some maximum value rather than zero, the line would have to be infinitely long, so your analysis would fail.

  Just subtract your levels from the maximum background level and perform the radon transform on that. Your success with figure 3 is a strong hint in that direction.

Roger Stafford

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us