Docsity

High Dynamic Range Imaging: HDR Rendering, File Formats, and Tone Mapping, Papers of Computer Science

Partial preview of the text

Download High Dynamic Range Imaging: HDR Rendering, File Formats, and Tone Mapping and more Papers Computer Science in PDF only on Docsity!

High Dynamic Range Rendering

๎€Š High Dynamic Range Imaging

๎€Š (^) File formats ๎€Š (^) Tone mapping

๎€Š High Dynamic Range Rendering

๎€Š (^) Bloom ๎€Š (^) Flare

High Dynamic Range

๎€Š 8 bit RBG is capable of representing >16 million colors

๎€Š

Only 256 perceived luminance values

๎€Š Images can appear flat

๎€Š (^) White sheet of paper in room lighting can be rendered the same color as an image of the sun.

HDR Imaging

๎€Š File formats

๎€Š (^) .hdr ๎€Š (^) one byte R,G,B and shared exponent (RGBE) ๎€Š (^) .exr ๎€Š (^) Half precision (16 bit) RGB ๎€Š (^) .tiff ๎€Š (^) Single precision (32 bit) RGB ๎€Š (^) Logarithmic encodings ๎€Š (^) .pfm ๎€Š (^) Single precision (32 bit) RGB ๎€Š (^) Extension to pbm format

Acquiring HDR Images

๎€Š Bracketed exposures

๎€Š (^) Acquire multiple photographs ๎€Š (^) Vary exposure time (shutter speed) ๎€Š

Bracketed aperture

๎€Š (^) Not preferred ๎€Š (^) Aperture changes depth of field ๎€Š (^) Brighter objects more in focus

๎€Š Other possibilities: filters, film

Building the HDR image

๎€Š Camera response curve: Z

i

= f(X

i

๎€Š

Can find by solving a linear system

Debevec, P.E. and Malik, J., Recovering high dynamic range radiance maps from photographs, Proceedings of the 24th annual conference on Computer graphics and interactive techniques, pp. 369-378, 1997.

Building the HDR image

๎€Š Save irradiance values, not pixel intensities

๎€Š ๎€Š (^) Better to compute the average E i,j where j are the images in which E i is not over/under exposed. Ei = f โˆ’ูก ๎‚ž Z i

๎‚ญ t

Tone mapping

๎€Š Dynamic range reduction : Mapping HDR to LDR

๎€Š (^) Virtual photographs ๎€Š (^) Given a camera response function and an exposure time you can generate the photograph from that camera. ๎€Š (^) Can be any camera response function, not just the one used to generate the HDR image. ๎€Š (^) Global operators ๎€Š (^) Map intensities using the same function everywhere. ๎€Š (^) Efficient and fast ๎€Š (^) Local operators ๎€Š (^) Map intensities using a function which depends on neighborhood image properties. ๎€Š (^) May better mimic human visual adaptation ๎€Š (^) Not only due to pupil opening/closing ๎€Š (^) Also rod/cone adaptation

Virtual Photographs

Original 3 stops brighter 5 stops brighter

Tools

๎€Š OpenEXR: exr file loading and display

๎€Š

Radiance: Raytracer (defined hdr image formate)

๎€Š HDR Shop : HDR Image Processing

๎€Š Photoshop CS2 : tonemapping

๎€Š (^) Also Nvidia and DirectX plugins

๎€Š ATI CubeMapGen will read .hdr and write .dds cubes

๎€Š More : Picturenaut, FDRtools, pfstools, photosphere,

hdrgen, CVLtonemap (GPU tonemapping)

HDR data

๎€Š Paul Debevec (http://www.debevec.org/)

๎€Š (^) HDR light probes ๎€Š (^) Cube maps, and other environment maps

HDR texture formats

๎€Š For colors and as render targets

๎€Š R32G32B32A

๎€Š R16G16B16A

๎€Š R11G11B10F

Tone mapping

๎€Š In terms of luminance

๎€Š (^) Luminance = 0.2126 Red + 0.7152 Green + 0.0722 Blue ๎€Š (^) Map world luminance, L w , to display luminance L d

๎€Š L

w in [0, infininty) to L d in [0,1] ๎€Š (^) vec4 final_color = L d *color; L w (HDR) L d (LDR)

Tone mapping

๎€Š Sigmoid (smoothstep)

๎€Š (^) float Ld = smoothstep(L_black, L_white, L_w); ๎€Š

Rational

๎€Š Getting L

avg

: enable automatic mipmap generation

L

d

p L w ๎‚ž p โˆ’ 1 ๎‚Ÿ L w

๎‚ƒ L

max

L

d

L

w L w

๎‚ƒ 1 L

d

L

w

L

w L white 2

L

w

Light/dark adaptation

๎€Š Slowly change tone mapping parameters to simulate visual

adaptation

๎€Š

Slow pupil opening/closing