Learn R Programming

Rvision (version 0.6.0)

min.Rcpp_Image: Maxima and Minima of an Image

Description

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.

Usage

# S3 method for Rcpp_Image
min(x, ...)

# S3 method for Rcpp_Image max(x, ...)

# S3 method for Rcpp_Image range(x, ...)

Arguments

x

An Image object.

...

Unused at the moment.

Value

min and max return a matrix with 1 row and nchan(x) columns. range returns a matrix with 2 rows and nchan(x) columns.

See Also

Image, minMaxLoc.

Examples

Run this code
# NOT RUN {
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
min(balloon)
max(balloon)

# }

Run the code above in your browser using DataLab