6. The non-transitory computer-readable storage medium of claim 5 , the method comprising converting the major axis to an angle counterclockwise from a positive horizontal axis.
5. The non-transitory computer-readable storage medium of claim 1 , the method comprising obtaining the dominant orientation of the gland through principal component analysis (PCA) of the set of gland boundary points, where the first principal component describes the directionality of the gland in the form of the major axis, where the greatest variance in the gland boundary occurs along the major axis.