pow | R Documentation |
pow
raises every element of an Image
object
to a power.
pow(x, y = 2, target = "new")
x |
A 32- or 64-bit (32F or 64F) |
y |
A numeric value representing the exponent of power. Note that for
a non-integer power exponent, the absolute values of the |
target |
The location where the results should be stored when passing a sum of images to the function. It can take 3 values:
|
If target="new"
, the function returns an Image
object. If target="self"
, the function returns nothing and modifies
x
in place. If target
is an Image
object, the
function returns nothing and modifies that Image
object in
place.
Simon Garnier, garnier@njit.edu
exp
, log
, sqrt
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
changeBitDepth(balloon, "32F", 1 , "self")
pow(balloon, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.