View source: R/objectTransform.R
objectTransform | R Documentation |
Function to normalize, colorize and add background to images.
objectTransform(
mat,
msk,
color,
input_range,
mode,
type,
add_noise = TRUE,
random_seed = NULL,
size = c(0, 0),
bg_mean = 0,
bg_sd = 0,
full_range = FALSE,
force_range = FALSE,
gamma = 1
)
mat |
a finite numeric matrix. |
msk |
a finite numeric matrix (mask identifying abnormalities). If missing, the default no cleansing will be done. |
color |
a color. |
input_range |
a finite numeric vector of 2 values, sets the range of the input intensity values. Values outside this range are clipped. Default is |
mode |
color mode export. Either |
type |
image object type. |
add_noise |
whether to add normal noise to background or not. Default is |
random_seed |
a list of elements to pass to set.seed or a single value, interpreted as an integer, or NULL to be used when |
size |
a length 2 integer vector of final dimensions of the image, height 1st and width 2nd. Default is |
bg_mean |
mean value of the background added if |
bg_sd |
standard deviation of the background added if |
full_range |
only apply when |
force_range |
bool, only apply when |
gamma |
correction. Default is |
When 'add_noise'
is FALSE
and attr(msk, "removal")
is "masked"
or "MC"
,
background will be automatically set to minimal pixel value.
the matrix transformed according to input parameters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.