Image processing method and apparatus, terminal and storage medium
AssigneeTencent Technology (Shenzhen) Company Limited
InventorYiming WANG
Life of this patent
Estimating the term…
Abstract
Embodiments of this disclosure disclose an image processing method and apparatus, a terminal, and a storage medium. The method includes: obtaining a to-be-processed negative image and initial color values of pixels in the negative image in a first color space; inverting the negative image to obtain inverted image data, inverted color values of pixels in the inverted image data being determined according to the initial color values of the pixels in the negative image; performing value equalization on intermediate color values of the pixels in a range corresponding to a second color space according to the inverted image data, to obtain digital color values of the pixels; and obtaining digital image data of the negative image according to the digital color values of the pixels.
Claims20
An image processing method, performed by a terminal, the method comprising:
- obtaining a to-be-processed negative image, which comprises a plurality of pixels and initial color values of the plurality of pixels in a first color space;
- inverting the negative image to obtain inverted image data, the inverted image data comprising inverted color values of the plurality of pixels and the inverted color values being determined according to the initial color values of the plurality of pixels;
- performing value equalization on intermediate color values of the plurality of pixels in a range corresponding to a second color space according to the inverted image data to obtain digital color values of the plurality of pixels;
- and
- obtaining digital image data of the negative image according to the digital color values of the plurality of pixels.
A terminal device, comprising:
- at least one processor;
- and
- a memory, the processor and the memory being electrically coupled to each other, the memory being configured to store at least one computer program, and the processor being configured to execute the computer program to cause the terminal device to perform the steps comprising:
- obtaining a to-be-processed negative image, which comprises a plurality of pixels and initial color values of the plurality of pixels in a first color space;
- inverting the negative image to obtain inverted image data, the inverted image data comprising inverted color values of the plurality of pixels and the inverted color values being determined according to the initial color values of the plurality of pixels;
- performing value equalization on intermediate color values of the plurality of pixels in a range corresponding to a second color space according to the inverted image data to obtain digital color values of the plurality of pixels;
- and
- obtaining digital image data of the negative image according to the digital color values of the plurality of pixels.
A non-transitory computer-readable storage medium, storing computer program instructions, the computer program instructions being adapted to be loaded by a processor to cause a device to perform the steps comprising:
- obtaining a to-be-processed negative image, which comprises a plurality of pixels and initial color values of the plurality of pixels in a first color space;
- inverting the negative image to obtain inverted image data, the inverted image data comprising inverted color values of the plurality of pixels and the inverted color values being determined according to the initial color values of the plurality of pixels;
- performing value equalization on intermediate color values of the plurality of pixels in a range corresponding to a second color space according to the inverted image data to obtain digital color values of the plurality of pixels;
- and
- obtaining digital image data of the negative image according to the digital color values of the plurality of pixels.
Dependencies are inferred from the claim text.