build_filter: This function can be used to build predefined filters.

Description Usage Arguments Value Examples

View source: R/filter_perrrfect.R

Description

This function can be used to build predefined filters.

Usage

1
build_filter(kernel_type, kernel_size)

Arguments

kernel_type

A string which accepts following values blur: Used to blur the picture sharpen: Used to increase the sharpness of the image More options will be added as enhancements

kernel_size

An integer determining the filter size.

Value

A matrix of size kernel_size * kernel_size representing the filter.

Examples

1
2
build_filter("blur", 3)
build_filter("sharpen", 7)

UBC-MDS/pictureperrrfect documentation built on March 28, 2021, 1:28 p.m.