One-shot pattern projection for dense and accurate 3D reconstruction in structured light