calculateMaxEntropy {FISHalyseR}R Documentation

Max Entropy thresholding

Description

The function converts a grayscale image to a binary image by computing a threshold using the Max Entropy method.

Usage

calculateMaxEntropy(Image)

Arguments

Image

grayscale image

Details

Max Entropy thresholding can be used to detect the signals of probes in FISH cell culture images.

Value

The function returns the threshold value

Author(s)

Karesh Arunakirinathan

References

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

See Also

calculateThreshold

Examples

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

[Package FISHalyseR version 1.28.0 Index]