geometricThreshold: Unimodal threshold based on geometric method

View source: R/geometricThreshold.R

geometricThresholdR Documentation

Unimodal threshold based on geometric method

Description

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

Usage

geometricThreshold(intensities, breaks = 500, plot = FALSE)

Arguments

intensities

Vector of intensities.

breaks

Number of bins of the histogram.

plot

Plots the internally generated plot.

Value

Threshold value (see description)


CeMOS-Mannheim/PlaquePicker documentation built on Sept. 30, 2022, 5:54 a.m.