Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Real-time image dehazing method based on gpu

An image and original image technology, applied in the field of real-time defogging of images based on GPU, can solve problems such as unsatisfactory defogging effect, insufficient edge information, poor real-time performance, etc., to improve the defogging effect is not detailed enough, edge information is rich , the effect of improving efficiency

Active Publication Date: 2022-07-22
XIDIAN UNIV
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

It can be seen that in the final defogged image, the defogged effect is not ideal, such as the tree branches in the upper right corner, the pillars next to the railroad tracks, etc., mainly because the edge information of these areas in the haze image itself is not clear enough, so the use of fog Filtering the haze image as a guide map is not ideal for these areas
Moreover, the performance of these two algorithms on the CPU is not satisfactory. When processing large images (such as standard 1080p images), these two algorithms do not have the ability to process standard high-definition images in real time on the CPU. The real-time performance on embedded devices is even worse, and it is basically impossible to apply it to miniaturized devices

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Real-time image dehazing method based on gpu
  • Real-time image dehazing method based on gpu
  • Real-time image dehazing method based on gpu

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0061] See Figure 4 , Figure 4 A schematic flowchart of a GPU-based real-time image dehazing method provided by an embodiment of the present invention. A GPU-based image real-time dehazing method, comprising the following steps:

[0062] (a) Obtain raw images and atmospheric light values;

[0063] (b) allocating a first shared memory, and using the first shared memory to calculate a first transmittance map according to the atmospheric light value;

[0064] (c) Allocate the second shared memory, the third shared memory, the fourth shared memory and the fifth shared memory, and utilize the second shared memory, the third shared memory, the fourth shared memory and the fifth shared memory The shared memory performs two guided filtering according to the original image and the first transmittance map to obtain a haze-free image.

[0065] It should be noted that the atmospheric light value in the embodiment of the present invention generally refers to the brightness value of a...

Embodiment 2

[0070] see also Figure 5 , Figure 6a , Figure 6b , Figure 6c , Figure 6d as well as Figure 6e , Figure 5 A schematic flowchart of another GPU-based real-time image dehazing method provided by an embodiment of the present invention; Figure 6a A guide map (original image) of a GPU-based real-time image dehazing method provided by an embodiment of the present invention; Figure 6b A transmittance map after one-time guided filtering of a GPU-based real-time image dehazing method provided by an embodiment of the present invention; Figure 6c A dehazing image of a GPU-based real-time image dehazing method provided by an embodiment of the present invention; Figure 6d A transmittance map after secondary guidance filtering of a GPU-based real-time image dehazing method provided by an embodiment of the present invention; Figure 6e This is a secondary dehazing image based on the real-time image dehazing method on the embedded GPU provided by the embodiment of the presen...

Embodiment 3

[0117] On the basis of the second embodiment, the embodiment of the present invention introduces in detail the process of realizing the secondary guided filtering by using the GPU.

[0118] (S201) The atmospheric light value A of the original image I is obtained on the CPU side. By default, the atmospheric light value A of consecutive frames is the same, so for the video stream, the A value is only obtained once.

[0119] (S202) The CPU transmits the original image I to the GPU, and uses the cuda Host Register function to register it as a page-locked memory to speed up the transmission speed of the original image. Generally speaking, the transmission speed of the page-locked memory is 30% faster than that of ordinary memory ~40%.

[0120] (S203) Obtain the first grayscale image G1 of the original image I at the GPU end. Preferred parameters: 16*16 thread model, 1*1 thread workload. Color to grayscale is the most basic GPU kernel function. A single thread updates an RGB value...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention relates to a real-time dehazing method for images based on GPU, comprising the following steps: (a) acquiring original images and atmospheric light values; (b) allocating a first shared memory, and using the first shared memory according to the atmospheric light values Calculate the first transmittance map; (c) allocate the second shared memory, the third shared memory, the fourth shared memory and the fifth shared memory, and use the second shared memory, the third shared memory, the The fourth shared memory and the fifth shared memory perform two guided filtering according to the original image and the first transmittance map to obtain a haze-free image. In the embodiment of the present invention, by implementing the method of secondary guided filtering on the GPU, the finally obtained dehazing image is more ideal.

Description

technical field [0001] The invention belongs to the field of visual image processing, and in particular relates to a real-time image defogging method based on GPU. Background technique [0002] Smog has been a popular word in society in recent decades, and there are not a few countries affected by smog in China and even in the world. Fog and haze lead to unclear vision and sometimes have extremely bad effects, such as foggy driving, foggy drills, foggy target recognition, and so on. Therefore, it is very important to study the dehazing algorithm with stable dehazing effect and good real-time performance. [0003] However, there is no dehazing algorithm that can be really applied in real life. The reason is that the algorithm with stable dehazing effect has a large amount of calculation and does not have real-time application prospects, while some current real-time dehazing algorithms are There is nothing to do with video images, there are often unnatural transitions betwee...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06T5/00
CPCG06T5/003
Inventor 邵晓鹏徐军陈浩金祥安凯赵小明
Owner XIDIAN UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products