flipImage {OpenImageR} | R Documentation |
flip image horizontally or vertically
Description
flip an image row-wise (horizontally) or column-wise (vertically)
Usage
flipImage(image, mode = "horizontal")
Arguments
image |
a matrix, data frame or 3-dimensional array where the third dimension is equal to 3 |
mode |
one of 'horizontal', 'vertical' |
Details
This function flips an image row-wise or column-wise
Value
a matrix or 3-dimensional array where the third dimension is equal to 3
Examples
path = system.file("tmp_images", "1.png", package = "OpenImageR")
im = readImage(path)
flp = flipImage(im, mode = 'vertical')
[Package OpenImageR version 1.3.0 Index]