invert returns an image which colors are the linear inverse of that of the original image.

invert(image)

Arguments

image

An Image object.

Value

An Image object.

See also

Author

Simon Garnier, garnier@njit.edu

Examples

path_to_image <- system.file("sample_img", "bunny.png", package = "Rvision")
my_image <- image(filename = path_to_image)
plot(invert(my_image))