Make Binary
imago provides you an adaptive thresholding function to make a gray/color image into a binary image. A microscopic image often shows intensity variation in the same cell or cell layer due to uneven staining or local variation of a surface within a tissue. It is necessary to adapt the contrast of a local neighborhood of a pixel.
The threshold value of each pixel is computed using the local mean and standard deviation of the pixel intensities within an N x N window (default value = 31 pixels). The local mean and standard deviation adapts the thresholding value according to the contrast in the local neighborhood of the pixel. For example, the parameter "weight" [0 1] controls the threshold value in the local neighborhood such that the higher the value "weight", the lower the threshold value. imago use 0.5 as a default value.
