Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: FINDING ANGLE OF A MOVING STICK IN VIDEO
Replies: 4   Last Post: Feb 21, 2012 11:04 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Vicky Budhiraja

Posts: 19
From: India, Bangalore
Registered: 1/25/12
Re: FINDING ANGLE OF A MOVING STICK IN VIDEO
Posted: Feb 18, 2012 11:32 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

use regionprops 'orientation' properties to find the orientation(in degrees ranging from -90 to 90 degrees)

if you have the binary image named bw then write as following:-

[B,L] = bwboundaries(bw,'noholes');
stats = regionprops(Lf,'Orientation');
angle= stats(1).Eccentricity; %if you have only 1 object

if you have mutiple object and want to find their angle use a for loop.

--
Vicky Budhiraja
Technical Architect, Sitarasoft
Vicky.budhiraja@sitarasoft.com

http://www.Sitarasoft.com



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.