# # Tone map with gamma function with local adaptation # provided by a multi level gaussian blur and "contrast" preprocess. # # first load processors PROCESSORS: 1 = "compressor" # Use simple dynamic range compression. 2 = "coltolum" # extract brightness channel. 3 = "mlfilter" # blur the brightness channel. 4 = "contrast" # blur the brightness channel. # Now add dependencies DEPENDENCIES: 1:0 <- 4 # slot 0 is populated by src 2:0 <- 0 # image -> luminance 3:0 <- 2 # luminance -> local adaptation 4:0 <- 0 4:1 <- 3 # Now set parameters PARAMETERS: # Set up compressor 1:"compression function" = 2 # gamma 1:"gamma" = 0.6 # default 1:"discard dark" = 1 # % of pixels to be set to black. 1:"discard bright" = 1 # % of pixels to be set to white. 1:"normalise" = true # post process brightness to range 0-1 #1:"min luminance" = 1.0e5 # Use instead of "discard dark" #1:"max luminance" = 1.0e-5 # Use instead of "discard bright" #set up filtering 3:"number of layers" = 6 # number of layers to blend together. 3:"threshold" = 1 # Edge detection threshold (turn down to stop halos) # Set up contrast preprocessor 4:"contrast" = 2 # OUTPUT: 1 # #OUTPUT 4 # change to this to write output of contrast boost without compress.