knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
gaussian_blur("input.png", "output.png", sigma = 1)
perform gaussian blur on an input image using a 3X3 convolution filter.
Inputs: - input_path: string, path to the input .png file - output_path: string, path to the output .png file - sigma: float/double, the standard diviation for the gaussian convolution filter matrix.
Output: returns a .png file at the output path and a matrix for pixel values.
Example: gaussian_blur("input.png", "output.png", sigma = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.