colour_filters: Apply colour filter to given image

Description Usage Arguments Value

View source: R/colour_filters.R

Description

Saves the given image in the user-specified directory with the user-specified color filter applied and returns the altered image array.

Usage

1
2
3
4
5
6
7
colour_filters(
  image,
  tone = "grayscale",
  strength = 1,
  return_file_name = "colour.jpeg",
  dest_folder = "transformed_imgs/"
)

Arguments

image

string: The local file path for image to which filter will be applied

tone

string: Colour filter to be applied to the image. Options:'grayscale', 'blue_tone', 'green_tone', 'red_tone', 'negative'. Default: 'grayscale'

strength

double: Strength of the colour filter being applied (0-2]. Valid for 'blue_tone', 'green_tone', 'red_tone'. Default: 1

return_file_name

string: File name for the transformed image to be saved

dest_folder

string: Destiname folder name for storing transformed images

Value

array: altered image array returned for the input colour filter


UBC-MDS/Rmagine documentation built on March 29, 2020, 9:12 p.m.