The goal of Rgram is to make the image processing task easy and intuitive. With Rgram, users can rotate the image, convert it to greyscale, flip it horizontally in Black&White, and add padding to it (frame).
You can install the released version of Rgram from CRAN with:
install.packages("devtools")
devtools::install_github("UBC-MDS/"rgram")
This is a basic example which shows you how to solve a common problem:
library(Rgram)
flipping(image)
Arguments:
- image
: path to input image
grayscale(image)
Arguments:
- image
: path to input image\
padding(image, width)
Arguments:
- image
: path to input image
- width
: number of pixels of padding to be added\
rotate(image, degrees)
Arguments:
- image
: path to input image
- degrees
: the degrees to rotate the image by\
The help file can be viewed by:
?padding
?flipping
?rotate
?greyscale
#> No documentation for 'greyscale' in specified packages and libraries:
#> you could try '??greyscale'