Algorithm to Improve High-Throughput Microscopy