Learn R Programming

OpenImageR (version 1.1.7)

flipImage: 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

mode

one of 'horizontal', 'vertical'

Value

a matrix or 3-dimensional array

Details

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

Examples

Run this code
# NOT RUN {
path = system.file("tmp_images", "1.png", package = "OpenImageR")

im = readImage(path)

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

# }

Run the code above in your browser using DataLab