Images can be represented as electronic versions of the scene being viewed. The electronic image may represent a scene to that has a very high dynamic range, e.g. 18 bits or more of dynamic range. However, conventional display devices typically only display 8-bit-images. Therefore, it is often necessary to display a higher dynamic range scene on a lower dynamic range viewing device.
If the same quantization step is used in an attempt to make this display operation, then either the brightest part of the image or the darkest part of the image is often lost.
The present application teaches nonlinearly mapping an image with higher number of bits to an image with a smaller number of bits, while preserving at least part of the local contrast.
According to the present system, this is done by using a local transformation that can rapidly change characteristics of the image.
These and other aspects will now be described in detail with reference to the accompanying drawings, wherein:
An embodiment is shown in FIG. 1. In the
In this embodiment, the image 124, which is produced by the image sensor 122, may have a higher dynamic range that is capable of being displayed on display 140. Accordingly, the operation of the present system modifies the histogram of the mage. The processor does this by carrying out the flowchart of FIG. 5.
At 500, an initial operation calculates an image histogram. The histogram is shown as 200 in FIG. 2.
The histogram is analyzed at 510. On typical analysis, 90 percent of the pixel values will often gather around several gray levels. Other gray levels typically have very few pixels falling on them.
In
The present system compresses the image in a way such that the areas which have more common values are allocated to receive more gray levels. Fewer numbers of gray levels are allocated to other values which have fewer pixels falling on them. An attempt is also made to preserve the relative brightness.
At 520, the histogram is mapped, using the centerline locations loc1, loc2, and the widths of the peaks w1 and w2. A monotonous increasing mapping curve path m(g) is formed. This curve path is monotonic, in the sense that it is continually increasing. However, it is non-linear, in the sense that its slope is changing.
The slope of the histogram mapping curve is highest in the areas of the peaks of the actual image histogram.
The mapping curve uses the sigmoid functions for each of the peaks:
The mapping curve is then scaled at 530 to scale the mapping curve between zero and 28−1=255 according to:
Where g is the original gray value, and m(g) is the compressed gray value. This mapping technique maintains the image after mapping to keep both the local and global constraints of the original image.
The scaled image forms a new histogram at 540. The new histogram is shown in FIG. 4. In this histogram, the basic shape of the histogram space is the same. That is, the heights of the peaks in the new histogram may be in new compressed locations, but the heights of the peaks keep the same relationship as in the original histogram. However, the number of levels are compressed to the required number of bits, to allow the image to be displayed on a lower dynamic range display.
The above has described how to map the image to an 8-bit image. However, more generally, the image can be mapped to 2n gray levels, by using the more general scaling equation shown below.
Although only a few embodiments have been disclosed on detail above, other modifications are possible. For example, this system can of course be used with other kinds of images besides the image from an active pixel sensor. In addition, different numbers of bits can be used. While this shows using only the most prominent two histogram peaks, more than two histogram peaks may be used. While this describes being used if for gray levels, it more generally can be used with any kind of dynamic range levels, such as number of colors and the like.
All such modifications are intended to be encompassed within the following claims, in which:
The present application claims benefit of U.S. Provisional Application No. 60/179,308, filed Jan. 31, 2000.
Number | Name | Date | Kind |
---|---|---|---|
4445138 | Zwirn et al. | Apr 1984 | A |
5063607 | FitzHenry et al. | Nov 1991 | A |
5249241 | Silverman et al. | Sep 1993 | A |
5640469 | Lewins et al. | Jun 1997 | A |
6148103 | Nenonen | Nov 2000 | A |
6215900 | Schwenker et al. | Apr 2001 | B1 |
6507668 | Park | Jan 2003 | B1 |
6606418 | Mitchell et al. | Aug 2003 | B2 |
Number | Date | Country | |
---|---|---|---|
60179308 | Jan 2000 | US |