karo_threshold
Arguments:
- _method={ triangle | yen | otsu | _otsu | bgt | intermeans | intera | rats | fixnnn | huang | huang2 | li | moments | minerrori | maxentropy | mean | renyientropy | shanbhag | bgt2 },_delclass>0,_smooth>0
Description:
Calculate threshold (methods derived from ImageJ) in range [0,255] using histogram evaluation, evtl. normalization necessary. Methods
otsu,
_otsu and
rats base on image evaluation in contrast to the other methods. For help do 'gmic help otsu' or '... _karo__otsu' or '... rats'. Method
fixnnn allows to apply a fixed threshold
nnn calling '_karo_fix nnn'. Method
intera calls the internal function
x_threshold in interactive mode
For each method the user function _karo_'method' is called!
If
{_delclass > 0} delete cluster
{_delclass-1}.
If
{_smooth > 0} blur_x histogram with amplitude _smooth.
No histogram processing for otsu, rats and intera!
No test for existence of method!
Default values:
method=triangle, delclass=smooth=0
Example of use:
$ gmic sp tiger luminance. +karo_threshold. otsu karo_threshold.. triangle

Command: sp tiger luminance. +karo_threshold. otsu karo_threshold.. triangle

Command: sp tiger luminance. +karo_threshold. otsu karo_threshold.. triangle