thr_isodata: Calculate a threshold with the isodata method

View source: R/thr_isodata.R

thr_isodataR Documentation

Calculate a threshold with the isodata method

Description

Threshold calculated with the algorithm by \insertCiteisodata;textualrcaiman, which was recommended by \insertCiteJonckheere2005;textualrcaiman.

Usage

thr_isodata(x)

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.

Value

Numeric vector of length one.

References

\insertAllCited

See Also

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

Examples

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

rcaiman documentation built on Nov. 15, 2023, 1:08 a.m.