img_invert | R Documentation |
This is a simple 1-x operation but having it as a function ease its inclusing in within a piped chain of commands
img_invert(x)
x |
an image, of type |
The inverted image, as a imager::cimg()
object.
x <- img_read(system.file("extdata", "blob.jpg", package="morphr"))
img_show(x)
img_show(img_invert(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.