contrast: Adjust contrast of image

Description Usage Arguments Value Examples

View source: R/contrast.R

Description

Adjust the contrast of an image, given the intensity specification. Works by making dark pixels much darker, and light pixels only slighly darker.

Usage

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

Arguments

input_img

string, path of the input image

intensity

int, intensity of contrast 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 image

Value

an image at the specificed output path

Examples

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

## End(Not run)

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