A threshold found automatically via auto_thresh(). It is a number (the value of the threshold) with 4 attributes:

  • ignore_white is TRUE if white values were ignored during the thresholding and FALSE otherwise.

  • ignore_na is TRUE if NAs were ignored during the thresholding and FALSE otherwise.

  • autothresh_method details which automatic thresholding method was used.

th(thresh, ignore_black, ignore_white, ignore_na, autothresh_method)

Arguments

thresh

A scalar. The threshold.

ignore_black

TRUE if black values were ignored during the thresholding and FALSE otherwise.

ignore_white

TRUE if white values were ignored during the thresholding and FALSE otherwise.

ignore_na

TRUE if NA values were ignored during the thresholding and FALSE otherwise.

autothresh_method

The name of the automatic thresholding method used.

Value

An object of class th.