Beruflich Dokumente
Kultur Dokumente
What is HDR?
High Dynamic Range Can store large variation of intensity in an HDR image. Photographs captured using ordinary cameras are SDR images. Low range of intensity variation can be depicted.
Why HDR?
Clouds are visible.
But the rest of the part is dark.
Why HDR?
Cloud is washed out.
So an SDR image cant include all the details in a scene. Human eyes can perceive 10-3 to 10+5 cd/m2. An SDR images dynamic range is about 102.
Combine
HDR Image
Tone mapping should ensure that the maximum details in the HDR image is made available in the resultant SDR image.
Exposure 2
Exposure m
Combi ne
HDR Image
Tone Mapping
How to combine?
Using Camera response function
Gradient method Probabilistic Exposure method
Pixel value in SDR Image is a function of exposure at that pixel. The function is called the Camera Response Function (CRF). CRF is obtained from SDR images at different exposures.
SDR Image 1
10
Mimicked HDR
So another idea is to generate an SDR image directly from the input images. This SDR image is constructed in such a way that the maximum information is contained it. Also called mimicked HDR image.
11
13
14
Visible Contrast
Visible contrast for each pixel.
Consider a window with pixel (i,j) as centre. Visible difference between magnitude of pixel and average luminance of window.
15
16
17
Visible Contrast
18
19
Sample images
20
Image 1 Image 2 Image 3
21
22
Visible Gradient
For all pixels (i,j) in the window
23
Visible Gradient
24
Scene Gradient
For all pixels (i,j) in the window
Find the maximum value. Gradient of the corresponding pixel is scene gradient.
25
26
27
Probability model
28
Image Synthesis
29
Simplifying the above equation we have IS(x+1,y)+IS(x-1,y)+IS(x,y+1)+IS(x,y-1)(4+C2/S2)IS(x,y) = Gx(x,y) - Gx(x-1,y) + Gy(x,y) - Gy(x,y-1) C2/S2uI(x,y)
30
Sample images
31
Image 2 Image 3
Image 1
32
Window size=10 (c/s) 2=0.08
Output images
33
Window size=36 (c/s) 2=0.08 Window size=36 (c/s) 2=0.008 Window size=6 (c/s) 2=0.08
34
Divide the images into smaller segments Find the magnitude of gradient of each pixel in the segment in x and y directions. Find the maximum of the x gradient and y gradient for each pixel in the segment. Find the value for all pixels in the segment and add up. This would be the amount of detail MD in the segment of the particular input image.
35
Detail Extraction
Similarly find MD for the same segment in the other input images. One with the maximum detail is considered for the resultant image processing. Repeat this for all the segments. The image obtained just using this will have sharp transitions on the borders of the segments.
36
Gaussian Smoothing
So to avoid the sharp transition a 2 D Gaussian curve can be used. The 2 D Gaussian is used to smoothen the luminance of the pixels in a segment. Previously obtained luminance value at pixel (i,j) is multiplied with the Gaussian function value at the pixel to obtain the luminance of the resultant image.
37
38
FUTURE WORK
We used gradient method and probabilistic exposure fusion technique to fuse SDR images to obtain HDR image.
One of the chief limitation of all these fusion technique is its requirement that the camera and scene be still between different exposures If there are movements between different exposures the HDR output image would be blurred with double images and sometimes in worst case multiple images.
39
40
41
42
IMAGE REGISTRATION
Its practically impossible to not have motion between different exposures.
Image registration for mitigating effects of ghosting due to misalignment and moving object in scene So far no algorithms can completely undo the effects of ghosting though MTB (Median Threshold Bitmap by Ward) method is an efficient solution We first going to implement MTB method and later hoping to come up with our own better algorithms.
43
44
45
46
47
48
49
Depending on users interest moving object could be either completely removed or kept at a fixed position
High contrast movements (moving object with different back ground)could be correctly detected Low contrast movements are difficult detect and remove.
50
We are hoping to come up with our own techniques for image fusion and image registration by next semester
We will code these algorithms in c language and produce a real product for HDR image production
51
References
[1] Mingli Song, Dacheng Tao, Chun Chen,
Jiajun Bu, JieboLuo and Chengqi Zhang, Probabilistic exposure fusion", in IEEE Transactions on Image Processing, vol. 21, no. 1, pp. 341-357, January 2012. [2] Andras Rovid, Annamaria R, Varkonyi-Koczy , Takeshi Hashimoto, Szilveszter Balogh, Yoshifumi Shimodaira, Gradient Based Synthesized Multiple Exposure Time HDR Image, in Instrumentation and Measurement Technology Conference Proceedings, pp. 1-6, 2007 [3] www.hdrsoft.com