Ask Your Question

Revision history [back]

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:

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

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