Learn R Programming

CVD (version 1.0.2)

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

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

approx.scotopic.luminance.LarsonEtAl.XYZ(XYZmatrix) approx.scotopic.luminance.LarsonEtAl.RGB(RGBmatrix)

Arguments

XYZmatrix
matrix with XYZ values
RGBmatrix
matrix with RGB values

Value

approximated scotopic luminance

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

Run this code
## 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)

Run the code above in your browser using DataLab