b.d.rgbNorm: Preprocessing - Normalize rgb images to remove shadow and...

Description Usage Arguments Value Author(s) Examples

View source: R/preprocessing.R

Description

The value of each pixel, of the inserted image, in each colour-dimension will be divided by the sum of the pixels values in all dimensions. By this shadows and light highlights in the image are removed to some degree. To get (back) to the overview of all steps and functions use this link: a.a.main

Usage

1
b.d.rgbNorm(filename, x = 480, y = 640, z = 3)

Arguments

filename

a string that describes the path to an image from the workingdirectory and it's filename

x

A number that describes the images horizontal number of pixels

y

A number that describes the images vertical number of pixeks

z

A number that describes the images number of color dimensions (normally 3 for RGB or 1 for grayscale)

Value

normImg an array of size x * y and with z dimensions that holds the normalized RGB-values of the image described by filename

Author(s)

Tassilo Tobollik

Examples

1
\code{b.d.rgbNorm(filename = "data/image.png", x = 480, y = 640, z = 3)}

Vitlik/DA2-17 documentation built on May 20, 2019, 11:12 a.m.