Numerical reconstruction of digital holograms with variable viewing angles