Learn R Programming

FISHalyseR (version 1.6.2)

calculateMaxEntropy: 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

Value

The function returns the threshold value

Details

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

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

Run this code
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

Run the code above in your browser using DataLab