Learn R Programming

CropDetectR (version 0.0.1)

rotations: Rotates an image by x degrees

Description

Takes an image and rotates it by a number of degrees choosen by the user.

Usage

rotations(picture, degrees)

Arguments

picture

The image to be rotated.

degrees

The degrees of rotation until 180 (30 = every 30 degrees).

Value

A list of pictures that have been rotated by x degrees each.

Details

The function takes in an image and rotates it by a number of degrees chosen by the user. It will keep rotating until it has reached the 360 degree limit and save the images into a list.

Examples

Run this code
# NOT RUN {
picture_list <- rotations(picture, 45)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab