Automated microscopic image analysis — a method for improved classification of malignant tumours and their preceding stages