A score of a histopathological diagnosis of cancer is generated by loading an image patch of an image into a processing unit, determining how many pixels of the image patch belong to a first tissue, processing additional image patches cropped from the image to determine how many pixels of each image patch belong to the first tissue, computing the score and displaying it along with the image on a graphical user interface. The image patch is cropped from the image of a slice of tissue that has been immunohistochemically stained using a diagnostic antibody. The first tissue comprises tumor epithelial cells that are positively stained by the diagnostic antibody. Determining how many pixels belong to the first tissue is performed by processing the image patch using a convolutional neural network. The score of the histopathological diagnosis is computed based on the total number of pixels belonging to the first tissue.