approx.scotopic.luminance.LarsonEtAl.RGB {CVD} | R Documentation |
approx.scotopic.luminance.LarsonEtAl.RGB
approximates the scotopic luminance from RGB values.
approx.scotopic.luminance.LarsonEtAl.XYZ
approximates the scotopic luminance from XYZ values.
approx.scotopic.luminance.LarsonEtAl.XYZ(XYZmatrix) approx.scotopic.luminance.LarsonEtAl.RGB(RGBmatrix)
XYZmatrix |
matrix with XYZ values |
RGBmatrix |
matrix with RGB values |
approximated scotopic luminance
Jose Gama
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.
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.
## 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)