I have a normal 2D image and I wish to obtain a 1D line of pixels, how can I do this? The start and end points could be any point in the image, so if this line is not exactly horizontal or vertical then some sampling must be done? Can someone suggest how to do this, is there an OpenCV way?
I am using OpenCV Java 3.0