imageMinMax | R Documentation |
These functions calculates the per-element minimum or maximum of
2 Image
objects or of 1 Image
object and 1
numeric value/vector.
bitMin(e1, e2, target)
bitMax(e1, e2, target)
e1 , e2 |
Either 2 |
target |
The location where the results should be stored. It can take 3 values:
|
If target="new"
, the function returns an Image
object. If target="self"
, the function returns nothing and modifies
e1
in place if it is an Image
object, otherwise it
modifies e2
in place. If target
is an Image
object, the function returns nothing and modifies that Image
object in place.
Simon Garnier, garnier@njit.edu
Image
, min.Rcpp_Image
, max.Rcpp_Image
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
bitMax(balloon, c(0, 0, 127), "self")
bitMin(balloon, c(127, 255, 255), "self")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.