approx.scotopic.luminance.LarsonEtAl.RGB: Approximation of the scotopic luminance

Description Usage Arguments Value Author(s) Source References Examples

Description

approx.scotopic.luminance.LarsonEtAl.RGB approximates the scotopic luminance from RGB values. approx.scotopic.luminance.LarsonEtAl.XYZ approximates the scotopic luminance from XYZ values.

Usage

1
2

Arguments

XYZmatrix

matrix with XYZ values

RGBmatrix

matrix with RGB values

Value

approximated scotopic luminance

Author(s)

Jose Gama

Source

Larson, G. W., H. Rushmeier, and C. Piatko (1997, October - December). A visibility matching tone reproduction operator for high dynamic range scenes. IEEE Transactions on Visualization and Computer Graphics 3 (4), 291–306.

References

Larson, G. W., H. Rushmeier, and C. Piatko (1997, October - December). A visibility matching tone reproduction operator for high dynamic range scenes. IEEE Transactions on Visualization and Computer Graphics 3 (4), 291–306.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
samplePics <- c('fruits', 'pastel_color', 'sample1', 'TurnColorsGrayImage1', 'TurnColorsGrayImage2')
for (pics in samplePics)
{
fname<-paste(system.file(package='CVD'),'/extdata/',pics,'.png',sep='')
imgTest<-loadPNG(fname)
imgTest.array<-approx.scotopic.luminance.LarsonEtAl.RGB.array(imgTest)
png::writePNG(imgTest.array, paste(pics, '.approx.scotopic.luminance.LarsonEtAl.RGB.png',sep=''))
}

## End(Not run)

Example output

[1] "PNG 602x1002, 3 channels."
[1] "PNG 186x180, 3 channels."
[1] "PNG 361x480, 3 channels."
[1] "PNG 300x300, 3 channels."
[1] "PNG 301x302, 3 channels."

CVD documentation built on May 2, 2019, 6:30 p.m.