A method for enhancing an image and an image enhancement device are described. The method for enhancing an image including: capturing an initial image including a plurality of pixels, and performing a pixel-by-pixel dehazing operation for each of the plurality of pixels. The performing including: generating, for each of the plurality of pixels, a value for a blended gray image based on color channels of the pixel, generating, for each of the plurality of pixels, a value for a transmission map based on the blended gray image, and generating, for each of the plurality of pixels, output color channels for a processed image based on the value for the transmission map, the processed image being an enhancement of the initial image.
|
11. A method for enhancing an image, the method comprising:
generating a blended gray image from an initial image captured at an image sensor, the initial image comprising a plurality of pixels, the initial image comprising a first region comprising an object to be viewed and a second region comprising haze to be removed from the initial image, the blended gray image being generated by multiplying values of color channels of each of the plurality of pixels together; and
based on the blended gray image, removing the haze from the second region by performing a pixel-by-pixel operation.
1. A method for enhancing an image, the method comprising:
capturing an initial image comprising a plurality of pixels; and
performing a pixel-by-pixel dehazing operation for each of the plurality of pixels, the performing comprising
generating, for each of the plurality of pixels, a value for a blended gray image based on color channels of the pixel,
generating, for each of the plurality of pixels, a value for a transmission map based on the blended gray image, and
generating, for each of the plurality of pixels, output color channels for a processed image based on the value for the transmission map, the processed image being an enhancement of the initial image, wherein generating the value for the blended gray image from color channels of the pixel comprises, for each of the plurality of pixels, multiplying an intensity of the color channels of the pixel by one another.
17. An image enhancement device comprising:
an image sensor configured to capture an initial image;
a memory configured to store the captured the initial image; and
a processor in communication with the memory, the processor being configured to execute instructions stored in the memory, the memory comprising instructions for:
capturing an initial image comprising a plurality of pixels; and
performing a pixel-by-pixel dehazing operation for each of the plurality of pixels, the performing comprising
generating, for each of the plurality of pixels, a value for a blended gray image from color channels of the pixel,
generating, for each of the plurality of pixels, a value for a transmission map from the blended gray image, and
generating, for each of the plurality of pixels, output color channels for a processed image based on the value for the transmission map, the processed image being an enhancement of the initial image, wherein the instructions for generating the value for the blended gray image from color channels of the pixel comprise instructions for, for each of the plurality of pixels, multiplying an intensity of the color channels of the pixel by one another.
2. The method of
3. The method of
calculating, for each of the plurality of pixels, a value for an atmospheric light of the initial image from the blended gray image;
generating, for each of the plurality of pixels, a value for a brightened initial image from the value for the atmospheric light;
generating, for each of the plurality of pixels, a value for a brightened blended gray image from the value for the brightened initial image; and
generating, for each of the plurality of pixels, the value for the transmission map from the value for the brightened blended gray image,
wherein the generating of the output color channels for the processed image comprises:
generating, for each of the plurality of pixels, a value for an mid-scene transmission map from the value for the transmission map; and
recovering, for each of the plurality of pixels, a scene radiance value of the initial image based on pixel values in the mid-scene transmission map, the initial image, and the atmospheric light.
4. The method of
determining, for each of the plurality of pixels, the brightest pixels in the blended gray image, wherein the brightest pixels in the blended gray image are pixels having values within a small fraction-of values in the blended gray image;
determining, at each of the brightest pixels in the blended gray image, an intensity of the color channels of pixels in the initial image that correspond to the brightest pixels in the blended gray image; and
determining, an average intensity of each color channel at the pixels in the initial image that correspond to the brightest pixels in the blended gray image.
5. The method of
determining a saturation of the atmospheric light based on the value for the atmospheric light;
restricting the saturation of the atmospheric light to a gray range, wherein restricting the saturation of the atmospheric light to gray scale comprises restricting the saturation of the atmospheric light to a value less than or equal to 0.1; and
updating the value for the atmospheric light based on the restricted saturation.
6. The method of
generating, for each of the plurality of pixels, an intensity of each of the color channels of the pixel for the brightened initial image, wherein generating the intensity of each of the color channels of the pixel for the brightened initial image comprises:
dividing, for each of the plurality of pixels, the intensity of each color channel of the pixel in the initial image by the intensity of a corresponding color channel of the atmospheric light; and
applying, for each of the plurality of pixels, a brightening constant to a result of said division.
7. The method of
multiplying, for each of the plurality of pixels, an intensity of each of the color channels of each pixel in the brightened initial image by one another, and wherein generating the value for the mid-scene transmission map from the value of the transmission map comprises:
generating, for each of the plurality of pixels, a value for a brightened transmission map from the value for the transmission map;
generating, for each of the plurality of pixels, a value for an adjusted brightened blended gray image from the value of the brightened blended gray image based on a hue of the atmospheric light;
combining, for each of the plurality of pixels, the value of the brightened transmission map and the value of the adjusted brightened blended gray image; and
inverting, for each of the plurality of pixels, a combined value of the brightened transmission map and the adjusted brightened blended gray image.
8. The method of
determining, for each of the plurality of pixels, a mean value of the transmission map;
determining, for each of the plurality of pixels, a brightening factor based on the mean value of the transmission map; and
determining, for each of the plurality of pixels, the value for the brightened transmission map based on the brightening factor.
9. The method of
determining whether a hue of the atmospheric light is within a possible sky range of the initial image, the possible sky range comprising hue values above or below a non-sky range;
determining a first adjustment factor based on a determination that the hue of the atmospheric light is below the non-sky range; or
determining a second adjustment factor based on a determination that the hue of the atmospheric light is within the non-sky range, the second adjustment factor being different from the first adjustment factor; or
determining a third adjustment factor based on a determination that the hue of the atmospheric light is above the non-sky range, the third adjustment factor being different than the first and second adjustment factors; and
determining, for each of the plurality of pixels, the value of the adjusted brightened blended gray image based on the first, the second, or the third adjustment factor.
10. The method of
12. The method of
13. The method of
14. The method of
15. The method of
16. The method of
18. The device of
calculating, for each of the plurality of pixels, a value for an atmospheric light of the initial image from the blended gray image;
generating, for each of the plurality of pixels, a value for a brightened initial image from the value for the atmospheric light;
generating, for each of the plurality of pixels, a value for a brightened blended gray image from the value for the brightened initial image; and
generating, for each of the plurality of pixels, the value for the transmission map from the value for the brightened blended gray image,
wherein the generating of the output color channels for the processed image comprises
generating, for each of the plurality of pixels, a value for an mid-scene transmission map from the value for the transmission map, and
recovering, for each of the plurality of pixels, a scene radiance value of the initial image based on pixel values in the mid-scene transmission map, the initial image, and the atmospheric light.
|
The present invention relates generally to a system and method for image processing and, in particular embodiments, to a system and method for enhancing an image.
Images of outdoor scenes may be degraded by a turbid medium, such as particles or water droplets in the atmosphere. Light may be scattered and absorbed by these particles causing haze to be present in a captured image. Haze in a captured image is problematic because it degrades the visibility of the image. For example haze may be caused by smog, fog, drizzle, smoke or other airborne particles in images that are captured outdoors. Haze increases with distance. In other words, distant objects in hazy images will have a reduced visibility compared to closer objects in the same image.
The information (e.g. visibility) lost due to haze degrades the performance of image processing applications. Hazy images may result in image processing applications, such as object recognition, to require more processing time, complicated algorithms, the use of multiple images, and the like. Haze may also cause degradation in the performance of geo-physical image processing applications such as remote sensing applications, surveying applications, and the like. For example in automated driving applications, hazy images captured by a camera system may degrade performance in a danger critical situation and place passengers and/or bystanders in danger.
Known haze removal algorithms utilize the light scattering model to recover an original scene radiance from a hazy image. For example, haze removal algorithms may generate what is known as the dark channel prior from a captured hazy image, use the dark channel prior to generate a transmission map, and apply the transmission map to the light scattering model. The dark channel prior is based on the observation that local patches of outdoor images contain pixels that have low intensities in at least one color channel.
In accordance with an embodiment of the present invention, a method for enhancing an image includes: capturing an initial image including a plurality of pixels; and performing a pixel-by-pixel dehazing operation for each of the plurality of pixels, the performing including generating, for each of the plurality of pixels, a value for a blended gray image based on color channels of the pixel, generating, for each of the plurality of pixels, a value for a transmission map based on the blended gray image, and generating, for each of the plurality of pixels, output color channels for a processed image based on the value for the transmission map, the processed image being an enhancement of the initial image.
In accordance with an embodiment of the present invention, a method for enhancing an image includes: capturing an initial image including a plurality of pixels; generating a blended gray image from the initial image; generating a brightened blended gray image from a brightened initial image; generating, for each of the plurality of pixels, a transmission map; calculating an enhancement value based on determining how much haze is present in the initial image; adjusting the transmission map based on the enhancement value; determining whether a hue of atmospheric light in the initial image is within a possible sky color range of the initial image, the possible sky color range including hue values above or below a non-sky color range; adjusting the transmission map for each of the plurality of pixels using the enhancement value; adjusting the brightened blended gray image based on determining whether the hue of atmospheric light in the initial image is within the possible sky color range; and after adjusting the transmission map, generating an enhanced image from the adjusted transmission map, the adjusted brightened blended gray image, and the initial image.
In accordance with an embodiment of the present invention an image enhancement device includes: an image sensor configured to capture an initial image; a memory configured to store the captured the initial image; and a processor in communication with the memory, the processor being configured to execute instructions stored in the memory, the memory including instructions for: capturing an initial image including a plurality of pixels; and performing a pixel-by-pixel dehazing operation for each of the plurality of pixels, the performing including generating, for each of the plurality of pixels, a value for a blended gray image from color channels of the pixel, generating, for each of the plurality of pixels, a value for a transmission map from the blended gray image, and generating, for each of the plurality of pixels, output color channels for a processed image based on the value for the transmission map, the processed image being an enhancement of the initial image.
The patent or application file contains at least one drawing executed in color. Copies of this patent or patent application publication with color drawing(s) will be provided by the Office upon request and payment of the necessary fee.
For a more complete understanding of the present invention, and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
Conventional haze removal algorithms that utilize the dark channel prior come with their own set of advantages and disadvantages. For example, generating the dark channel prior requires the use of large local patches. The greater the size of the local patch, the greater the probability that the light scattering model will actually perform as expected. However, as the size of the local patches increase to ensure successful dehazing, processing times and computational costs also increase. This may result in overly high computational costs and processing times. Also algorithms that utilize the dark channel prior require their transmission maps to be further refined using an edge preserving filtering step and/or a soft matting step to protect against include false textures and blocked artifacts caused by the minimum operator used in a dark channel prior based algorithm.
A simplified version of the light scattering model is typically used to quantify the amount of haze formed in an image may be expressed as:
({right arrow over (x)})=()t(x)+A(1−t(x)) Eq. 1
Where ({right arrow over (x)}) is the intensity the pixels in the captured image, () is the scene radiance of the pixels, A is the intensity of atmospheric light in the captured image, and t(x) is the intensity of pixels in the transmission map.
Typical methods for dehazing images utilize what is known as the dark channel prior combined with the simplified light scattering model to remove haze from an image. In other words methods utilizing the dark channel prior require the following steps: estimating the dark channel prior based on local patches of pixels, estimating the atmospheric light captured in the hazy image, determining a transmission map corresponding to each of the input pixels based on the dark channel prior and the estimated atmospheric light, transmission map refinement, and recovering the scene radiance. The scene may be recovered by solving Eq. 1 as follows:
Where to is typically equal to 0.1. Usually, Eq. 2 is a subtractive process, and therefore, recovered scene radiance may not be as bright as compared to the atmospheric light, which may result in too dark an image.
A first disadvantage of dark channel prior algorithms is that processing time is directly related to the size of the local patch. In other words, the smaller the local patch, the lower the processing time. However, images that have low-frequency textures may require a larger local patch size. In other words, features that dominate a patch size with little to no variation may not meet the requirements of dark channel prior algorithms. Therefore, a larger patch size may need to be considered to ensure there is enough variation within the local patch. Thus, an image with low-frequency textures may require a larger local patch resulting in higher computational costs and overly long processing times.
Another disadvantage of dark channel prior algorithms is that the estimation of atmospheric light is determined as follows: a small fraction of the brightest pixels of the dark channel prior are identified, and then a pixel within the small fraction of pixels is selected from the hazy image.
However, this may be problematic because the selected pixel may not correspond to the atmospheric light. For example in an image of a road, the brightest pixels may correspond to a white car or a reflective sign, not the atmospheric light.
Another disadvantage of the dark channel prior algorithms is that the minimum operator used may cause a blocky dehazed image. In other words, the dehazed image may include and blocked artifacts which may causes error in post-processing or decision making based on the dehazed image.
Another disadvantage of dark channel prior algorithms is that it requires the transmission map to be refined. Transmission map refinement may include a soft-matting step. The additional step of refining the transmission map may also significantly increase the computational cost and processing time required to dehaze an image.
Embodiments of this application disclose pixel based methods and corresponding devices for enhancing images that does not require the additional soft matting step. More specifically, embodiments of the present invention relate to a method for enhancing an image utilizing single pixel operations that enhances images with an improved contrast/visibility and a reduced processing time while avoiding blocking of artifacts that is inherent in regional filtering techniques.
Referring to
The image dehazing system 104 may comprise a processor 106 coupled to a memory 108.
The memory 108 may be a stationary memory and/or a random access memory (RAM), a read only memory (ROM), a flash memory, a hard drive, and the like. The memory 108 may be configured to store a blended gray module 112 executable to dehaze an image.
The processor 106 may be configured to access and execute the blended gray module 112 stored in the memory 108 to dehaze an image and display it on the display 118. The processor 106, may comprise, for example, a central processing unit (CPU), a microprocessor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), or the like.
In various embodiments, the processor 106 may also be configured to transmit the dehazed image to the machine vision chip 120 for further processing related to applications such as object recognition, remote sensing applications, surveying applications, and the like. Alternatively, in certain embodiments, the processor 106 may be integrated with the machine vision chip 120.
In various embodiments, the processor 106 and the memory 108, and the image sensor 102 may be integrated together, for example, in an application specific integrated circuit (ASIC) of a camera or another imaging device. In alternative embodiments, the image dehazing device 100 may be connected to or built-in to an electronic device such as a personal computer, a laptop, a smart phone, a tablet, and the like.
Advantageously, the pixel-by-pixel method generates a blended gray image by blending the color channels of each pixel of a hazy image. In other words, the pixel-by-pixel method generates a blended gray image that broadly matches the dark channel prior without the use of the minimum operator required by the dark channel prior. This will be shown in more detail below.
In various embodiments the pixel-by-pixel method may be applied to applications in which processing occurs after the full hazy image is determined or may be applied to video processing applications, where, for example, the image dehazing device 100 (e.g. processing) is embedded in an ASIC of an electronic device. In other words, in video applications where pixels are processed as they are read from the image sensor 102, values or statistics collected from a previous frame may be applied to a current frame being processed. In other words as understood by those with ordinary skill in the art, framestores may or may not be used in conjunction with the pixel-by-pixel method.
Referring to
In various embodiments, the initial image 202 may be a color image. In various embodiments, each of the plurality of pixels in the initial image 202 may comprise a vector comprising an intensity for each of the color channels present in each pixel. For example each of the plurality of pixels of the initial image 202 may comprise red-green-blue (RGB) color channels, a YUV color channels, cyan-magenta-yellow-key (CMYK) color channels, or the like. For example purposes, an initial image 202 with RGB color channels will be discussed. The color channels present in the pixels of the initial image 202 are not limited by this application.
Accordingly, in various embodiments, the image receiving module no may comprise instructions that when executed by the processor 106 determine the value of the color channels at each pixel within the image.
The inventors of this application have identified that dark channel prior algorithms may result in a dehazed image with blocked artifacts. Dark channel prior algorithms may require the use of localized patches to determine the dark channel, and require a transmission map refinement step, which both increase processing time. On the other hand, as described above, if smaller local patches are used in a dark channel prior algorithm to save processing time, low-frequency textures may dominate the local patch. Therefore the dark channel prior assumption may not hold, and the hazy image may not be successfully dehazed.
Additionally, as described above, the atmospheric light estimated in dark channel prior algorithms corresponds to a pixel in the hazy image selected from a small fraction of pixels, and therefore, dark channel prior algorithms are not able to distinguish between sky areas and bright objects in the image.
Therefore, the blended gray module 112 may include instructions that when executed in the processor 106 cause the processor 106 to generate, for each of the plurality of pixels, a value for a blended gray image 204 from the color channel of each of the pixels in the initial image 202 (block 304). In other words, a blended gray image 204 may be generated by blending the color channels of each individual pixel in the initial image 202 together. Depending on the processing capability of the processor 106, this blending of the color channels at each pixel may be performed sequentially or in parallel with other pixels in the image. The color channels of each pixel in the initial image 202 may be blended by multiplying each individual pixel's color channels, resulting in a blended gray image 204. For example the red channel, the green channel, and the blue channel of each pixel in the initial image 202 may blended by multiplying them together. Therefore each of the plurality of pixels in the blended gray image 204 may comprise a single value.
Advantageously, each of the plurality pixels in the initial image 202 will be darkened by the blending of the color channels, and pixels that have lower intensities in at least one color channel in the initial image 202 may be darkened more than pixels with closer to even intensities. One advantage of this is that the blended gray image 204 may have the same effect as generating the dark channel prior, but may be generated using a single pixel operation instead of local patches.
After generating the blended gray image 204, the blended gray module 112 may include instructions that when executed in the processor 106 cause the processor 106 to calculate, for each of the plurality of pixels, a value for an atmospheric light of the initial image 202 from the blended gray image 204 (block 306). The value of the atmospheric light may be calculated based on a small fraction of the brightest pixels (e.g. values) in the blended gray image 205, the intensity of the color channels of the pixels in the initial image that correspond to the brightest pixels in the blended gray image 203, and the quantity of pixels in the brightest pixels in the blended gray image 205. This will be discussed in further detail in the flow chart in
The inventors of this application identified that for each of the plurality of pixels, because the blended gray image 204 is generated by multiplying the color channels of each pixel of the initial image 202, the initial image 202 may be over darkened when generating the blended gray image 204. In other words, each pixel of the blended gray image 204 may be two to three times darker than the value of the darkest color channel of each corresponding pixel in the initial image 202. Therefore, the blended gray module 112 may include further instructions that when executed in the processor 106 cause the processor 106 to generate, for each of the plurality of pixels, a value for a brightened initial image 206 from the value for the atmospheric light (block 308) that may be used to generate a blended gray image that broadly matches the dark channel prior in a subsequent step.
In other words, for each of the plurality of pixels, the values for the brightened initial image 206 may be generated based on the value of atmospheric light (block 308) using:
Where () represents the value of each pixel in the brightened initial image 206, () represents the value of each pixel in the initial image 202, A represents the value of the atmospheric light, and BR represents a global brightening constant.
Advantageously, the global brightening constant (BR) may be used to brighten each color channel of each pixel of the initial image 202 while keeping them less than or equal to one when generating the brightened initial image 206. One advantage of this, as described below, is that the brightened initial image 206 may be used to generate a blended gray image that broadly matches the dark channel prior using single pixel operations.
Therefore, the global brightening constant may be any value that increases the brightness of each pixel of the initial image and allows for a blended gray image to be generated from the brightened initial image 206 that broadly matches the dark channel prior. The global brightening constant may be a value between 0.3 and 0.6, alternatively, the global brightening constant may be a value between 0.4 and 0.5. The inventors of this application determined, after observing an entire data set of images dehazed using the pixel-by-pixel method that 0.45 may be the optimal value of the global brightening constant. However, with further investigation a different number within the range may be used.
Referring back to
Next, the blended gray module 112 may include instructions that when executed in the processor 106 cause the processor 106 to generate, for each of the plurality of pixels, a value for a transmission map 210 from the values for the brightened blended gray image 208 (block 310). In other words, the transmission map 210 may be generated by inverting the value of each of the pixels in the brightened blended gray image 208.
(x)=1−(x) Eq. 4
After generating the transmission map 210, the blended gray module 112 may include further instructions that when executed in the processor 106 cause the processor 106 to generate, for each of the plurality of pixels, a value for an mid-scene transmission map 216 from the value for the transmission map 210 (block 312).
As understood by those with ordinary skill in the art, far objects usually correspond to sky area areas or other areas of the initial image 202 where only noise (and no useful information) will be recovered from dehazing them. Also, as understood by those with ordinary skill in the art, close objects in the initial image 202 are less effected by haze and should not undergo as much dehazing as mid-scene objects that are more effected by haze.
Therefore, in various embodiments, the mid-scene transmission map 216 may be generated and structured to focus dehazing to the mid-scene of the initial image 202 by: for each of the plurality of pixels, generating a value for a brightened transmission map 212 from the value of the transmission map 210, generating a value for an adjusted brightened blended gray image 214 from the brightened blended gray image 208 based on the hue of the calculated atmospheric light, combining the value of the brightened transmission map 212 and the value of the adjusted brightened blended gray image 214, and inverting the combined value of the brightened transmission map 212 and the adjusted brightened blended image 214. This will be discussed in more detail in
Next, the blended gray module 112 may include instructions that when executed in the processor 106 cause the processor 106 to generate, at each pixel, output color channels for a processed image based on the value for the transmission map, the processed image being an enhancement of the initial image (block 314). In one or more embodiments, the blended gray module 112 may include instructions for recovering, for each of the plurality of pixels, a scene radiance value of the initial image 202 based on each of the pixel values in the mid-scene transmission map 216, the initial image 202, and the atmospheric light. In various embodiments, the scene radiance of the initial image 202 may be recovered a simplified version of the light scattering model:
Where T(x) represents the value of the mid-scene transmission map 216 for each of the plurality of pixels.
Advantageously, because the values of the mid-scene transmission map 216 are generated based on single pixel operations and the hue of the atmospheric light, an additional transmission map refinement step (e.g. soft-matting) to smooth the mid-scene transmission map 216 is not required. One advantage of this is that it reduces the computational cost and processing time to dehaze an image.
The inventors of this application have observed that a filter of different sizes, such as a Gaussian filter, may optionally be used when the values of the mid-scene transmission map 216 are divided when recovering the scene radiance for an even sharper enhanced image 218. For example, in various embodiments, a small sized filter, such as a 5×5 Gaussian filter, may be used when recovering the scene radiance. In other embodiments, a 5×5 Gaussian filter may be used on the brightened blended gray image 208 prior to generating the adjusted brightened blended gray image 214. Advantageously, as understood by those with ordinary skill in the art, the filter may be computationally cheap to implement and have a minimal effect on the overall processing time.
As described above, an advantage of the pixel-by-pixel method is that, the simplified version of the light scattering model (Eq. 5) used along with the steps described above ensures that pixels that require more dehazing will in fact undergo more dehazing than pixels that do not require as much dehazing.
As illustrated by the side-by-side graphs 320 in
In various embodiments, as illustrated by
Therefore, as understood by those with ordinary skill in the art, pixel values of an under saturated initial image 202 (e.g. 1−t(x)) may be closer to the value of the atmospheric light than pixels in a hazy initial image. In other words, pixels in a hazy initial image 202 are further away from a desired J(x) value than an under saturated initial image 202, and require additional dehazing.
In other words, blended color channels of an under saturated pixel will have lower transmission values than hazy pixels.
Because the values of the mid-scene transmission map 216 are determined based on, at least in part, a transmission map 210 that is generated by inverting blended pixels, darker blended pixels (e.g. non-zero pixels with values less than 0.5) will be brightened in the transmission map 210 (and vice versa). Therefore, based on the simplified version of the scattering of light model (e.g. Eq. 5) the higher the value of a non-zero pixel in the transmission map 210 (e.g. the closer they are to one), the less those pixels will be dehazed (and vice versa). Thus, as illustrated in
As illustrated in block 402, and described with reference to
In various embodiments, as described above and understood by those with ordinary skill in the art, in video processing applications pixel processing may occur as pixels are read from the image sensor 102 (e.g. frame stores are not required). Therefore, in video processing applications, to address a need for a full frame to determine the brightest pixels in the blended gray image 205, the brightest pixels in the blended gray image 205 of a previous frame (f−1) can de accumulated and applied to a current frame (f). Advantageously, this avoids the need to require framestores having to determine the full image before a value can be determined for a given pixel.
As next illustrated in block 404, and described with reference to
As next illustrated in block 406, and described with reference to
For example, the sum of the intensity of the red channel in each of the pixels in the initial image that correspond to the brightest pixels in the blended gray image 203, the sum of the intensity of the green channel in each of the pixels in the initial image that correspond to the brightest pixels in the blended gray image 203, and the sum of the intensity of the blue channel in each of the pixels in the initial image that correspond to the brightest pixels in the blended gray image 203 may be separately calculated. Then each of the sums corresponding to each channel may each be divided by the number of pixels included in the small fraction of brightest pixels. In other words, the value of the atmospheric light may be calculated using:
The inventors of this application have identified that the brightest pixels in the blended gray image 205 may correspond to an object and not the sky region in the initial image 202, and may be too colorful, resulting in discoloration in the enhanced image 218. For example, the image could include a bright yellow car that could easily corrupt the atmospheric correction of the blended gray image if not properly excluded. Advantageously, blocks 408-412 describe steps to restrict the saturation of the atmospheric light to the gray range to ensure the value of the atmospheric light corresponds to an atmospheric light like color to protect against discoloration. In various embodiments, the steps described in blocks 408-412 may be optional.
As next illustrated in block 408, and described with reference to
As next illustrated in block 410 and described with reference to
As next illustrated in block 412 and described with reference to
In various embodiments, as described above, for each of the pixels, a value for the mid-scene transmission map 216 may be generated. The value for the mid-scene transmission map 216 may be generated by combining and inverting, for each of the plurality of pixels, the value for the brightened transmission map 212 and the value of the adjusted brightened blended gray image 214.
As illustrated in block 502 and described with reference to
As next illustrated in block 504 and described with reference to
As next illustrated in block 506 and described with reference to
(x)=(x)b Eq.7
Where (x) represents the value for each the pixels for the transmission map 210, b represents the brightening factor, and (x) represents the value for each of the pixels for the brightened transmission map 212.
The inventors of this application have observed, from the atmospheric light of images having small amounts of haze that the atmospheric light should be close to the possible value of the color of the sky in the initial image 202. In other words, images having atmospheric light with hues within the possible sky color ranges (i.e. above or below a possible non-sky range) of the initial image may require less dehazing. Therefore, in various embodiments, the adjusted brightened blended gray image 214 may be generated based on a first adjustment factor, a second adjustment factor, or a third adjustment depending on whether less or more dehazing is required, respectively.
As described above, blocks 508-516 illustrate the process steps of generating the adjusted brightened blended gray image 214.
As next illustrated in block 508, whether the hue of the calculated atmospheric light is above, below, or within a possible non-sky range of the initial image 202 may be determined. In other words, it may be determined whether the hue of the atmospheric light is below, within, or above, a range of hues that cannot represent the color of the sky in the initial image 202. (e.g., the non-sky range). In various embodiments, the hue of the atmospheric light may be within the non-sky range if it is between 0.5 and 0.7, alternatively, between 0.7 and 0.6. If the hue is not within of this range then it is within a first range of hue values below the non-sky range or a second range of hue values above the non-sky range that both represent possible hues of the sky in the initial image 202.
If the hue of the calculated atmospheric light is below the non-sky range the method proceeds to block 510 and a first adjustment factor is determined.
The inventors of the application have identified that a first adjustment factor having a value between 0.4 and 0.8 is ideal for images having an atmospheric light with a hue below the possible non-sky range.
Therefore, the first adjustment factor may be determined by mapping the value of hues that are below the possible non-sky range to values between 0.4 to 0.8. In other words, the adjustment factor may be determined using the equation:
Where adjust1 represents the first adjustment factor and h represents the hue of the atmospheric light in radians.
As next illustrated in block 516, and described with reference to
(1−(x))=adjust1*(1−(x)) Eq. 9
Where (1−(x)) represents the value of each of the plurality of pixels for the adjusted brightened blended gray image 214.
On the other hand, referring back to block 508, if the hue of the calculated atmospheric light is in the non-sky range, the method proceeds to block 512 and a second adjustment factor may be determined.
The inventors of the application have identified that if the atmospheric light of the initial image 202 has a hue within the non-sky range (e.g. a hue outside of the possible sky range of the initial image 202) a greater quantity of haze may be present and a second adjustment factor having a range between 0.8 and 1 is ideal.
Therefore, in various embodiments, the second adjustment factor may be determined using the following equation:
adjust2=−3.16*h2+2h+0.6685 Eq. 10
Where adjust2 represents the second adjustment factor.
Then, referring back to block 516, after determining the second adjustment factor, for each of the plurality of pixels, values for the adjusted brightened blended gray image 214 may be generated from the values of the brightened blended gray image 208 based on the second adjustment factor using the following equation:
{right arrow over (g)}(1−(x))=adjust2*(1−(x)) Eq. 11
On the other hand, referring back to block 508 if the hue of the calculated atmospheric light is above the sky range, the method proceeds to block 513 and a third adjustment factor may be determined.
The inventors of this application have identified that if the atmospheric light in the initial image 202 has a hue above the non-sky range a lesser quantity of haze may be present and a third adjustment factor having a range between 0 and 0.8 is ideal. Therefore, in various embodiments, the third adjustment factor may be determined using the following equation:
Where adjust3 represents the third adjustment factor.
Then, referring back to block 516, after determining the third adjustment factor, for each of the plurality of pixels, the values for the adjusted brightened blended gray image 214 may be generated from the values of the brightened blended gray image 208 based on the third adjustment factor using the following equation:
{right arrow over (g)}(1−(x))=adjust3*(1−(x)) Eq. 13
Advantageously, when generating the value for the adjusted brightened blended gray image 214, the adjustment factor may be determined based on whether more or less dehazing needs to take place. As understood by those with ordinary skill in the art, the higher the values of pixels in the mid-scene transmission map 216 (e.g. the closer they are to one), the less those pixels will be dehazed (as demonstrated by Eq. 5). Further, based on Eq. 14, shown below, the lower the value of a pixel for the adjusted brightened blended gray image 214, the higher the value of the corresponding pixel for the mid-scene transmission map 216 will be. Therefore, the more the values of pixels are reduced for the adjusted brightened blended gray image 214, the less dehazing may take place (and vice versa).
Particularly, brightened blended gray images that are adjusted using the first and third adjustment factors may be darkened more than brightened blended gray images adjusted using the second adjustment factor. In some embodiments, the amount of darkening caused by the first adjustment factor may be greater than or equal to the amount of darkening caused by the third adjustment factor. In other words, if the hue of the calculated atmospheric light is within the possible sky range (i.e. above or below the non-sky range), pixel values will decrease more than if the hue is within the non-sky range when generating the values for the adjusted brightened blended gray image 214. Advantageously, this ensures that values of pixels in images having an atmospheric light with a hue within the possible sky range will be reduced more by the first adjustment factor or the third adjustment factor and undergo less dehazing than pixels in an image with an atmospheric light with within the non-sky range.
In other words, if the sky color of the initial image 202 is detected in the atmospheric light, the initial image 202 must have a small quantity of haze. Therefore, the first, second, and third adjustment factors ensure that images including larger quantities of haze undergo more dehazing (and vice versa).
As next illustrated in block 516 and described with reference to
(x)=1−((x))*g(1−(x)) Eq. 14
Where (x) represents the values of pixels for the mid-scene transmission map 216.
As understood by those with ordinary skill in the art, because the transmission map 210 may be generated by inverting the pixel values for the brightened blended gray image 208, pixels with values equal to zero in the transmission map 210 represent sky areas or very foggy distant objects, and dehazing them would capture noise in lieu of scene information. On the other hand, pixels with equal to one represent pixels in which there is no haze, so dehazing is not required. Advantageously, generating the values for the mid-scene transmission map 216 ensures that only pixels in the transmission map 210 with mid-range values (e.g. values between zero and one) undergo any dehazing. In other words, pixels with values of zero in the transmission map 210 may be pushed to one for the mid-scene transmission map 216, while pixels equal to one in the transmission map 210 remain equal to one. Therefore, the recovered scene radiance of pixels with values equal to zero or one in the transmission map 210 may have values equal to their corresponding pixels in the initial image 202. Thus, dehazing may be limited to pixels with values between zero and one for the transmission map 210 ensuring that pixels that should not be dehazed are not dehazed.
The amount of haze present in the initial image 202 varies as the value of the average atmospheric light and the mean value of the transmission map 210 are decreased. Advantageously, the brightening factor may account for the amount of dehazing to be added.
Referring to
Referring to
Where Tmean represents the mean pixel value of the transmission map 210 and b represents the brightening factor.
As understood by those with ordinary skill in the art, the smaller the mean pixel value of the transmission map 210 and the smaller the value of the average atmospheric light, the more dehazing is required (e.g. the hazier the image is). Advantageously, the brightness factor is determined based on this relationship and ensures that the smaller the mean pixel value of the transmission map 210 the more the image is dehazed.
Referring to
Further a second graph 908 illustrates a graphical representation of the relationship between the brightening factor and the amount of dehazing.
Second graph 908 illustrates a first line 910 representing pixel values of a mid-scene transmission map with a mean pixel value of 0.1, a second line 912 representing the pixel values of the mid-scene transmission map generated using a brightening factor of 0.5, a third line 914 representing the pixel values of the mid-scene transmission map generated using a brightening factor of 0.6, a fourth line 916 representing the pixel values of the mid-scene transmission map generated using a brightening factor of 0.7, a fifth line 918 representing the pixel values of the mid-scene transmission map generated using a brightening factor of 0.8, a sixth line 920 representing the pixel values of the mid-scene transmission map generated using a brightening factor of 0.9, and a seventh line 922 representing the pixel values of the mid-scene transmission map generated using a brightening factor of 1.
Referring to second graph 902 as the brightening factor decreases the amount of dehazing increases (and vice versa). In other words, the equation for calculating the brightening factor (Eq. 15) ensures that the lower the mean pixel value for the transmission map 210, the lower the brightening factor (and vice versa). In other words, the hazier the image the lower the brightening factor.
Consequently, referring to Eq. 7, the lower the brightening factor, the brighter the brightened transmission map 212 will be (or vice versa). Also, as further evidenced by Eq. 14, the brighter the brightened transmission map 212, because the brightened transmission map 212 is inverted, the darker the mid-scene transmission map 216 will be (and vice versa). Furthermore, as described above, the darker the mid-scene transmission map 216 (e.g. lower the values of the plurality of pixels in the mid-scene transmission map 216), the more dehazing the will occur. Therefore, as illustrated in
Referring to
Then, the value of the example pixel for the blended gray image 204 may be generated using:
R*G*B=0.5*0.4*0.3=0.6
Next, the value of the atmospheric light may be calculated. First, a small fraction brightest pixels in the blended gray image 205 may be determined. For example brightest pixels in the blended gray image 205 may be the pixels that are in the top 1% brightest pixels in the blended gray image 204. Next, the value of the atmospheric light may be calculated by determining the average intensity of each of the color channels across each of the pixels in the initial image 202 that correspond to the brightest pixels in the blended gray image 203 using Eq. 6 in the same manner described in
Next, referring to
Next, referring to
Next, the value of the example pixel for the transmission map 210 may be generated by blending the color channels of example pixel of the brightened initial image 1012, and then inverting the result. In other words, the color channels of the brightened initial image 206 may be blended and inverted follows:
t(x)=1−(Rbrightened image*Gbrightened image*Bbrightened image)
1−(0.8*0.7*0.6)=0.66
Then, the value of the example pixel for the brightened transmission map 212 may be generated using Eq. 7 in the same manner described in
Then, using the brightening factor, the value of the example pixel for the brightened transmission map 212 may be determined as follows:
f(x)=t(x)b
0.660.25=0.90
Next, the value of the example pixel for the adjusted brightened blended gray image 214 may be generated by adjusting the value of the pixel in the brightened blended gray image 208 based on the hue of the atmospheric light. Because the hue is within the non-sky range, Eq. 10 may be used to determine the second adjustment factor in the same manner discussed in
In other words, the second adjustment factor may be determined as follows:
adjust2=−3.16h2+2h+0.6685
adjust2=−3.16*0.52+2*0.5+0.6685=0.91
Then, using the second adjustment factor, the value of the example pixel for the adjusted brightened blended gray image may be determined as follows:
(1−t(x))=adjust2*(1−t(x))
0.91*(1−0.66)=0.31
Next, the value of the example pixel of the mid-scene transmission map 216 may be generated by combining and inverting the value of the pixel in the brightened transmission map and the adjusted brightened blended gray image using Eq. 14 in the same manner described in
T(x)=1−f(t(x))*g(1−t(x))
1−0.90*0.31=0.72
Last, the value of the scene radiance of the example pixel in the initial image may be recovered using Eq. 5 in the same manner described in
This calculation may be repeated for the green and blue color channels of the example pixel.
Embodiments of the image processing have been applied to test samples. The test sample with regions of bright/dark regions are imaged and processed with the embodiments. In an example, a target pattern including concentric circles of different levels of brightness can be imaged and the image processing applied. Advantageously, embodiments when applied to such test samples produce sharp transitions between bright/dark regions and avoid introducing artificial artefacts. In contrast, when the preprocessing for haze removal is performed using a region based approach, transitions between bright/dark regions become diffuse. Advantageously, the use of a pixel-by-pixel dehazing operation discussed in embodiments of this disclosure avoids the introduction of such artefacts.
Embodiments of the present application embody a practical application of an image enhancing process, e.g., for improving an image by removing effects of fog or haze, and otherwise improve contrast, which can be implemented directly in a low power device such as an image sensor or a low power processor. Particularly, embodiments of the present application enable the use of low powered computational processors and sensors to perform the computations described above to enhance an image using pixel based operations. Advantageously this allows for a significant technological improvement in image sensing and processing because conventional algorithms are either computationally expensive and therefore power hungry or unable to achieve the same level of enhancement possible with the embodiments. Because of the low computational load of the various embodiments, the processing can be performed within the image capturing device while preprocessing the image.
Example embodiments of the present invention are summarized here. Other embodiments can also be understood from the entirety of the specification and the claims filed herein.
Example 1. A method for enhancing an image, the method including: capturing an initial image including a plurality of pixels; and performing a pixel-by-pixel dehazing operation for each of the plurality of pixels, the performing including generating, for each of the plurality of pixels, a value for a blended gray image based on color channels of the pixel, generating, for each of the plurality of pixels, a value for a transmission map based on the blended gray image, and generating, for each of the plurality of pixels, output color channels for a processed image based on the value for the transmission map, the processed image being an enhancement of the initial image.
Example 2. The method of example 1, where the capturing and the performing are performed at an image sensor chip.
Example 3. The method of one of examples 1 or 2, where generating the value for the blended gray image from color channels of the pixel includes, for each of the plurality of pixels, multiplying an intensity of the color channels the pixel by one another.
Example 4. The method of one of examples 1 to 3, where the pixel-by-pixel dehazing operation further includes: calculating, for each of the plurality of pixels, a value for an atmospheric light of the initial image from the blended gray image; generating, for each of the plurality of pixels, a value for a brightened initial image from the value for the atmospheric light; generating, for each of the plurality of pixels, a value for a brightened blended gray image from the value for the brightened initial image value; and generating, for each of the plurality of pixels, the value for the transmission map from the value for the brightened blended gray image, where the generating of the output color channels for the processed image includes generating, for each of the plurality of pixels, a value for an mid-scene transmission map from the value for the transmission map, and recovering, for each of the plurality of pixels, a scene radiance value of the initial image based on pixel values in the mid-scene transmission map, the initial image, and the atmospheric light.
Example 5. The method of one of examples 1 to 4, where calculating a value for an atmospheric light of the initial image from the blended gray image includes: determining, for each of the plurality of pixels, the brightest pixels in the blended gray image, where the brightest pixels in the blended gray image are pixels having values within a small fraction of values in the blended gray image; determining, at each of the brightest pixels in the blended gray image, an intensity of the color channels of pixels in the initial image that correspond to the brightest pixels in the blended gray image; and determining, an average intensity of each color channel at the pixels in the initial image that correspond to the brightest pixels in the blended gray image.
Example 6. The method of one of examples 1 to 5, where calculating the value for the atmospheric light of the initial image from the value for the blended gray image further includes: determining a saturation of the atmospheric light based on the value for the atmospheric light; restricting the saturation of the atmospheric light to the gray range, where restricting the saturation of the atmospheric light to gray scale includes restricting the saturation of the atmospheric light to a value less than or equal to 0.1; and updating the value for the atmospheric light based on the restricted saturation.
Example 7. The method of one of examples 1 to 6, where generating the value for the brightened initial image from the value for the atmospheric light includes: generating, for each of the plurality of pixels, an intensity of each of the color channels of the pixel for the brightened initial image, where generating the intensity of each of the color channels of the pixel for the brightened initial image includes: dividing, for each of the plurality of pixels, the intensity of each color channel of the pixel in the initial image by the intensity of a corresponding color channel of the atmospheric light; and applying, for each of the plurality of pixels, a brightening constant to the result of said division.
Example 8. The method of one of examples 1 to 7, where generating the value of the transmission map from the blended gray channel includes, inverting, for each of the plurality of pixels, the value of the brightened blended gray image.
Example 9. The method of one of examples 1 to 8, where generating the value for the brightened blended gray image includes: multiplying, for each of the plurality of pixels, an intensity of each of the color channels of each pixel in the brightened initial image by one another.
Example 10. The method of one of examples 1 to 9, where generating the value for the mid-scene transmission map from the value of the transmission map includes: generating, for each of the plurality of pixels, a value for a brightened transmission map from the value for the transmission map; generating, for each of the plurality of pixels, a value for an adjusted brightened blended gray image from the value of the brightened blended gray image based on a hue of the atmospheric light; combining, for each of the plurality of pixels, the value of the brightened transmission map and the value of the adjusted brightened blended gray image; and inverting, for each of the plurality of pixels, a combined value of the brightened transmission map and the adjusted brightened blended gray image.
Example 11. The method of one of examples 1 to 10, where generating the value for the brightened transmission map includes: determining, for each of the plurality of pixels, a mean value of the transmission map; determining, for each of the plurality of pixels, a brightening factor based on the mean value of the transmission map; and determining, for each of the plurality of pixels, the value for the brightened transmission map based on the brightening factor.
Example 12. The method of one of examples 1 to 11, where generating the value of the adjusted brightened blended gray image from the value of the brightened blended gray image based on a hue of the atmospheric light includes: determining whether a hue of the atmospheric light is within a possible sky range of the initial image, the possible sky range including hue values above or below a non-sky range; determining a first adjustment factor based on a determination that the hue of the atmospheric light is below the non-sky range; or determining a second adjustment factor based on a determination that the hue of the atmospheric light is within the non-sky range, the second adjustment factor being different from the first adjustment factor; or determining a third adjustment factor based on a determination that the hue of the atmospheric light is above the non-sky range, the third adjustment factor being different than the first and second adjustment factors; and determining, for each of the plurality of pixels, the value of the adjusted brightened blended gray image based on the first, the second, or the third adjustment factor.
Example 13. The method of one of examples 1 to 12, where recovering the scene radiance includes using the equation
where I(x) represents, for each of the plurality of pixels, a value of the color channels of the pixels, A represents the atmospheric light, T(x) represents, for each of the plurality of pixels, the value for the mid-scene transmission map, and J(x) represents, for each of the plurality of pixels, the scene radiance value of the initial image.
Example 14. A method for enhancing an image, the method including: capturing an initial image including a plurality of pixels; generating a blended gray image from the initial image; generating a brightened blended gray image from a brightened initial image; generating, for each of the plurality of pixels, a transmission map; calculating an enhancement value based on determining how much haze is present in the initial image; adjusting the transmission map based on the enhancement value; determining whether a hue of atmospheric light in the initial image is within a possible sky color range of the initial image, the possible sky color range including hue values above or below a non-sky color range; adjusting the transmission map for each of the plurality of pixels using the enhancement value; adjusting the brightened blended gray image based on determining whether the hue of atmospheric light in the initial image is within the possible sky color range; and after adjusting the transmission map, generating an enhanced image from the adjusted transmission map, the adjusted brightened blended gray image, and the initial image.
Example 15. The method of example 14, where determining how much haze is present in the initial image is based on a mean value of the atmospheric light captured in the initial image and the mean value of the transmission map.
Example 16. The method of one of examples 14 or 15, where generating the blended gray image includes determining, for each of the plurality of pixels, a value for the blended gray image from color channels of each of the plurality of the pixels by multiplying an intensity of the color channels of each of the plurality of pixels by one another.
Example 17. The method of one of examples 14 to 16, where generating the brightened blended gray image includes: generating, for each of the plurality of pixels, a value for a brightened initial image based on atmospheric light captured in the initial image and a global brightening factor; and multiplying, for each of the plurality of pixels, an intensity of each of the color channels of each pixel in the brightened initial image by one another.
Example 18. The method of one of examples 14 to 17, where generating the transmission map includes: inverting, for each of the plurality of pixels, a value for the brightened blended gray image.
Example 19. The method of one of examples 14 to 18, where adjusting the brightened blended gray image further includes: determining a first adjustment factor based on a determination that the hue of the atmospheric light below the non-sky range color range; or determining a second adjustment factor based on a determination that the hue of the atmospheric light is within the non-sky range, the second adjustment factor being different from the first adjustment factor; or determining a third adjustment factor based on a determination that the hue of the atmospheric light is above the non-sky range, the third adjustment factor being different than the first and second adjustment factors; and adjusting, for each of the plurality of pixels, the value of the brightened blended gray image based on the first, the second, or the third adjustment factor.
Example 20. The method of one of examples 14 to 19, generating an enhanced image from the adjusted transmission map, the adjusted brightened blended gray image and the initial image includes: combining, for each of the plurality of pixels, the adjusted value of the transmission map and the adjusted value of the brightened blended gray image by multiplying, for each of the plurality of pixels, the adjusted value of the transmission map and the adjusted value of the brightened blended gray image; determining, for each of the plurality of pixels, an inverted value by inverting, for each of the plurality of pixels, the combined value of the adjusted transmission map and the adjusted brightened blended gray image; and recovering a scene radiance, for each of the plurality of pixels, based on the inverted value, an intensity of each color channel of the pixel in the initial image, and an intensity of each color channel of the atmospheric light captured in the initial image.
Example 21. An image enhancement device, the image enhancement device including: an image sensor configured to capture an initial image; a memory configured to store the captured the initial image; a display; and a processor in communication with the memory and the display, the processor being configured to execute instructions stored in the memory, the memory including instructions for: capturing an initial image including a plurality of pixels; and performing a pixel-by-pixel dehazing operation for each of the plurality of pixels, the performing including generating, for each of the plurality of pixels, a value for a blended gray image from color channels of the pixel, generating, for each of the plurality of pixels, a value for a transmission map from the blended gray image, and generating, for each of the plurality of pixels, output color channels for a processed image based on the value for the transmission map, the processed image being an enhancement of the initial image.
Example 22. The device of example 21, where the instructions for generating the value for the blended gray image from color channels of the pixel include instructions for, for each of the plurality of pixels, multiplying an intensity of the color channels the pixel by one another.
Example 23. The device of one of examples 21 or 22, where the instructions for the pixel-by-pixel dehazing operation further include instructions for: calculating, for each of the plurality of pixels, a value for an atmospheric light of the initial image from the blended gray image; generating, for each of the plurality of pixels, a value for a brightened initial image from the value for the atmospheric light; generating, for each of the plurality of pixels, a value for a brightened blended gray image from the value for the brightened initial image value; and generating, for each of the plurality of pixels, the value for the transmission map from the value for the brightened blended gray image, where the generating of the output color channels for the processed image includes generating, for each of the plurality of pixels, a value for an mid-scene transmission map from the value for the transmission map, and recovering, for each of the plurality of pixels, a scene radiance value of the initial image based on pixel values in the mid-scene transmission map, the initial image, and the atmospheric light.
Example 24. The device of one of examples 21 to 23, where the instructions for calculating a value for an atmospheric light of the initial image from the blended gray image include instructions for: determining, for each of the plurality of pixels, the brightest pixels in the blended gray image, where the brightest pixels in the blended gray image are a small fraction of the brightest pixels in the blended gray image; determining, at each of the brightest pixels in the blended gray image, an intensity of the color channels of pixels in the initial image that correspond to the brightest pixels in the blended gray image; and determining, an average intensity of each color channel at the pixels in the initial image that correspond to the brightest pixels in the blended gray image.
Example 25. The device of one of examples 21 to 24, where the instructions for calculating the value for the atmospheric light of the initial image from the value for the blended gray image further include instructions for: calculating the value for the atmospheric light of the initial image from the value for the blended gray image further includes: determining a saturation of the atmospheric light based on the value for the atmospheric light; restricting the saturation of the atmospheric light to the gray range, where restricting the saturation of the atmospheric light to gray scale includes restricting the saturation of the atmospheric light to a value less than or equal to 0.1; and updating the value for the atmospheric light based on the restricted saturation.
Example 26. The device of one of examples 21 to 25, where the instructions for generating the value of the transmission map from the blended gray channel includes instructions for inverting, for each of the plurality of pixels, the value of the brightened blended gray image.
Example 27. The device of one of examples 21 to 26, where the instructions for generating the value for the brightened blended gray image include instructions for: multiplying, for each of the plurality of pixels, an intensity of each of the color channels of each pixel in the brightened initial image by one another.
Example 28. The device of one of examples 21 to 27, where the instructions for generating the value for the mid-scene transmission map from the value of the transmission map include instructions for: generating, for each of the plurality of pixels, a value for a brightened transmission map from the value for the transmission map; generating, for each of the plurality of pixels, a value for an adjusted brightened blended gray image from the value of the brightened blended gray image based on a hue of the atmospheric light; and combining and inverting, for each of the plurality of pixels, the value of the brightened transmission map and the value of the adjusted brightened blended gray image.
Example 29. The device of one of examples 21 to 28, where the instructions for generating the value for the brightened transmission map include instructions for: determining, for each of the plurality of pixels, a mean value of the transmission map; determining, for each of the plurality of pixels, a brightening factor based on the mean value of the transmission map; and determining, for each of the plurality of pixels, the value for the brightened transmission map based on the brightening factor.
Example 30. The device of one of examples 21 to 29, where the instructions for generating the value of the adjusted brightened blended gray image from the value of the brightened blended gray image based on a hue of the atmospheric light include instructions for: determining a first adjustment factor based on a determination that the hue of the atmospheric light below the non-sky range color range; or determining a second adjustment factor based on a determination that the hue of the atmospheric light is within the non-sky color range, the second adjustment factor being different from the first adjustment factor; or determining a third adjustment factor based on a determination that the hue of the atmospheric light is above the non-sky color range, the third adjustment factor being different than the first and second adjustment factors; and adjusting, for each of the plurality of pixels, the value of the brightened blended gray image based on the first, the second, or the third adjustment factor.
Example 31. A method for enhancing an image includes generating a blended gray image from an initial image captured at an image sensor, the initial image comprising a plurality of pixels, the initial image comprising a first region comprising an object to be viewed and a second region comprising haze to be removed from the initial image, the blended gray image being generated by multiplying values of color channels of each of the plurality of pixels; and based on the blended gray image, removing the haze from the second region by performing a pixel-by-pixel operation.
Example 32. The method of example 31, further comprising calculating an average value of atmospheric light captured in the initial image based on a fraction of the brightest pixels in the blended gray image.
Example 33. The method of one of examples 31 to 32, further comprising determining an amount of haze present in the second region of the initial image, based at least in part on, an average value of atmospheric light captured in the initial image, wherein the average value of the atmospheric light captured in the initial image is determined based a fraction of the brightest pixels in the blended gray image.
Example 34. The method of one of examples 31 to 33, further comprising determining an average value of atmospheric light captured in the initial image based on the blended gray image and restricting a saturation of the average value of the atmospheric light in the initial image to a value less than or equal to 0.01.
Example 35. The method of one of examples 31 to 34, wherein removing the haze from the second region of the initial image by performing a pixel-by-pixel operation further comprises limiting dehazing to each of the plurality of pixels of a transmission map that have mid-range transmission values, wherein the transmission map is generated based on the blended gray image.
Example 36. The method of one of examples 31 to 35, wherein removing the haze from the second region of the initial image by performing a pixel-by-pixel operation further comprises limiting dehazing based on a hue of an average of atmospheric light captured in the initial image.
While this invention has been described with reference to illustrative embodiments, this description is not intended to be construed in a limiting sense. Various modifications and combinations of the illustrative embodiments, as well as other embodiments of the invention, will be apparent to persons skilled in the art upon reference to the description. It is therefore intended that the appended claims encompass any such modifications or embodiments.
Stewart, Brian Douglas, Hegedüs, Réka
Patent | Priority | Assignee | Title |
Patent | Priority | Assignee | Title |
10290081, | Apr 29 2016 | INDUSTRY FOUNDATION OF CHONNAM NATIONAL UNIVERSITY | System for image dehazing by modifying lower bound of transmittance and method therefor |
10367976, | Sep 21 2017 | The United States of America as represented by the Secretary of the Navy | Single image haze removal |
10609303, | Aug 29 2017 | INDUSTRY FOUNDATION OF CHONNAM NATIONAL UNIVERSITY | Method and apparatus for rapid improvement of smog/low-light-level image using mapping table |
9189830, | Aug 30 2011 | Fujitsu Limited | Image defogging method and system |
9361670, | Sep 04 2014 | National Taipei University of Technology | Method and system for image haze removal based on hybrid dark channel prior |
20110188775, | |||
20120212477, | |||
20140177960, | |||
20160026893, | |||
20170178297, | |||
20210049744, | |||
20210201452, | |||
CN106530246, | |||
CN107451977, | |||
CN107862672, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Nov 02 2021 | HEGEDÜS, RÉKA | STMICROELECTRONICS RESEARCH & DEVELOPMENT LIMITED | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 058183 | /0762 | |
Nov 09 2021 | STEWART, BRIAN DOUGLAS | STMICROELECTRONICS RESEARCH & DEVELOPMENT LIMITED | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 058183 | /0762 | |
Nov 19 2021 | STMicroelectronics (Research & Development) Limited | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Nov 19 2021 | BIG: Entity status set to Undiscounted (note the period is included in the code). |
Jan 06 2022 | PTGR: Petition Related to Maintenance Fees Granted. |
Date | Maintenance Schedule |
Oct 31 2026 | 4 years fee payment window open |
May 01 2027 | 6 months grace period start (w surcharge) |
Oct 31 2027 | patent expiry (for year 4) |
Oct 31 2029 | 2 years to revive unintentionally abandoned end. (for year 4) |
Oct 31 2030 | 8 years fee payment window open |
May 01 2031 | 6 months grace period start (w surcharge) |
Oct 31 2031 | patent expiry (for year 8) |
Oct 31 2033 | 2 years to revive unintentionally abandoned end. (for year 8) |
Oct 31 2034 | 12 years fee payment window open |
May 01 2035 | 6 months grace period start (w surcharge) |
Oct 31 2035 | patent expiry (for year 12) |
Oct 31 2037 | 2 years to revive unintentionally abandoned end. (for year 12) |