threshold_valleys: Thresholding based on peak and valley analysis.

Description Usage Arguments

Description

A smooth density model is derived for the data with logspline. Based on the density peaks and valleys are detected and the final threshold is defined as the valley (if available) with the highest x value.

Usage

1
threshold_valleys(x, x_eval = 101, ...)

Arguments

x

vector of (pixel) gray levels to be thresholded

x_eval

...

...

arguemnts passed to peaks_and_valleys


benmack/threshold documentation built on May 12, 2019, 12:58 p.m.