Control depth as function of grey level of scanned object, map of thickness