Ask Your Question
0

Compute Angle of each contour point

asked 2017-09-28 08:04:27 -0600

cjacquel gravatar image

Hello, After a Findcontour, how to compute the angle of each point of the contour ? Thank you, Christophe

edit retag flag offensive close merge delete

Comments

What is "angle of each point" ?

LBerger gravatar imageLBerger ( 2017-09-28 08:08:16 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-09-28 09:09:20 -0600

mfisher gravatar image

You need three points for an angle. Or two if you consider the angular component of a vector in polar coordinates. In C++, represent a 2D point as a std::complex<double> type. Check out the std::complex, std::polar, and std::arg functions.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-09-28 08:04:27 -0600

Seen: 477 times

Last updated: Sep 28 '17