View source: R/open_image_rscript.R
flipImage | R Documentation |
flip an image row-wise (horizontally) or column-wise (vertically)
flipImage(image, mode = "horizontal")
image |
a matrix, data frame or 3-dimensional array where the third dimension is equal to 3 |
mode |
one of 'horizontal', 'vertical' |
This function flips an image row-wise or column-wise
a matrix or 3-dimensional array where the third dimension is equal to 3
path = system.file("tmp_images", "1.png", package = "OpenImageR")
im = readImage(path)
flp = flipImage(im, mode = 'vertical')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.