摘要 |
A system to align oriented (unaligned) objects in an image to permit such operations as dimensional gauging or measurements to be performed. Using the angle of rotation of the object in the unaligned image, the system creates a destination image having rows and columns of pixels aligned with a specified axis. The unaligned image is then aligned by finding a first pixel location in a first column in the destination image; locating a first whole pixel location nearest to the first pixel area in the unaligned image; copying the actual pixel value of the first whole pixel location in the unaligned image to the first pixel location in the destination image; locating a next whole pixel location in the unaligned image; copying the actual pixel value of the next whole pixel location to a next pixel location in the destination image until all pixels in a first column of the window have been copied to the first column of the destination image; locating the next column, and continuing until a last column is located. As a column is being aligned into the destination image, it is projected into a one dimensional image, as interpolation proceeds on the next column.
|