View source: R/geometricThreshold.R
geometricThreshold | R Documentation |
Calculates a threshold for unimodal distribuated values based on histogram thresholding. Implementation of Rosin, P. L. (2001). "Unimodal thresholding." Pattern Recognition 34(11): 2083-2096. A line is drawn between the bin with the highest frequency and the bin with the highest intensity/value (main line). After for each bin another line, orthogonal to the first line, is drawn to the "top" of each bin. The value of the bin with the longst distance to the main line is defined as threshold
geometricThreshold(intensities, breaks = 500, plot = FALSE)
intensities |
Vector of intensities. |
breaks |
Number of bins of the histogram. |
plot |
Plots the internally generated plot. |
Threshold value (see description)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.