摘要 |
<p>The present invention provides a method and a device for processing image. The method comprises: determining at least one piece covered by a mask in a current frame image, the mask centers on a first pixel point in the current frame image, the at least one piece is obtained through partition of the current frame image, and the piece comprises a plurality of pixel points; determining the pixel mean value of each piece of the at least one piece, and determining the gray scale mapping curvilinear function corresponding to each piece according to the pixel mean value of the piece; determining the ratio between the area of a portion, covered by the mask, of each piece of the at least one piece and the area of the mask; and determining the adjustment pixel value of the first pixel point according to the ratio between the area of a portion, covered by the mask, of each piece, the gray scale mapping curvilinear function corresponding to each piece and the original pixel value of the first pixel point. The embodiments of the invention can improve image processing speed while save resources.</p> |