knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
RGB_manipulation("input.png", "output.png", R = 2L, G = 2L, B = 2L)
adjusts the red, green and blue intensity of an image.
Inputs: - input_path: string, path to the input .png file - output_path: string, path to the output .png file - R: int, a weight value for red channel, equal to or greater than 0. - G: int, a weight value for green channel, equal to or greater than 0. - B: int, a weight value for blue channel, equal to or greater than 0.
Output: returns a .png file at the output path
Example: RGB_manipulation("input.png", "output.png", R = 5L, G = 1L, B = 1L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.