Analysis of the failure mechanisms of a weak rock trough photogrammetrical measurements by 2D and 3D vision