which.max.im

0th

Percentile

Identify Pixelwise Maximum of Several Pixel Images

Given a list of pixel images, this function identifies the image that has the largest value at each pixel, and returns an image.

Keywords
manip, spatial, programming
Usage
which.max.im(x)
Arguments
x
A list of images (objects of class "im").
Details

x should be a list of pixel images. All images must have compatible dimensions.

For each pixel, the algorithm identifies which of the images in the list x has the largest value at that pixel. The index of this image becomes the pixel value in the output image. If names(x) is not null, then the indices are replaced by these names.

Value

  • An image (object of class "im") with factor values.

See Also

eval.im, im.object

Aliases
  • which.max.im
Examples
# test images
  X <- as.im(function(x,y) { x^2 - y^2 }, unit.square())
  Y <- as.im(function(x,y) { x - y }, unit.square())
  which.max.im(list(X=X,Y=Y))
Documentation reproduced from package spatstat, version 1.23-3, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.