Got Questions? Get Answers.
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:
Matlab - Problems with angles

Subject: Matlab - Problems with angles

From: Eddy

Date: 28 Mar, 2010 14:51:12

Message: 1 of 3

Hi!
I'm currently exploring Matlab right now. And I have a problem wich
is:

I have an image and I've found multiple centroids of the shapes that
are present, but I would like to limit the search for the centroids
(three for being more specific) that are within a certain angle.
I have an example above in which A, B and C are no more than 90º
apart, so that would be the centroids I would like to focus on.
Is there a function that does this for me?


          *B
  A*
         *C


Thanks for your attention and Help

--
Edison

Subject: Matlab - Problems with angles

From: us

Date: 28 Mar, 2010 16:58:06

Message: 2 of 3

Eddy <edison.spencer@gmail.com> wrote in message <8fb1c9ec-6e75-40cc-a2f4-671735ef2923@q16g2000yqq.googlegroups.com>...
> Hi!
> I'm currently exploring Matlab right now. And I have a problem wich
> is:
>
> I have an image and I've found multiple centroids of the shapes that
> are present, but I would like to limit the search for the centroids
> (three for being more specific) that are within a certain angle.
> I have an example above in which A, B and C are no more than 90º
> apart, so that would be the centroids I would like to focus on.
> Is there a function that does this for me?
>
>
> *B
> A*
> *C
>
>
> Thanks for your attention and Help
>
> --
> Edison

a hint:

     help cross;

us

Subject: Matlab - Problems with angles

From: Roger Stafford

Date: 28 Mar, 2010 19:27:02

Message: 3 of 3

Eddy <edison.spencer@gmail.com> wrote in message <8fb1c9ec-6e75-40cc-a2f4-671735ef2923@q16g2000yqq.googlegroups.com>...
> ..... I would like to limit the search for the centroids
> ..... that are within a certain angle. ......
----------
  You haven't made it clear what angles you are talking about. An angle is defined by a vertex and two lines projecting from that vertex. Which are your vertices, which are your pairs of lines?

Roger Stafford

Tags for 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