vignette_filter: Apply a vignetting filter to a given image

Description Usage Arguments Value

View source: R/vignette_filter.R

Description

Saves the given image with the vignette filter applied at the specified strength.

Usage

1
2
3
4
5
6
vignette_filter(
  image_path,
  strength = 1,
  return_file_name = "vignette.jpeg",
  dest_folder = "transformed_imgs/"
)

Arguments

image_path

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

strength

double: parameter for the strength of the dimming effect. Default: 1.0.

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: image array with the desired distortion applied.


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