Divooka Reference

Tone Mapper

4 nodes

On this page 4

To Pixel Image (Drago)

Function

Drago's adaptive logarithmic mapping (2003): luminance compressed by a logarithm whose base moves from 2 in the shadows to 10 in the highlights, the bias choosing how quickly.

Signature
ToPixelImageDrago -> Pixel Image
    HDR: Hdr Pixel Image
    exposureCompensation: Low Accuracy Number
    saturation: Low Accuracy Number
    bias: Low Accuracy Number
PixelImage ToPixelImageDrago(
    HdrPixelImage hdr,
    float exposureCompensation = 0f,
    float saturation = 1f,
    float bias = 0.85f)

Parameters

nametypedefaultdescription
HDRHdr Pixel Image—The HDR image, scene-linear.
exposureCompensationLow Accuracy Number0Stops added after mapping: +1 doubles the brightness.
saturationLow Accuracy Number1Colour saturation: 1 keeps the image's colours, below 1 mutes them.
biasLow Accuracy Number0.85From 0.7 to 0.9: lower keeps more contrast in the highlights; 0.85 is the paper's default.

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Tone Mapper
Package
Image Processing

To Pixel Image (Durand)

Function

Durand and Dorsey's fast bilateral filtering (2002): the log-luminance split by a bilateral filter into a base layer, whose range is compressed to Contrast, and the detail, kept.

Signature
ToPixelImageDurand -> Pixel Image
    HDR: Hdr Pixel Image
    exposureCompensation: Low Accuracy Number
    contrast: Low Accuracy Number
    saturation: Low Accuracy Number
    sigmaSpace: Low Accuracy Number
    sigmaColor: Low Accuracy Number
PixelImage ToPixelImageDurand(
    HdrPixelImage hdr,
    float exposureCompensation = 0f,
    float contrast = 4f,
    float saturation = 1f,
    float sigmaSpace = 2f,
    float sigmaColor = 2f)

Parameters

nametypedefaultdescription
HDRHdr Pixel Image—The HDR image, scene-linear.
exposureCompensationLow Accuracy Number0Stops added after mapping: +1 doubles the brightness.
contrastLow Accuracy Number4The range the base layer is compressed to, in natural-log units; 4 gives about 1:55.
saturationLow Accuracy Number1Colour saturation: 1 keeps the image's colours, below 1 mutes them.
sigmaSpaceLow Accuracy Number2The bilateral filter's spatial sigma, in pixels.
sigmaColorLow Accuracy Number2The bilateral filter's range sigma, in log-luminance.

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Tone Mapper
Package
Image Processing

To Pixel Image (Mantiuk)

Function

Mantiuk's perceptual contrast mapping (2006): the log-luminance's contrast, at every scale of a pyramid, compressed by Scale in a perceptual response and the luminance solved back from it.

Signature
ToPixelImageMantiuk -> Pixel Image
    HDR: Hdr Pixel Image
    exposureCompensation: Low Accuracy Number
    scale: Low Accuracy Number
    saturation: Low Accuracy Number
PixelImage ToPixelImageMantiuk(
    HdrPixelImage hdr,
    float exposureCompensation = 0f,
    float scale = 0.7f,
    float saturation = 1f)

Parameters

nametypedefaultdescription
HDRHdr Pixel Image—The HDR image, scene-linear.
exposureCompensationLow Accuracy Number0Stops added after mapping: +1 doubles the brightness.
scaleLow Accuracy Number0.7Contrast scale, from 0.6 to 0.9: lower compresses more.
saturationLow Accuracy Number1Colour saturation: 1 keeps the image's colours, below 1 mutes them.

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Tone Mapper
Package
Image Processing

To Pixel Image (Reinhard)

Function

Reinhard's photographic tone reproduction (2005): each channel compressed by v / (v + adaptation), the adaptation level a blend of the pixel's own colour and luminance and of the image's means.

Signature
ToPixelImageReinhard -> Pixel Image
    HDR: Hdr Pixel Image
    exposureCompensation: Low Accuracy Number
    intensity: Low Accuracy Number
    lightAdaptation: Low Accuracy Number
    colorAdaptation: Low Accuracy Number
PixelImage ToPixelImageReinhard(
    HdrPixelImage hdr,
    float exposureCompensation = 0f,
    float intensity = 0f,
    float lightAdaptation = 1f,
    float colorAdaptation = 0f)

Parameters

nametypedefaultdescription
HDRHdr Pixel Image—The HDR image, scene-linear.
exposureCompensationLow Accuracy Number0Stops added after mapping: +1 doubles the brightness.
intensityLow Accuracy Number0Overall brightness, from -8 to 8: higher is brighter.
lightAdaptationLow Accuracy Number1From 0 to 1: 1 adapts each pixel to its own light, 0 to the image's average.
colorAdaptationLow Accuracy Number0From 0 to 1: 1 adapts each channel separately, 0 adapts all three to luminance.

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Tone Mapper
Package
Image Processing