MATLAB: Detect longest line in an image

computer visiondetectdetect lineimage processingMATLAB

Hi,
I would like to detect the longest line in an image. Does anyone know how I can detect this line?
Regards,
Mihael

Best Answer

this looks like computer graphics. Therefore you will know the location of all the lines. You just have to see when "the ball" goes between columns 250 and 480 and the y coordinate is greater than 150. That is SO much simpler than trying to find the lines. Since you already know where the goal is, why not just use that information?