rotate: Returns an array of images of length num_images randomly...

Description Usage Arguments Value Examples

Description

Rotate takes the path to an image and generates randomly rotated images, the desired number of times. Each rotated image will not be rotated more than the maximum rotation angle provided.

Usage

1
rotate(image_path, num_images, max_rotation)

Arguments

image_path

string: The file path of the image to be translated.

num_images

integer: The number of rotated images to be returned.

max_rotation

integer: The maximum allowable rotation for any of the rotated images. Can be between 1 and 360, inclusive.

Value

array: pixel values of the rotated images

Examples

1
2
3
4
5
6
7
## Not run: 
rotate("../tests/testthat/img/milad.jpg", 5, 180)
rotate("../tests/testthat/img/milad.jpg", 10, 320)
rotate("../tests/testthat/img/milad.jpg", 15, 350)
rotate("../tests/testthat/img/milad.jpg", 20, 355)

## End(Not run)

UBC-MDS/AutoTransformR documentation built on May 7, 2019, 7:13 p.m.