1. A method, comprising: loading a slide which includes a medical sample onto a scanning stage; acquiring an electronic image of at least a portion of said slide; varying at least one characteristic of said slide, and reacquiring an image, thereby obtaining multiple images; based on said acquiring and said varying, fitting at least one characteristic of the multiple images to a Gaussian function; and using said fitting to select an optimum characteristic.