A method and terminal for image defogging
A technology in images and images, applied in the field of image processing, can solve problems such as low calculation efficiency, overexposure of defogged images, and invalid sky areas, etc., to achieve the effects of increasing defogging speed, avoiding overexposure, and reducing color distortion
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0108] Please refer to figure 1 , a method for image defogging, comprising steps:
[0109] S1. Decompose the image pyramid on the image to be processed, and obtain the decomposed top image of the Gaussian pyramid;
[0110] Specifically, in this embodiment, the image to be processed is decomposed into an image pyramid, the image to be processed is divided into a multi-layer Gaussian pyramid, and the top layer image of the Gaussian pyramid after decomposing is obtained; wherein the number of layers of the Gaussian pyramid is determined by the image resolution, and generally takes 0-3 layers, the higher the number of layers, the lower the resolution of the obtained image;
[0111] S2. Determine whether the fog concentration in the non-sky area in the top image of the Gaussian pyramid is higher than the first preset threshold, if so, calculate the atmospheric light value and transmittance of the top image of the Gaussian pyramid, and judge the top image of the Gaussian pyramid W...
Embodiment 2
[0153] The difference between this embodiment and Embodiment 1 is that the calculation method of mist concentration is further limited:
[0154] Wherein, said judging whether the fog density in the non-sky area in the Gaussian pyramid top image is higher than the first preset threshold includes:
[0155] Calculate the fog concentration score_2:
[0156] ;
[0157] In the formula, x represents the pixels in the non-sky region, I represents the pixels in the region to be processed, c represents the color channel, max represents the maximum value of the pixels in the region to be processed, and min represents the pixels in the region to be processed The minimum value of , mean means taking the average value;
[0158] judging whether the fog concentration is higher than a first preset threshold;
[0159]Specifically, in practical applications, the input image to be processed may contain a fog-free image, and fog-free images do not need to be defogged, so it is necessary to ha...
Embodiment 3
[0161] Please refer to figure 2 , an image defogging terminal, including a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the first or second embodiment when executing the computer program The various steps of the image dehazing method in .
[0162] In summary, a method and terminal for image defogging provided by the present invention obtains the top layer image of the Gaussian pyramid of the image to be processed; judges whether defogging is needed according to the fog concentration in the non-sky area in the top layer image of the Gaussian pyramid, and the fog concentration Defog processing is performed on images higher than the first preset threshold, which can avoid further defogging processing on fog-free images, and at the same time avoid data errors caused by similar features between the sky area and the foggy area; Calculate the atmospheric light value and transmittance, and if there is a ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com