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

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.