Learn R Programming

rcaiman (version 1.2.2)

thr_isodata: Calculate a threshold with the isodata method

Description

Threshold calculated with the algorithm by isodata;textualrcaiman, which was recommended by Jonckheere2005;textualrcaiman.

Usage

thr_isodata(x)

Value

Numeric vector of length one.

Arguments

x

Numeric vector or a single-column matrix or data.frame able to be coerced to numeric.

Details

The implementation is based on the IsoData method of Auto Threshold ImageJ plugin by Gabriel Landini, which is now available in the autothresholdr package (autothresholdr::auto_thresh()). However, I found this implementarion more versatile since it is not restricted to an 8-bit input.

References

See Also

Other Binarization Functions: apply_thr(), obia(), ootb_mblt(), ootb_obia(), regional_thresholding(), thr_mblt()

Examples

Run this code
caim <- read_caim()
r <- gbc(caim$Blue)
thr <- thr_isodata(values(r))
bin <- apply_thr(r, thr)
plot(bin)

Run the code above in your browser using DataLab