Automatic detection of microstructural features using a statistical Image Processing method