1. A system for analyzing an image representing a medical slide that includes a plurality of tissue samples arranged in an array, the system comprising a computer programmed to perform an algorithm comprising: forming a first measure that represents lattice parameters for only a portion of tissue samples within the image forming a first local lattice, and a second measure of how well the actual tissue samples fit to the first local lattice; and using said first and second measures to automatically locate and assign coordinates to samples in the array.