Learn R Programming

Rvision (version 0.6.0)

minMaxLoc: Coordinates of the Maxima and Minima of an Image

Description

minMaxLoc returns the maximum and minimum pixel values of an Image object, as well as their coordinates in the image. If the Image object has more than one channel, it returns the values for each channel.

Usage

minMaxLoc(x)

Arguments

x

An Image object.

Value

A matrix (or a list of matrices for multi-channels images).

See Also

Image, min.Rcpp_Image, max.Rcpp_Image.

Examples

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

# }

Run the code above in your browser using DataLab