ColorConv: Image Color Conversion

Description Usage Arguments Value Examples

View source: R/ColorConv.R

Description

This function converts an image to one of the color : gray, red, green, blue

Usage

1
ColorConv(img, color)

Arguments

img

path of the input image from package jpeg's function readJPEG().

color

desired color to convert: gray, red, green, blue

Value

The converted image

Examples

1
2
img <- array(runif(1000),dim=c(10,10,3))
ColorConv(img, color = 'gray')

UBC-MDS/ImgHelpR documentation built on Feb. 13, 2022, 2:20 a.m.