Correction to: Nature Methods https://doi.org/10.1038/s41592-020-01023-0, published online 4 January 2021.

In the version of this article initially published, the order of the layers was reversed in Fig. 1a in the items labeled Image(s) and Output, leading to black square outlines overlaid on the images. In Fig. 1b, lettering reading 2.4 GB and 240 MB (left panel) and 2.4 GB (right panel) should have read 2.4 Gbs, 240 Mbs and 2.4 Gbs, respectively. The errors have been corrected in the PDF and HTML versions of the article.