Introduction. A robust and reliable autofocus algorithm is important concern for the automation of a Scanning Electron Microscope (SEM). Comparison of existing autofocus techniques has been done for specific specimen for fluorescence  and non-fluorescence microscopy [2-3]. For Scanning Transmission Electron Microscopy some of available algorithms were compared . To the authors’ knowledge broad evolution has not been published yet for SEM.