tunnel_filter: Apply tunnel distortion filter to a given image.

Description Usage Arguments Value

View source: R/tunnel_filter.R

Description

Returns the given image with the user-specified distortion applied.

Usage

1
2
3
4
5
6
tunnel_filter(
  image_path,
  rot = 0.5,
  return_file_name = "tunnel.jpeg",
  dest_folder = "transformed_imgs/"
)

Arguments

image_path

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

rot

double: Rotation degree holding value between -0.5 and 0.5. Default: 0.5.

return_file_name

string: File name for the transformed image to be saved

dest_folder

string: Destiname folder name for storing transformed images

Value

location of saved image with filter applied.


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