Threshold an object, typically to produce a mask
threshold(x, ...) # S3 method for im3d threshold( x, threshold = 0, mode = c("logical", "integer", "raw", "numeric"), ... )
Object to be thresholded
Additional arguments passed to methods
Either a numeric value that pixels must exceed in
order to be included in the mask or a
logical vector defining
The storage mode of the resultant object (see
an object with attributes matching
x and elements with value
as.vector(TRUE, mode=mode) i.e.
TRUE, 1, 0x01 and
as.vector(FALSE, mode=mode) i.e.
FALSE, 0, 0x00 as
threshold.im3d passes ... arguments on to