Skip to main content
. 2017 Jun 21;4(2):027501. doi: 10.1117/1.JMI.4.2.027501

Algorithm 1.

Nuclei segmentation algorithm (NUCLEI-SEGMENTATION).

Input:
 - I0 is the original H&E image.
Output:
 - Inuclei is the binary nuclei mask. White regions are nuclei on a black background.
Function and variable description:
 - BLUR(I,σs) is the Gaussian blur function with kernel with σ=σs. Output is a grayscale image.
 - Stain separation method is described by Ruifrok et al.49
 - MOMENTS-THRESHOLD(I) thresholds I using the moments preserving image thresholding method.45 Output is a binary image.
 - Median filter (blur) replaces each pixel intensity by the median of all the pixel intensities in its kernel neighborhood.
Parameters:
 - Select Gaussian kernel with σ=3 for the blur operation. This value for sigma was optimized empirically.
1:  Procedure NUCLEI-SEGMENTATION(I0)
2:   Separate the haemotoxylin and eosin channels of I0 into IHematoxylin and IEosin.       ⊳ Both IHematoxylin and IEosin are grayscale images.
3:   IHematoxylinblur=BLUR(IHematoxylin,3).
4:   IHematoxylinthreshold=MOMENTSTHRESHOLD(IHematoxylin).
5:   Remove noise in IHematoxylinthreshold to compute Inuclei by median blur.
6:   return nuclei mask Inuclei.
7: end procedure