1. A computer implemented method for real-time image quality optimization of a virtual microscope slide image, comprising: identifying a set of focus points corresponding to a tissue sample on a microscope slide; calculating a best fit surface from the set of focus points; determining a distance of each focus point from the best fit surface; identifying a maximum distance of each focus point from the best fit surface; comparing the identified maximum distance of each focus point from the best fit surface to a predetermined threshold distance to identify one or more outlier focus points in the set of focus points; recalibrating at least one of the outlier focus points in the set of focus points, wherein recalibrating comprises changing the location, instead of eliminating, of an outlier focus point and recapturing the focus point at the changed location; determining a focal surface in accordance with the set of focus points, including the at least one recalibrated outlier focus point; and scanning the tissue sample on the microscope slide in accordance with the focal surface.