Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I think you solve your problem by using HoughTransfor

  1. Use the function called HoughTransform.
  2. The function will find 2 lines Line1 and Line2.
  3. Get the muse click position on the image say it Pointxx.
  4. Find the prependicular distances from Pointxx to Line1 and Line2.
  5. The line which has minimum prependicular distance is the line you need.
  6. Draw the line on the image.

I think you can solve your problem by using HoughTransfor

  1. Use the function called HoughTransform.
  2. The function will find 2 lines Line1 and Line2.
  3. Get the muse click position on the image say it Pointxx.
  4. Find the prependicular distances from Pointxx to Line1 and Line2.
  5. The line which has minimum prependicular distance is the line you need.
  6. Draw the line on the image.