Mapping and imaging large terrestrial areas present many challenges. One technical issue presented by color images of terrestrial areas relates to color reproduction of raw images. For example, the atmosphere has an undesired distance-dependent influence that can cause a digital image to appear blue and/or hazy. Or, for another example, the sun has an angle-dependent influence that can cause parts of a digital image of a lame terrestrial area to appear brighter than other parts, even though the brightness of the scene itself is relatively uniform. Techniques have been developed, for dealing with these and other issues surrounding the accurate capture of such images in digital form. In particular, techniques have been developed to handle the challenges of accurately capturing scene content in spite of lame, often non-linear, variations across the image.
Thus, the content of an image of a lame terrestrial area can be accurately captured using a high dynamic range, large format camera, such as a Microsoft UltraCam aerial camera. However, the dynamic range of the captured image is typically higher than that of a visual display device such as a computer monitor or a printer on which the image is to be viewed or reproduced. For example, such cameras might capture the image in a format with a 16-bit dynamic range, while a computer monitor or printer might only have an 8-bit dynamic range. Likewise, it would usually be more practical to store and retrieve such image data in a form with the same dynamic range as the visual display device with which it is to be viewed, rather than the larger dynamic range of the image produced by the camera. This is because the reduced dynamic range image will use less storage space and will not require conversion in order to reproduce the data in a visible form. And if the images are stored on a remote location and accessed through the Internet, reducing image's dynamic range will also reduce the bandwidth and time required to download images stored in the cloud to a local computer for display.
On the other hand, it is necessary that the content of the original 16-bit image be preserved, to the greatest extent possible when converting it to an 8-bit image. Otherwise, content of the image will be lost to those who want to view it on a computer monitor, print it, or otherwise make it visible on a visual display device.
One aspect of the subject matter discussed herein provides a manner of converting an original digital image with pixels having a particular dynamic range into a corresponding image with pixels having a lower dynamic range by a tone mapping technique that reduces loss of content in the original image and minimizes artifacts in the corresponding image.
In one aspect of the subject matter claimed herein, a method for tone mapping a high dynamic range image of a large terrestrial area into a lower dynamic range image uses a globally aware, locally adaptive approach whereby local tonal balancing parameters are derived from known tone mapping parameters for a local matrix of image tiles and used in turn to derive a local sigmoid transfer function. A global sigmoid transfer function is derived based on values of the tone mapping parameters applicable to the entire image. Pixels are tone mapped using a local tone mapped value and a global tone mapped value, which are combined using a weighting factor applicable to each value.
In another aspect of the subject matter claimed herein, a computer system includes a tone mapping program module with algorithms embodied in executable instructions for performing a tone mapping method such as that described, a storage module for storing the pixels of the tone mapped image, and a display component for displaying the tone mapped image.
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
The objects of the subject matter discussed herein will be better understood from the detailed description of embodiments which follows below, when taken in conjunction with the accompanying drawings, in which like numerals and letters refer to like features throughout. The following is a brief identification of the drawing figures used in the accompanying detailed description.
One skilled in the art will readily understand that the drawings are schematic in many respects, but nevertheless will find them sufficient, when taken with the detailed description that follows, to make and use the claimed subject matter.
Referring first to
The camera 10 and lens 12 are typically mounted in an aircraft 20 as shown in
In any event, each raw image produced by the camera 10 is of an area A, and the flight path P is a zig-zag pattern that covers a large region R of the earth's surface. The dimensions of the region R might typically be X=100 kilometers and Y=100 kilometers, although other size regions can be imaged as well. It will be appreciated from
In step S302 a bundle adjustment is performed according to known principles using a process of aerial triangulation that minimizes the reprojection errors arising because the image represents multiple three-dimensional points photographed from different viewpoints. Next, step S304 is a radiometric process that removes atmospheric scattering (Rayleigh & Mie) in the aerial images. This corrects for the atmosphere's distance-dependent influence and prevents the image from falsely appearing blue and/or hazy. This step can be performed in accordance with the techniques described, in U.S. patent application Ser. No. 12/973,689, discussed above. Step S306 is also a radiometric process that removes hotspots caused by microshadows that result in uneven illumination of the images by correcting for the sun's angle-dependent influence. This can cause parts of the image captured by the camera 10 to appear brighter than other parts, even though the brightness of the scene itself is relatively uniform. A technique for performing this image correction can be based on the principles discussed in Chandelier, L., et al, “A Radiometric Aerial Triangulation for the Equalization of Digital Aerial Images,” Programmetric Engineering & Remote Sensing, pages 193-200 (2009). In step S308 the atmosphere-corrected images with hotspots removed are ortho rectified. This is a known geometric process that corrects an aerial image so that the scale is uniform, like a map, without distortion. This is followed by step S310, in which the ortho rectified images are assembled using a known segmentation process by which the multiple ortho rectified images are assembled into a seamless mosaic of image tiles. This can be performed by an algorithm using max-flow-min-cut theory known to those skilled in the art.
It will be appreciated that the resulting image data after step S310 still has a 16-bit dynamic range. As discussed above, this dynamic range is generally not suitable for use by visual display devices such as computer monitors or printers, which typically have an 8-bit dynamic range. It is also advantageous to store the resulting image of the region R in an 8-bit dynamic range format, to use less storage space and to facilitate image transfer from one location to another (such as over the Internet). There are many known tone mapping techniques for converting a 16-bit dynamic range image to an 8-bit dynamic range image. It is also known to perform such tone mapping either on the raw images captured by the camera 10 (that is, right after step S300 and before any other image processing), or after step S310, when an ortho mosaic representing the image of region R has been constructed. The advantageous tone mapping methods described herein perform tone mapping after step S310 and are represented generally in
The present embodiment derives the following four tonal balancing parameter tile values for each neighborhood from the image's red (R), green (G), blue (B), and infrared (IR) components:
In step S602 each neighborhood's tone mapping parameters are assigned to the center tile of each neighborhood. In step S604 neighborhood sigmoid transfer functions are derived for each tile using the above tonal balancing parameters. First, dynamic ranges are determined for each image component of each tile based on the tonal balancing parameters derived step S602. In the present embodiment the 16-bit dynamic range for each of the R, G, and B components of the tile is set to RGBTileHighlightValue−RGBTileShadowValue and the 16-bit dynamic range for the IR component of the tile is set to FCIRTileHighlightValue−FCIRTileShadowValue. For ease of notation in the discussion that follows below, the 16-bit value for the R, B, and G components of the tile will be used as an example, but the same principles are applied to both the R,G,B components and the IR components of a tile. This value is used as the tile dynamic range for the sigmoid transfer function assigned to a tile as discussed in the next paragraph.
The local tone mapping involves mapping the 16-bit value for each image component to an 8-bit value from 0 to 255 (28=256) using a neighborhood sigmoid transfer function for each image component. A typical sigmoid transfer function is depicted in graph form in
In step S606 local tone mapping for each tile is performed by first tonally blending each pixel in every tile 402 in the region R. Again, taking the tile 404 shown in
For this quadrant, the center pixel location of the tile 404 is selected as the origin of an orthogonal X-Y coordinate axis system, as shown in
R1=(X2−X)/(X2−X1)×f11(SX,Y)+(X−X1)/(X2−X1)×f21(SX,Y) (1)
R2=(X2−X)/(X2−X1)×f12(SX,Y)+(X−X1)/(X2−X1)×f22(SX,Y) (2)
PX,Y=(Y2−Y)/(Y2−Y1)×R1+(Y−Y1)/(Y2−Y1)×R2 (3)
where:
The same local blended tone mapping is performed for each pixel in each of the other quadrants 404b, 404c, and 404d. More specifically, for the quadrant 404b, the above tonal blending bilinear interpolation algorithm is applied using the transfer functions assigned to the tiles 404, 4063, 4064, and 4065; for the quadrant 404c, the tonal blending algorithm is applied using the transfer functions assigned to the tiles 404, 4065, 4066 and 4067; for the quadrant 404d, the tonal blending algorithm is applied using the transfer functions assigned to the tiles 404, 4067, 4068, and 4061. At the edges of the region R, the tonal blending is performed using the adjacent tiles that are available. For example, if the tile 404 were at the upper periphery of the region R, then the values assigned to the transfer functions f12 and f22 in equation (2) above would be set to zero. Accordingly, equation (3) would become:
PXY=(Y2−Y)/(Y2−Y1)×R1
Likewise, if the tile 404 were at the lower periphery of the region R, tonal blending for the quadrant 404b would be carried out using only adjacent tile 4063.
The embodiment as described thus far contemplates a parallel processing approach whereby all of the tonal balancing parameters are derived for all of the neighborhoods before the local tone mapping step S606. It will be appreciated that local tone mapping can be carried out on a more or less serial type processing on a neighborhood-by-neighborhood basis, or some combination of parallel processing of some neighborhoods of the region R and serial processing of neighborhoods already processed.
The next step S608 involves determining the average value of the shadow percentiles and highlight percentiles for all of the tiles in the region R, using the values for these parameters as derived above for each center tile of all of the neighborhoods. The average value of these image parameters can be determined by summing the thus-derived values for each tile in the image of region R on a tile-by-tile basis and dividing by the total number of tiles. In step S610 global sigmoid transfer functions for each image component (R,G,B,IR) are derived as discussed above, but using the average global values. In step S612 an 8-bit pixel is mapped from each 16-bit image pixel in the entire image using the global transfer functions.
More specifically, the present embodiment derives global transfer functions from tonal balancing parameters based on the global averages of the shadow percentile values and highlight percentile values for each of the 16-bit HDR image's red (R), green (G), blue (B), and infrared (IR) components:
The global tone mapping involves mapping the 16-bit value for each pixel's image component to an 8-bit value from 0 to 255 (28=256) using a global sigmoid transfer function for each image component. A given 16-bit pixel component value being mapped to an 8-bit value first has an offset of RGBGlobShadowValue for the tile containing the pixel subtracted from the pixel value. Next, the pixel component value is multiplied, by a scale factor=1÷the derived 16-bit global dynamic range for the tile containing the pixel to obtain a floating point value between 0 and 1, and the same gamma correction function as before is applied to this floating point value. Finally, the gamma-corrected global floating point value is multiplied by 255 to determine the global sigmoid transfer function for mapping the 16-bit value for each image component of the pixel to an 8-bit value. Any resulting value below RGBGlobShadowValue will be mapped to 0, and any resulting value above RGBGlobHighlightValue will be mapped to 255. In practice, the resulting global sigmoid transfer function is embodied in a look-up table to which a computer processor can refer.
Step S614 applies a global awareness factor to the locally tone mapped pixels obtained in step S606. As noted, each pixel comprises local 8-bit image components or channels (R,G,B,IR) resulting from step S606 and corresponding 8-bit global image components resulting from step S612. Step S614 combines each local image component and its corresponding global image component using a sum-to-1 weighting factor. Taking as an example the red component or channel of a given pixel, the final value R_final of the 8-bit tone mapped pixel is given by the following algorithm:
R_final=R_local weight+R_global×(1−local weight) (4)
where:
The above described globally aware, locally adaptive tone mapping process improves the image quality of the tone mapped image, especially of those image portions that are particularly homogeneous and thus exhibit a narrow histogram, like expanses of water. When the histograms of such areas are too narrow (that is, have a standard deviation much smaller than a typical histogram of a more varied image portion). The image parameters shadow percentile and highlight percentile of such homogeneous image portions will also have Barrow ranges of values, and will likely not reflect the true luminance range of those image portions. If only the narrow-range image parameters are used for tone mapping, the resultant image can be too light or too dark compared with other more varied image tiles. The present tone mapping method avoids these shortcomings by virtue of considering local and global statistics simultaneously, thereby enhancing uniformity from global parameters and contrast from local parameters.
It will be appreciated that the above tone mapping method is particularly adapted to be performed by a conventional digital computer system 900 such as that shown schematically in
It will also be appreciated that tone mapped images in accordance with the methods described above can be generated using a processor module similar to that depicted in
As used in this description, the terms “component,” “module,” “system,” “apparatus,” “interface,” or the like are generally intended to refer to a computer-related entity, either hardware, a combination of hardware and software, software, or software in execution, unless the context clearly indicates otherwise (such as the use of the term “image component”). For example, such a component may be, but is not limited to being, a process running on a processor, a processor, an object, an executable, a thread of execution, a program, and/or a computer. By way of illustration, both an application running on a controller and the controller can be a component. One or more components may reside within a process and/or thread of execution and a component may be localized on one computer and/or distributed between two or more computers. It will be further understood that a “module,” as used herein, and particularly in
Furthermore, the claimed subject matter may be implemented as a method, apparatus, or article of manufacture using standard programming and/or engineering techniques to produce software, firmware, hardware, or any combination thereof to control a computer to implement the disclosed subject matter. The term “article of manufacture” as used herein is intended to encompass a computer program accessible from any computer-readable device, carrier, or media. For example, computer readable media can include but are not limited to magnetic storage devices (e.g., hard disc, floppy disc, magnetic strips . . . ), optical discs (e.g., compact disc (CD), digital versatile disc (DVD) . . . ), smart cards, and flash memory devices (e.g., card, stick, key drive . . . ). Of course, those skilled in the art will recognize many modifications may be made to this configuration without departing from the scope or spirit of the claimed subject matter. Moreover, the term “computer” is not meant to be limiting in any manner. For example, the claimed subject matter can be embodied in any suitable apparatus, including desktop computers, laptops computers, personal digital assistants, smart phones, televisions, and the like.
From this description, it will be appreciated that in a general sense, the disclosed subject matter relates to a method for converting a first image represented by HDR pixels having a predetermined dynamic range, said first image comprising a plurality of tiles each including a two-dimensional array of a plurality of said pixels, into a second image with corresponding LDR pixels having a lower dynamic range. The method performs a local tone mapping on each HDR pixel of the first image using a local transfer function for converting the HDR pixel to an LDR pixel having a locally tone mapped value. In addition, a global tone mapping is performed on each HDR pixel using a global transfer function for converting the HDR pixel to an LDR pixel having a globally tone mapped value, with the global transfer function being derived from an average value of the image parameter of all of the HDR pixels. A final value for each LDR pixel is derived by weighting the locally and globally tone mapped pixel values using a first weighting factor applied to each locally tone mapped LDR pixel value and a second weighting factor applied to each globally tone mapped LDR pixel value and combining the weighted locally and globally tone mapped LDR pixel values. The final LDR pixel values are stored in a storage device for outputting the second image.
Unless specifically stated, the methods described herein are not constrained to a particular order or sequence. In addition, some of the described method steps can occur or be performed concurrently. Further, the word “example” is used herein simply to describe one manner of implementation. Such an implementation is not to be construed as the only manner of implementing any particular feature of the subject matter discussed herein. Also, functions described herein as being performed by computer programs are not limited to implementation by any specific embodiments of such programs.
Although the subject matter herein has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter of the appended claims is not limited to the specific features or acts described above. Rather, such features and acts are disclosed as sample forms of corresponding subject matter covered by the appended claims.
Number | Name | Date | Kind |
---|---|---|---|
5247366 | Ginosar et al. | Sep 1993 | A |
5526501 | Shams | Jun 1996 | A |
5999658 | Shimazu et al. | Dec 1999 | A |
6285798 | Lee | Sep 2001 | B1 |
6826310 | Trifonov et al. | Nov 2004 | B2 |
7295232 | Washisu | Nov 2007 | B2 |
7319787 | Trifonov et al. | Jan 2008 | B2 |
8014027 | Kulkarni et al. | Sep 2011 | B1 |
8237730 | Anderson et al. | Aug 2012 | B1 |
8279119 | Elwell, Jr. et al. | Oct 2012 | B2 |
8339475 | Atanassov et al. | Dec 2012 | B2 |
20030053690 | Trifonov et al. | Mar 2003 | A1 |
20030185457 | Campbell | Oct 2003 | A1 |
20030235342 | Gindele | Dec 2003 | A1 |
20040057632 | Gindele | Mar 2004 | A1 |
20050100242 | Trifonov et al. | May 2005 | A1 |
20050104900 | Toyama et al. | May 2005 | A1 |
20050270299 | Rasmussen et al. | Dec 2005 | A1 |
20070014470 | Sloan | Jan 2007 | A1 |
20070252834 | Fay | Nov 2007 | A1 |
20080252882 | Kesterson | Oct 2008 | A1 |
20090022421 | Uyttendaele et al. | Jan 2009 | A1 |
20090041376 | Carletta et al. | Feb 2009 | A1 |
20090232401 | Yamashita et al. | Sep 2009 | A1 |
20090263037 | Qiu et al. | Oct 2009 | A1 |
20090295937 | Sato et al. | Dec 2009 | A1 |
20100157078 | Atanassov et al. | Jun 2010 | A1 |
20100177203 | Lin | Jul 2010 | A1 |
20100195901 | Andrus et al. | Aug 2010 | A1 |
20100226547 | Criminisi et al. | Sep 2010 | A1 |
20100329554 | Zhai et al. | Dec 2010 | A1 |
Number | Date | Country |
---|---|---|
1507234 | Feb 2005 | EP |
1615169 | Jan 2006 | EP |
Entry |
---|
Ashikhmin, Michael, “A Tone Mapping Algorithm for High Contrast Images”, Retrieved at<< http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.18.7977&rep=rep1&type=pdf >>, Eurographics Workshop on Rendering, 2002, pp. 11. |
Qiu, et al., “Hierarchical Tone Mapping for High Dynamic Range Image Visualization”, Retrieved at << http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.64.4414&rep=rep1&type=pdf >>, 2005, pp. 9. |
Kopf, et al., “Capturing and Viewing Gigapixel Images”, Retrieved at << http://johanneskopf.de/publications/gigapixel/paper/FinalPaper—0371.pdf >>, 2007, pp. 10. |
Number | Date | Country | |
---|---|---|---|
20120170842 A1 | Jul 2012 | US |