1 | initial version |

Hi @samkhan !

I think you are trying to find contour points that are at certain angle from centroid of that contour. Please follow the above steps:

- Find minenclosing circle of that contour.
- Find Point on the circle on a given angle. You can refer this Answer
- Find all the Points on the Line segment using Line Iterator.
- Loop through all the contour points & find the Distance between two points(Contour Point & Point on the Line).
- Find the Point with minimum distance which is the Intersection Point P.
- Draw a Line from Centroid C to Point P.

Hope you understand this simple explanation & I'll leave the code part for you!

Copyright OpenCV foundation, 2012-2018. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.