th: Automatically found threshold class.

View source: R/class_constructors.R

thR Documentation

Automatically found threshold class.

Description

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

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

  • 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.

Usage

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.


autothresholdr documentation built on Feb. 16, 2023, 6:12 p.m.