knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
This R package specializes in filtering the images. It contains three main functions :greenscale(), sharpen() and mirror(). The green color filter converts the original image to a green scaled image. The sharpen filter highlights edges and fine details in an image. The mirror filter function will use convolution to convert the original image to a mirrored image i.e. the left side of the image will be transformed into the right side and the right side of the original image will be transformed into the left side. The package could be used by people to filter images, which could then be uploaded to social media platforms or other websites and applications.
greenscale()
input_path
, path to the input imageOutput:
Sharpen Filter sharpen_image()
input_path
, path to the input imageOutput:
Mirror Filter mirror()
input_path
, path to the input imagedevtools
in R.install.packages("BiocManager")
so you can install the EBImage Dependencies BiocManager::install("EBImage")
To install filterizeR
package, run the following line on your R console:
devtools::install_github("UBC-MDS/filterizeR",build_vignettes = TRUE)
Use Greenscale function : greenscale("img/toy_img/gs_greenscale_toy.png")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.