Procedure and algorithm of 3D reconstruction of large-scale ancient architecture