Generate pixel coordinates of an oriented line
Restrict pixel coordinates of a line to image size