[.Rcpp_Image | R Documentation |
Operators acting on Image
objects to extract or
replace parts.
## S3 method for class 'Rcpp_Image'
x[...]
## S3 replacement method for class 'Rcpp_Image'
x[i = NULL, j = NULL] <- value
x |
An |
... |
Other arguments passed to |
i , j |
Indices specifying elements to extract or replace. Indices are
numeric vectors which values are coerced to integer as by
|
value |
Vector or matrix with the data to replace the pixels. Typically,
this is a matrix with the same number of rows as the number of channels in
|
Simon Garnier, garnier@njit.edu
Image
, col2bgr
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
balloon[1:100, 1:100, ]
balloon[1:100, 1:100] <- col2rgb(c("red", "green", "blue", "yellow"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.