A novel algorithm on the basis of an iterative approach with regularized linear regression reconstructs 3D atomic images.