Stephen Meschke's practice log

All logs

Stephen Meschke's pages:
Profile
Practice calendar
Records
Charts
Full log

2015-12-09

Stephen Meschke

runfinder, 5 minutes

http://i.imgur.com/DttH6sI.png

I am confused by this trig problem. I know the club's center point, the distance, and the slope. I can't figure out how to find the endpoints (the knob and the fat end of the club). I know the answer is something-something-sin(), but I can't figure it out.

The lines should only be as long as the club.

see the bottom of this page: https://opencv-python-tutroals.readthedocs.org/en/latest/py_tutorials/py_imgproc/py_contours/py_contour_features/py_contour_features.html#contour-features

Total practice time: 5 minutes

Location: Linux

Comments (2)
Orinoco - Looking at that page could you not use the cv2.minAreaRect() function then calculate the bottom corners using half the height?
Stephen Meschke - After trying rectangles, ellipses, and trig, I used a 'while' loop. It was computationally inefficient, by quite easy to implement.