knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

The vibrance("./input.png", 5, FALSE, "./output.png") function adjusts the vibrance of the colours of an image.

Given a desired level of adjustment intensity, this function works by increasing or decreasing the overall colour intensity and saturation of the image, more so for colours that are less saturated.

Arguments:

Returns:

Notes:

Returns a greyscale image by specifying negative vibrance intensities of down to -10.

Image types currently supported:

Example:

vibrance(input_img="../img/image.png", 
         intensity=5, 
         display=FALSE, 
         output_img="../img/vibrance_image.png")


UBC-MDS/picfixR documentation built on May 17, 2019, 1:13 a.m.