min.Rcpp_Image | R Documentation |
Returns the maximum and minimum pixel values of an
Image
object. If the Image
object has more than
one channel, it returns the maximum and minimum of each channel.
## S3 method for class 'Rcpp_Image'
min(x, ...)
## S3 method for class 'Rcpp_Image'
max(x, ...)
## S3 method for class 'Rcpp_Image'
range(x, ...)
x |
An |
... |
Unused at the moment. |
min
and max
return a matrix with 1 row and nchan(x)
columns. range
returns a matrix with 2 rows and nchan(x)
columns.
Simon Garnier, garnier@njit.edu
Image
, minMaxLoc
.
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
min(balloon)
max(balloon)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.