Learn R Programming

Rvision (version 0.4.2)

invert: Invert Colors

Description

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

Usage

invert(image)

Arguments

image

An Image object.

Value

An Image object.

See Also

Image

Examples

Run this code
# NOT RUN {
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
balloon_inv <- invert(balloon)
plot(balloon_inv)

# }

Run the code above in your browser using DataLab