flipImage: flip image horizontally or vertically

Description Usage Arguments Details Value Examples

View source: R/open_image_rscript.R

Description

flip an image row-wise (horizontally) or column-wise (vertically)

Usage

1
flipImage(image, mode = "horizontal")

Arguments

image

a matrix, data frame or 3-dimensional array

mode

one of 'horizontal', 'vertical'

Details

This function flips an image row-wise or column-wise

Value

a matrix or 3-dimensional array

Examples

1
2
3
4
5
path = system.file("tmp_images", "1.png", package = "OpenImageR")

im = readImage(path)

flp = flipImage(im, mode = 'vertical')

OpenImageR documentation built on Sept. 10, 2021, 5:08 p.m.