Date: Jan 27, 2013 12:30 PM
Subject: Re: Mass Centroid
"Javier Fileiv" wrote in message <firstname.lastname@example.org>...
> "Javier Fileiv" wrote in message <email@example.com>...
> > Hello everyone, I need to find where an arrow is pointing. I was thinking on doing this by some comparison between the geometrical centroid and the mass centroid, but I cant get the last one. Some help on doing this? Some ideas??
> > Thanks a lot
> Any other approaching to acomplish this?
The function REGIONPROPS in the Image Processing Toolbox will give you access to two centroids. The 'Centroid' property will give center of mass, while some arithmetic on 'BoundingBox' will give one calculation for geographical center that should be useful in calculating arrow direction.