The technology described in this document can be embodied in systems and computer-implemented methods for determining a score representing an amount of staining of the cornea. The methods include obtaining a digital image of the cornea stained with a tracer material, receiving a selection of a portion of the image, and processing, by a processing device, the selection to exclude areas with one or more artifacts to define an evaluation area. For each of a plurality of pixels within the evaluation area, a plurality of Cartesian color components are determined and a hue value in a polar coordinate based color space is calculated from the components. An amount of staining of the cornea is then determined as a function of the hue value. The methods also include assigning a score to the evaluation area based on the amount of staining calculated for the plurality of pixels.