threshold: Automatically determine value for image thresholding

Description Usage Arguments Details Value References

Description

The only method currently implemented is Huang's fuzzy thresholding method. The code for Huang's method was ported to C++ for teamlucc from the code in the Auto_Threshold imageJ plugin by Gabriel Landini. See original code at: http://www.mecourse.com/landinig/software/autothreshold/autothreshold.html

Usage

1
threshold(x, method = "huang", n_bin = 1000, maxpixels = 5e+05)

Arguments

x

the input image, as a matrix or raster

method

the thresholding method. Currently only "huang" is implemented.

n_bin

number of bins to use when calculating histogram

maxpixels

maximum number of pixels size to use when calculating histogram

Details

This function will run in parallel if a parallel backend is registered with foreach.

Value

integer threshold value

References

Huang, L.-K., and M.-J. J. Wang. 1995. Image thresholding by minimizing the measures of fuzziness. Pattern recognition 28 (1):41–51.


azvoleff/teamlucc documentation built on May 11, 2019, 5:19 p.m.