1. A computer-implemented method for finding a Ro image providing data corresponding to possible orthogonal distances to possible lines on a pallet in an image comprising: acquiring a grey scale image including one or more pallets; determining, using a computer, a horizontal gradient image by convolving the grey scale image and a first convolution kernel; determining, using the computer, a vertical gradient image by convolving the grey scale image and a second convolution kernel; and determining, using the computer, respective pixel values of a first Ro image providing data corresponding to a possible orthogonal distance from an origin point of the grey scale image to one or more possible lines on one or more possible pallets in the grey scale image.