Method for quickly demisting single image
A single image and image technology, applied in the field of computer vision, can solve problems such as the need to improve the running speed, and achieve the effect of reducing the computational complexity, increasing the speed, and reducing the complexity.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0057] figure 1 It is a flow chart of the present invention for color image defogging
[0058] This embodiment is used to process color images, and the steps are as follows:
[0059] 1) Obtain a color original image, and obtain the luminance matrix (also called the minimum luminance matrix) of the original image according to the values of the red, green, and blue color channels of the original image.
[0060] Read in a foggy color image, denoted as I, the pixel value at the coordinate x of the color image is denoted as I(x), and the image pixel value range is between 0-255;
[0061] For the pixel value I(x)=[Ir(x) at this color image coordinate x, I g (x), I b (x)], I r (x), I g (x), I b (x) represents the value of the coordinate x in the three color channels of red, green and blue, and the lowest brightness matrix of the original color image is obtained according to the values in the three color channels.
[0062] Preferably, take the minimum value of the coordinat...
Embodiment 2
[0107] figure 2 It is a flow chart of the present invention for grayscale image defogging
[0108] Dehazing of grayscale images is a simplified special case of color images.
[0109] 1) Obtain a grayscale original image, and obtain the brightness matrix of the original image.
[0110] Read in a foggy grayscale image, denoted as I(x), the image pixel value range is between 0-255, and the brightness matrix obtained is preferably the pixel value matrix of the grayscale image itself.
[0111] 2) Carry out a median filtering operation on the luminance matrix to obtain a median filtering matrix.
[0112] Median filtering is performed on the matrix I(x), and the formula is as follows:
[0113] I med (x) = median sv (I(x)) (7)
[0114] Among them, sv is the radius of the median filter;
[0115] 3) Obtain the atmospheric light value based on the luminance matrix and the median filter matrix.
[0116] Find the maximum value of all elements of I(x), denoted as A I , get I med ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 