stack_threshed_img {autothresholdr} | R Documentation |
Stack-thresholded image class.
Description
A stack-thresholded array is an array which has had stack-thresholding
applied to it. See mean_stack_thresh()
. It has 3 necessary attributes:
-
thresh
is the threshold that was applied. This is either a number or an object of class th. Values in the original array which were less than this value are deemed to have failed the thresholding. -
fail_value
is the value to which elements of the array which failed the thresholding were set. This could be something like0
orNA
. -
stack_thresh_method
details which stacked-thresholding method was employed; this is either"mean"
or"median"
.
Usage
stack_threshed_img(img, thresh, fail_value, stack_thresh_method)
Arguments
img |
A 4-dimensional array in the style of an
ijtiff_img (indexed by |
thresh |
The threshold that was used. Either a number or an object of class th. |
fail_value |
The value to which elements of the array which failed the thresholding were set. |
stack_thresh_method |
This must be set to either |
Value
An object of class stack_threshed_img
.
See Also
threshed_arr, mean_stack_thresh()
, med_stack_thresh()
.