Method and apparatus for processing image
Abstract:
A method and an apparatus for processing an image are provided. A method may include: acquiring a to-be-processed foggy image, and performing minimum value filtering on the to-be-processed foggy image to obtain a grayscale image of the to-be-processed foggy image; selecting, in a descending order of pixel values, a target number of pixel points from the grayscale image, and determining an image area corresponding to the selected pixel points from the to-be-processed foggy image; acquiring pixel values of the pixel points included in the image area, and determining an atmospheric light value based on the acquired pixel values; and performing image defogging processing on the to-be-processed foggy image based on the grayscale image and the atmospheric light value to obtain a processed image. The effect of image display and the efficiency of image processing can be improved.
Public/Granted literature
Information query
Patent Agency Ranking
0/0