Patent ID: 8879844

Claim:
A computer-implemented method in an optical-image user interface employing a processor for computing an orientation angle of optical image data comprising an image comprising an oblong shape, the image of the oblong shape comprising thresholded pixels within image data, wherein each thresholded pixel is a scalar measurement comprising a numerical value exceeding a threshold, the method comprising: determining a cumulative sum of the square of row indices of thresholded pixels, wherein an thresholded pixel is defined as a measurement data element within the binary-valued image data having a specified binary numerical value; determining a cumulative sum of the square of column indices of thresholded pixels; determining a cumulative sum of the product of row and column indices of thresholded pixels; determining a value according to a closed form algebraic formula comprising the cumulative sum of the square of row indices, the cumulative sum of the square of column indices, and the cumulative sum of the product of row and column indices; determining the computed orientation angle of the oblong shape of binary-valued image data according to the value using an inverse angular function operation; and providing the computed orientation angle as an output.