getCutoff | R Documentation |
Find appropriate range limits for the area of nuclei defined in a binary nuclear mask. The limits will be defined by the "saddle" point on the low end and by the upper quantile on the high end.
getCutoff(area, lo, hi, breaks = 256, quant = 0.995, plot = FALSE)
area |
either an |
lo |
a optional numeric value indicating the approximate minimum value. This value will be used to search for the true saddle point. If negative, the search will start at the lower 10 percentile of the area. |
hi |
a optional numeric value for the expected upper limit of the
cutoff. If missing, the |
breaks |
a number (or means) to determining the number of cells for
the optional histogram (see |
quant |
if |
plot |
if |
Get the low and high cutoffs to provide to trimMask
.
Vector of two values recommended as cutoff values suitable for
trimMask
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.