Nat. Methods 14, 349–359 (2017); published online 31 March 2017; corrected after print 21 June 2017

In the version of this article initially published, the formula for rz_confocal in Box 1 incorrectly had a coefficient of 0.4. The correct coefficient is 1.4. The error has been corrected in the HTML and PDF versions of the article.