Possible Duplicate:
detect if a pixel in RGB image belong to a line between two other pixels (MATLAB)
I want to detect two pixel in an image and get all pixel of plotted line between them .
I do not want to plot the line, I just want to get all pixels positions [as (x,y) in the image] of virtually line between the two pixels .
which function in MATLAB could help me in this code, and how can I use it ? .
thanks !