min.Rcpp_Image: Maxima and Minima of an Image

View source: R/statistics.R

min.Rcpp_ImageR Documentation

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 class 'Rcpp_Image'
min(x, ...)

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

## S3 method for class '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.

Author(s)

Simon Garnier, garnier@njit.edu

See Also

Image, minMaxLoc.

Examples

balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
min(balloon)
max(balloon)


swarm-lab/Rvision documentation built on Feb. 7, 2024, 4:59 a.m.