This is a comprehensive image filter package based in R.
Date: 2019-03-03
License: MIT
|Contributors |Jack Yang| Akansha Vashisth |Chao Wang| |---|---|---|----| |github handle|@jackattackyang|@akanshaVashisth|@chaomander2018|
This is a Collaborative Software Development Project in which we will be working on three image processing filters using convolutions.
greenscale()
This green color filter converts the original image to a green scaled image. Please see the original image and processed image below.
sharpen_image()
This sharpen filter highlights edges and fine details in an image.
mirror()
This 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.
devtools
in R.install.packages("BiocManager")
so you can install the EBImage Dependencies BiocManager::install("EBImage")
filterizeR
package, run the following line on your R console:
devtools::install_github("UBC-MDS/filterizeR",build_vignettes = TRUE)
Note: .png inputs required
load filterizeR
package
library(filterizeR)
greenscale(input_path)
input_path
, path to the input image"img/toy_img/greenscale_toy.png"
Example Usage:greenscale("img/toy_img/gs_greenscale_toy.png")
sharpen(input_path)
input_path
, path to the input imageimg/toy_img/sharpened_sharpen_toy.png
Example Usage:sharpen("img/toy_img/sharpen_toy.png")
mirror(input_path)
input_path
, path to the input imageimg/toy_img/mirrored_mirror_toy.png
mirror("img/toy_img/mirror_toy.png")
Using 'covr' package, all our three functions achieve 100% branch overage. Please see results below.
Out toy images are located in the 'toy_img' folder in the within the 'img' folder. You can find them here.
Image Sources: - filterize.net - quickmeme
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.