Thread Subject:
Determine angle of rotation

Subject: Determine angle of rotation

From: Kenneth

Date: 4 Aug, 2010 14:14:04

Message: 1 of 6

I asked a smilar question before, but did not get anywhere. I drew an example which can be viewed here: http://www.flickr.com/photos/29009236@N02/4860312546/. we have about 2000 pictures similar to this one, with the particle in different positions and rotations. Is it possible to determine the rotation angle of the particle using matlab? our current solution is a program where we eyeball the rotation, and manually input the scan direction, but for 2000+ pictures, this is not the greatest. If we can determine the angle, we can write a peice for the program that will automatically set the scan direction.

Subject: Determine angle of rotation

From: Sean

Date: 4 Aug, 2010 15:25:06

Message: 2 of 6

"Kenneth " <cybeastfalzar99@yahoo.com> wrote in message <i3bsjc$ndp$1@fred.mathworks.com>...
> I asked a smilar question before, but did not get anywhere. I drew an example which can be viewed here: http://www.flickr.com/photos/29009236@N02/4860312546/. we have about 2000 pictures similar to this one, with the particle in different positions and rotations. Is it possible to determine the rotation angle of the particle using matlab? our current solution is a program where we eyeball the rotation, and manually input the scan direction, but for 2000+ pictures, this is not the greatest. If we can determine the angle, we can write a peice for the program that will automatically set the scan direction.

Do you have the Image Processing Toolbox?
Are all of the images roughly the same shape?

If so, use bwconncomp() and regionprops() to get the orientation of the object. Though this orientation is meaningless because of the bend, it can be used as a reference to your desired orientation.
I.e:
-Figure out what the orientation of the object is when it's how you want it.
-Figure out what it is in its rotated state.
-The difference is your rotation.

Subject: Determine angle of rotation

From: Kenneth

Date: 4 Aug, 2010 15:36:04

Message: 3 of 6

"Sean " <sean.dewolski@nospamplease.umit.maine.edu> wrote in message <i3c0oh$oa1$1@fred.mathworks.com>...
> "Kenneth " <cybeastfalzar99@yahoo.com> wrote in message <i3bsjc$ndp$1@fred.mathworks.com>...
> > I asked a smilar question before, but did not get anywhere. I drew an example which can be viewed here: http://www.flickr.com/photos/29009236@N02/4860312546/. we have about 2000 pictures similar to this one, with the particle in different positions and rotations. Is it possible to determine the rotation angle of the particle using matlab? our current solution is a program where we eyeball the rotation, and manually input the scan direction, but for 2000+ pictures, this is not the greatest. If we can determine the angle, we can write a peice for the program that will automatically set the scan direction.
>
> Do you have the Image Processing Toolbox?
> Are all of the images roughly the same shape?
>
> If so, use bwconncomp() and regionprops() to get the orientation of the object. Though this orientation is meaningless because of the bend, it can be used as a reference to your desired orientation.
> I.e:
> -Figure out what the orientation of the object is when it's how you want it.
> -Figure out what it is in its rotated state.

they are all roughly the same, and they aren't drawn, the real ones are microscope pics. We are trying to find the center point, but need to determine angle rotated from an axis to find scan angle. Ill try those two functions.
> -The difference is your rotation.

Subject: Determine angle of rotation

From: Kenneth

Date: 4 Aug, 2010 16:53:04

Message: 4 of 6

"Kenneth " <cybeastfalzar99@yahoo.com> wrote in message <i3c1d4$6ar$1@fred.mathworks.com>...
> "Sean " <sean.dewolski@nospamplease.umit.maine.edu> wrote in message <i3c0oh$oa1$1@fred.mathworks.com>...
> > "Kenneth " <cybeastfalzar99@yahoo.com> wrote in message <i3bsjc$ndp$1@fred.mathworks.com>...
> > > I asked a smilar question before, but did not get anywhere. I drew an example which can be viewed here: http://www.flickr.com/photos/29009236@N02/4860312546/. we have about 2000 pictures similar to this one, with the particle in different positions and rotations. Is it possible to determine the rotation angle of the particle using matlab? our current solution is a program where we eyeball the rotation, and manually input the scan direction, but for 2000+ pictures, this is not the greatest. If we can determine the angle, we can write a peice for the program that will automatically set the scan direction.
> >
> > Do you have the Image Processing Toolbox?
> > Are all of the images roughly the same shape?
> >
> > If so, use bwconncomp() and regionprops() to get the orientation of the object. Though this orientation is meaningless because of the bend, it can be used as a reference to your desired orientation.
> > I.e:
> > -Figure out what the orientation of the object is when it's how you want it.
> > -Figure out what it is in its rotated state.
>

adding some info - Is it possible to use DCM to figure out the rotation angle of the object, if so, how would I got about doing it?
> they are all roughly the same, and they aren't drawn, the real ones are microscope pics. We are trying to find the center point, but need to determine angle rotated from an axis to find scan angle. Ill try those two functions.
> > -The difference is your rotation.

Subject: Determine angle of rotation

From: Kenneth

Date: 4 Aug, 2010 17:56:04

Message: 5 of 6

Ok, that got messed up, the question is, can i use DCM to determine the rotation of the object? if so, how?

Subject: Determine angle of rotation

From: Kenneth

Date: 10 Aug, 2010 17:55:04

Message: 6 of 6

"Kenneth " <cybeastfalzar99@yahoo.com> wrote in message <i3c9jk$2c3$1@fred.mathworks.com>...
> Ok, that got messed up, the question is, can i use DCM to determine the rotation of the object? if so, how?


Don't let this one die too >_<

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
particle Hu Zheng 24 Feb, 2012 11:21:54
angle of rotation Kenneth 4 Aug, 2010 10:19:10
particle Kenneth 4 Aug, 2010 10:19:10
rssFeed for this Thread

Contact us