which.max.im(x)
"im"
)."im"
) with factor values.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.
eval.im
,
im.object
# 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))
Run the code above in your browser using DataLab