Improved depth computation for cracks using mask.