z.e.RGBAtoRGB: Util - Function that converts RGBA to RGB

Description Usage Arguments Value Author(s)

View source: R/util.R

Description

To get (back) to the overview of all steps and functions use this link: a.a.main

This function transforms the given RGBA values to RGB values. Thereby r,g,b are the background RGB colors, r2,g2,b2 are the foreground picture colors of the RGBA image and a is the alpha value of the RGBA image.

Usage

1
z.e.RGBAtoRGB(r = 0, g = 0, b = 0, a, r2, g2, b2)

Arguments

r

An one dimensional dataframe that holds the red colour values of the background of the image

g

An one dimensional dataframe that holds the green colour values of the background of the image

b

An one dimensional dataframe that holds the blue colour values of the background of the image

a

An one dimensional dataframe that holds the alpha values of the image

r2

An one dimensional dataframe that holds the red colour values of the foreground of the image

g2

An one dimensional dataframe that holds the green colour values of the foreground of the image

b2

An one dimensional dataframe that holds the blue colour values of the foreground of the image

Value

A three dimensional dataframe that holds the converted RGB colour values of the image

Author(s)

Tassilo Tobollik


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