Crack detection by a measure of texture anisotropy