1. A computer implemented method for determining the optimal focal height for an objective lens coupled with a line scan camera in a virtual microscopy system prior to scanning a microscope slide, comprising: identifying a plurality of focus points on a microscope slide; positioning an objective lens coupled with a line scan camera over a first focus point; scanning an image of the first focus point at a plurality of objective lens heights; determining the objective lens height having the greatest contrast in the scanned image.