The invention relates to image composition methods, and in particular to composition methods for displaying high dynamic range images on standard low dynamic range device.
Image reproduction is an important issue for artists in various Ages, such as painters or photographers. One goal of image reproduction is to reproduce original images based on image factors, such as brightness, colors, or figures. For image reproduction, low dynamic range (LDR) images are easy to reproduce, while high dynamic range (HDR) images are difficult.
The dynamic range of a scene is defined by the contrast ratio between its brightest and darkest parts. A high dynamic range image (HDR image) is typically generated by combining multiple LDR images of the same scene taken at different exposure levels. For example, a flat plate in a luminous room may compose a LDR image, while a black dog in white snow forms a HDR image.
Generally, painters can reproduce images properly through painting techniques even if the contrast ratio of an image is large. For traditional photographers, because of limitations of camera mechanism, the only recourse is to wait for a suitable time and scene for capturing images.
Recently, cameras have been digitized. Thus, the images taken by digital cameras are digital images. Digital photographers can post-process digital images via digital image processing methods to reproduce original images properly. Thus, HDR images can be composed and processed by some image processing tools to obtain a displayable low dynamic range image. However, present image composition tools cannot produce a satisfactory HDR image, especially eliminating the motion defect of the image, such as waterfalls, moving people, etc. Thus, more effective HDR image processing methods for image composition are desirable.
An exemplary embodiment of an image composition system is provided comprising an image detection unit and an image composition unit. The image detection unit detects marked parts in low dynamic range images. The low dynamic range images are images of the same scene taken at different exposure levels. The image composition unit sets exposure history data of the low dynamic range images according to the marked parts. The image composition unit then synthesizes the low dynamic range images into a high dynamic range image according to the exposure history data.
The invention can be more fully understood by reading the subsequent detailed description and examples with references made to the accompanying drawings, wherein:
a is a flowchart of an embodiment of an image composition method.
b is a detailed flowchart of image composition of the embodiment of an image composition method.
The image detection unit 10 detects marked parts in low dynamic range images. The marked parts comprise deletion parts which are dropped without composing, and/or reservation parts which must be referred by other LDR images. The deletion and reservation parts can be marked in the same or different low dynamic range images.
The image composition unit 12 is coupled to the image detection unit 10. The image composition unit 12 sets exposure history data of the low dynamic range images according to the unmarked parts and composes the low dynamic range images into a high dynamic range image according to the exposure history data. Here, the exposure history data can be stored in a database 14.
When the image composition unit 12 synthesizes the images, the low dynamic range images are divided into marked area and unmarked area according to each marked part. The image composition unit 12 maps each reservation part to the corresponding area of the rest images, deletes the deletion parts in the marked images, and then synthesizes the marked images and unmarked images.
For example, if low dynamic range images are images A, B, and C, and a deletion part is marked in image A, image A is a marked image for this deletion part and images B and C are unmarked images for this deletion part. If image B comprises a reservation part, image B is a marked image for this reservation part and images A and C are unmarked images for this reservation part.
The image composition unit 12 further comprises a partial composition unit 120, a standard composition unit 122, and a digital blending unit 124. The partial composition unit 120 synthesizes the marked parts, sets the exposure history data of the low dynamic range images accordingly, and obtains partial synthesized images according to the exposure history data. The standard composition unit 122 synthesizes unmarked parts of the low dynamic range images to obtain standard synthesized images. The digital blending unit 124, coupled to the partial composition unit 120 and the standard composition unit 122, digitally blends the partial synthesized images and the standard synthesized images into a high dynamic range image.
If the partial composition unit 120 or the standard composition unit 122 cannot synthesize images according to the exposure history data 14, a response function is adopted for image composition. The response function is calculated by:
E is a theoretical brightness value, g is the response function, L is a pixel value, Δt is exposure time, i is pixel number, j and k are exposure times, and M and X are the numbers of the low dynamic range images.
Here, M is a maximum number of the low dynamic range images, for example, M=5. All the 5 images can be used for theoretical brightness value calculation. In some situations, only parts of the 5 images are used for calculation, for example, 3 or 4 images. The rightmost side of the response function represents that the brightness value can be calculated using even 1 image. Moreover, g is a camera response function, produced by a regression analysis method.
a is a flowchart of an embodiment of an image composition method. Low dynamic range images are provided (step S20). The low dynamic range images are images of the same scene taken in different exposure levels. Marked parts in the low dynamic range images are then detected (step S22). Exposure history data of the low dynamic range images is set according to the marked parts. The low dynamic range images are synthesized into a high dynamic range image according to the exposure history data (step S24). The exposure history data can be stored in a database.
The marked parts may comprise deletion parts and/or reservation parts. The deletion parts and the reservation parts can be marked in the same or different low dynamic range images.
b is a detailed flowchart of image composition of the embodiment of an image composition method. The low dynamic range images are divided into a marked image and unmarked images according to each marked part. For image composition, each reservation part is mapped to the unmarked images (step S200). The mapped reservation parts may be deleted from the unmarked images. The deletion parts are deleted from the marked images directly (step S204). The marked images and unmarked images are synthesized after deletion (step S206).
In the step S20, image composition is accomplished by the following steps. The marked parts of the low dynamic range images are synthesized. The exposure history data of the low dynamic range images is set. Partial synthesized images are obtained according to the exposure history data. Unmarked parts of the low dynamic range images are synthesized to obtain standard synthesized images. The partial synthesized images and the standard synthesized images are digitally blended into the high dynamic range image.
If the images cannot be synthesized according to the exposure history data, a response function is referred for image composition. The response function is calculated by:
Here, E is a theoretical brightness value, g is the response function, L is a pixel value, Δt is exposure time, i is pixel number, j and k are exposure times, and M and X are the numbers of the low dynamic range images.
A reservation part 360 is marked in image 30 and a deletion part 382 is marked in image 30. Here, the deletion and reservation parts can be marked in the same or different images. Thereafter, the reservation part 360 is mapped to the same position of the rest of images 32 and 34, shown as marked parts 362 and 364. When the images are synthesized, the original data of mapped parts 362 and 364 are replaced by part 360. Only the reservation part 360 will be reserved. The deletion part 382 is deleted directly. The 3 images 30, 32, and 34 are synthesized to a high dynamic range image after deletion.
Thereafter, the images are processed by a HDR image composition procedure 48. The function of the HDR image composition procedure 48 is to synthesize images through numerical analysis. The HDR image composition procedure 48 may refer to a camera response function 62 and a HDR operation procedure 50. The provided image composition method is employed in the removal procedure 44 and the HDR operation procedure 50.
The images are then processed by a HDR optimization procedure 52. The main function of the HDR optimization procedure 52 is image selection. The HDR optimization procedure 52 may refer to a HDR image database 54. Next, the images are processed by a LDR image post-process procedure 56 to obtain displayable images 58.
Thus, the provided image composition methods and systems may potentially resolve conventional image reproduction problems, reducing manual operations.
While the invention has been described by way of example and in terms of preferred embodiment, it is to be understood that the invention is not limited thereto. Those who are skilled in this technology can still make various alterations and modifications without departing from the scope and spirit of this invention. Therefore, the scope of the present invention shall be defined and protected by the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
93128391 | Sep 2004 | TW | national |