invert: Invert Colors

Description Usage Arguments Value Author(s) See Also Examples

View source: R/filters.R

Description

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

Usage

1

Arguments

image

An Image object.

Value

An Image object.

Author(s)

Simon Garnier, garnier@njit.edu

See Also

Image

Examples

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

neuroconductor-devel-releases/Rvision documentation built on Oct. 27, 2020, 1:16 p.m.