Image analysis and automatic classification of transformed foci