To extend a line segment made of two points across the whole image, you need to perform the following steps:
line
function in Matlab.Here is the code to achieve this:
main.m827 chars32 lines
This code will find the intersection points of the line and the image border, then draw a line between them over the original image.
gistlibby LogSnag