1. A method for detecting a line in an image with limited local memory space, the method comprising: computing, using a local memory, a result of a partial conversion of image-space pixel data to Hough-space data; storing the result of the partial conversion in a one-dimensional accumulator array in the local memory, wherein the result comprises vote counts corresponding to ρ values for a predetermined value of θ; detecting a line present in the partial conversion by finding a local maximum in the vote counts stored in the one-dimensional accumulator array; if the vote count of the local maximum is greater than vote count of the previously found local maximum associated with other lines detected from previously computed results, storing the line by filling an empty slot in a detected-line array with the line, or by replacing one previously detected line having a smallest vote count in the detected-line array; and reusing the one dimensional accumulator array in the local memory to compute and analyze further results comprising vote counts corresponding to ρ values for other values of θ.