Images such as mask layouts, signatures, and photographs are compared to
identify similarities or dissimilarities in the images. Descriptions of
the images use geometric shapes including lines, rectangles, and
triangles to facilitate the comparisons and decrease comparison time and
decrease stored data describing the shapes. Data for pixels in the shapes
are pre-integrated to reduce arithmetic operations in the comparisons.