LUT | R Documentation |
LUT
performs a look-up table transform of an
Image
object.
LUT(image, lut, target = "new")
image |
An 8-bit (8U) |
lut |
A look-up table. This should be a vector with 256 elements, or a
|
target |
The location where the results should be stored. It can take 3 values:
|
If target="new"
, the function returns an Image
object. If target="self"
, the function returns nothing and modifies
image
in place. If target
is an Image
object,
the function returns nothing and modifies that Image
object in
place.
Simon Garnier, garnier@njit.edu
Image
, histmatch
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
high_contrast_lut <- 255 * pbeta(0:255 / 255, 4, 4)
high_contrast_balloon <- LUT(balloon, high_contrast_lut)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.