sharpen: Sharpen

Description Usage Arguments Value Examples

View source: R/sharpen.R

Description

Sharpens an image with given intensity specification. This function will use the unsharp mask approach to sharpen images. Works by enhancing the edges of an image.

Usage

1
sharpen(input_img, intensity = 5, display = F, output_img = "")

Arguments

input_img

string, path of the input .png image

intensity

int, intensity of sharpness enhancement, between 0 and 10, defaults to 5

display

bool, if TRUE, output will be displayed. Defaults to FALSE.

output_img

string, path of the output .png image

Value

a png image at the specificed out path

Examples

1
2
3
4
## Not run: 
sharpen("./input.png", 5, FALSE, "./output.png")

## End(Not run)

UBC-MDS/picfixR documentation built on May 17, 2019, 1:13 a.m.