Rapid image defogging method based on depth estimation prior and electronic equipment
A technology of depth estimation and depth map, which is applied in the field of image processing, can solve problems such as weak defogging, low production efficiency, and sky distortion, and achieve the effects of reducing time cost, reducing computing power consumption, and simplifying operations
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0060] refer to figure 1 As shown, this embodiment provides a fast image defogging method based on depth estimation prior, including the following steps:
[0061] S1 acquires the data set of the foggy image and its depth map pair after adding fog to the fog-free image, and converts it into a form that can be processed by digital image;
[0062] S2 uses multiple foggy images to construct a depth estimation model for dehazing, and generates an initial depth map corresponding to the input image;
[0063] S3 uses the atmospheric light estimation algorithm to estimate the three-channel atmospheric light value corresponding to the input image, and at the same time uses minimum value filtering, down-sampling and guided filtering to refine the depth map;
[0064] S4 brings the refined depth map and atmospheric light value into the image restoration formula, and dehazes the fogged image and outputs it.
[0065] This embodiment is constructed to use a large number of foggy images to s...
Embodiment 2
[0069] see figure 2 As shown, this embodiment provides a fast image defogging algorithm based on depth estimation prior, including the following steps:
[0070] Transfer the input image from the RGB color space to the HSV color space, and use the depth estimation prior to generate a scene depth map;
[0071] The input image is processed by a simplified quadtree algorithm to obtain the atmospheric light value of the RGB three-channel;
[0072] Perform minimum value filtering and smoothing on the scene depth map, and then use guided filtering to perform edge-preserving smoothing filtering, and refine the edges in the grayscale image of the input image to the depth map;
[0073] The atmospheric scattering model is used to restore the image, and the processed dehazed image is output.
[0074] Further as a preferred embodiment, the step of generating a scene depth map using a depth estimation prior includes the following steps:
[0075] By observing the correlation between the ...
Embodiment 3
[0089] In terms of specific implementation, on the basis of a fast image defogging algorithm based on depth estimation priors, this embodiment provides a simplified quadtree algorithm to process the input image to obtain the RGB three-channel atmospheric light value. Specific steps are as follows:
[0090] Convert the input image to a grayscale image;
[0091] Divide the grayscale image into four rectangular areas, and use the average value of the area as the score in each area;
[0092] Select the area with the highest score as a new area, repeat the previous step, and use the intermediate variable to store the original RGB image block corresponding to the area with the highest score at this time, and erase the RGB image block value stored in the previous iteration;
[0093] After repeating the previous step five times, the area of the obtained image block is already smaller than 0.1% of the size of the original image, and the average value of the RGB three channels in the...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


