Ask Your Question
0

Is there an easy way to calculate the clockwise angle of a line drawing?

asked 2018-01-30 17:35:58 -0600

masterenol gravatar image

image description

Hello everyone, can you please help me with this issue?

I want a clockwise angle which would be positive and greater than 90 degrees. Is there a single function that can give me a positive counterclockwise angle for a line between two points?

I would like to keep the code down to a minimum, such as one or two functions used at most to find my angle.

edit retag flag offensive close merge delete

Comments

Is it an opencv problem ?

LBerger gravatar imageLBerger ( 2018-01-31 02:11:11 -0600 )edit

This helped me for c++, no opencv needed: https://stackoverflow.com/questions/1...

Grillteller gravatar imageGrillteller ( 2018-01-31 05:38:27 -0600 )edit

Are you familiar with the dot product and acos? If so, post the answer to your question.

sjhalayka gravatar imagesjhalayka ( 2018-01-31 07:05:43 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-02-04 04:50:58 -0600

supra56 gravatar image

On youtube watch?v=E5OIhlCYGyw. You can get source code.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-01-30 17:35:58 -0600

Seen: 3,034 times

Last updated: Feb 04 '18