Arch & Lake LLP
Image processing method and apparatus, and storage medium
An image processing method and apparatus, and a storage medium are provided in the technical field of display. The method may include: acquiring pixel data of an image to be processed; acquiring a histogram of the image according to the pixel data, the histogram indicating a pixel number under each grey scale; obtaining a target grey scale set by using in the histogram a grey scale whose pixel number exceeds a preset pixel number; selecting, from the image, a target pixel whose grey scale belongs to the target grey scale set from the image; and performing a color inversion operation to the target pixel. The color inversion operation is performed to the background pixels and character pixels. Thus, the image grey scales may be reduced while maintaining the contrast of the image, and influence to the image definition by the grey scales is reduced.
Beijing Xiaomi Mobile Software Co., Ltd.
G G G G G G G G G H
G06T G06T G09G G09G G09G G09G G09G G09G G09G H04N
inventional inventional inventional inventional additional additional additional additional additional inventional
Guosheng
Li