A fast algorithm about dilation and erosion, based on mathematical morphology, was offered to extract features of different diseases, according to their quardrature characteristics. Computer vision technology and neural networks were applied to the identification of diseases. The results indicated that the method could accurately identify shapes and meet the requirement of classification, its accuracy ratio...