Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/calculateMaxEntropy.R
The function converts a grayscale image to a binary image by computing a threshold using the Max Entropy method.
1 | 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
1 2 3 4 5 6 7 8 | 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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.