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.
Author
Simon Garnier, garnier@njit.edu
Examples
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
minMaxLoc(balloon)
#> $B
#> val x y
#> min 0 406 295
#> max 255 306 304
#>
#> $G
#> val x y
#> min 15 395 249
#> max 248 343 306
#>
#> $R
#> val x y
#> min 17 398 244
#> max 254 343 307
#>