An image processing method for morphology characterization and pitting corrosion evaluation