calculateMaxEntropy {FISHalyseR} | R Documentation |
The function converts a grayscale image to a binary image by computing a threshold using the Max Entropy method.
calculateMaxEntropy(Image)
Image |
grayscale image |
Max Entropy thresholding can be used to detect the signals of probes in FISH cell culture images.
The function returns the threshold value
Karesh Arunakirinathan
J.N KANPUR, P.K SHAOO, A.K.C WONG: A New Method for Gray-Level picture thresholding Using the Entropy of the Histogram. In COMPUTER VISION, GRAPHICS AND IMAGE PROCESSING,1985 p 273-285
calculateThreshold
f = system.file( "extdata", "SampleFISHgray.jpg", package="FISHalyseR") img = readImage(f) t = calculateMaxEntropy(img) ## Threshold grayscale image using the value computed by the Max Entropy method img[img<t] <- 0 img[img>=t] <- 1