An image analysis algorithm for detecting cracks on textured surfaces is presented. It is based on a new measure of texture anisotropy that is used to characterise the pixels of the image of an inspected surface. Experimental results on the detection of cracks on granite slabs are reported.