1. A method of controlling the autofocusing of a microscope having a focus mechanism, comprising: (a) establishing an initial focal range for volume scanning of a sample by a microscope; (b) detecting a surface of said sample in response to registered optical characteristics; and (c) mapping of images from a set of optical planes in response to the location of said surface of said sample.