cpp_transform | R Documentation |
Function to normalize, colorize and add background to images.
mat |
NumericMatrix. |
color |
NumericVector, whose members are h,s,v color. This vector has to be named with 1st name being the name of this color. |
msk |
IntegerMatrix. |
size |
a length 2 IntegerVector, of final dimensions (height,width) of the image. Default is |
mode |
string, color mode export. Either |
type |
uint16_t image object type. Default is |
input_range |
a finite NumericVector, only apply when |
add_noise |
bool, whether to add normal noise or not. Default is |
bg |
double, mean value of the background added if |
sd |
double, standard deviation of the background added if |
full_range |
bool, only apply when |
force_range |
bool, only apply when |
gamma |
correction. Default is |
spatialX |
X offset correction. Default is |
spatialY |
Y offset correction. Default is |
When a mask is detected, 'add_noise'
, 'full_range'
and 'force_range'
are set to false
, 'bg'
and 'sd'
to 0.0
, 'input_range'
to [0.0,3.0]
and 'gamma'
to 1.0
.
Experimental (as of v0.2.0.501): when 'mode'
is not "raw"
, if 'input_range'
is within ]0,1[
, it will be used as 'probs'
argument to quantile to determine clipping range from image object, in addition, 'gamma'
will be forced to 1.0
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.