Methods, software, and apparatus for focusing an image in biological
instrument are disclosed. Focusing elements are moved to various focus
positions within a focus element travel range, and sample images are
captured at the various focus positions. The sample images are resolved
into subregions and an optimal focus position is determined based on the
image intensity statistical dispersions within the identified subregions.