Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.
|
|
|
Re: FINDING ANGLE OF A MOVING STICK IN VIDEO
Posted:
Feb 18, 2012 11:32 AM
|
|
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
|
|
|
|