To overlay lines on an edge-detected image in Matlab, follow these steps:
edge function:main.m55 chars3 lines
main.m97 chars4 lines
line function:main.m160 chars8 lines
The line function takes in the endpoints of each line as input and draws the line on the plot. The hold on and hold off commands are used to keep the original image displayed while the lines are overlaid on top. The result will be an image with the detected lines overlaid in green.
gistlibby LogSnag