An image processing method and apparatus
Patent Information
- Application Number
- CN202111062473.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-10
- Publication Date
- 2026-10-16
- Estimated Expiration
- 2041-09-10
AI Technical Summary
[0004]有鉴于此,本公开实施例提供了一种图像处理方法及装置,用于解决不同色彩显示标准下的图像进行叠加融合会导致融合图像异常的问题
[0056]The image processing method provided in this disclosure includes: converting the color of each pixel in a foreground image from a color in a first color space of a first color display standard to a light signal under a second color display standard, obtaining a first light signal set; obtaining a conversion coefficient based on the peak brightness of the second color display standard and the peak brightness of the target display device; converting each light signal in the first light signal set according to the conversion coefficient to obtain a second light signal set; converting the color of each pixel in a background image from a color in a second color space of the second color display standard to a light signal under the second color display standard, obtaining a third light signal set; fusing the light signals in the second light signal set and the third light signal set based on the transmittance of the foreground image to obtain a fourth light signal set; converting the light signals in the fourth light signal set to colors in the second color space; and obtaining a fused image of the foreground image and the background image. On one hand, since the image processing method provided in this disclosure can convert both the foreground image belonging to the first color display standard and the background image belonging to the second color display standard into light signals under the second color display standard before fusing them, this disclosure can avoid anomalies caused by color gamut differences between the foreground image and the background image. On the other hand, since the image processing method provided in this embodiment of the present disclosure, after converting the foreground image into a light signal of the second color display standard, also obtains a conversion coefficient based on the peak brightness of the second color display standard and the peak brightness of the target display device, and converts each light signal in the first light signal set according to the conversion coefficient, this embodiment of the present disclosure can also align the brightness of the foreground image to the color display standard to which the background image belongs through the brightness of the target display device, thereby avoiding anomalies caused by brightness abnormalities between the foreground image and the background image. In summary, the image processing method provided in this embodiment of the present disclosure can avoid anomalies caused by color gamut differences and brightness abnormalities between the foreground image and the background image, and solves the problem that the superposition and fusion of images under different color display standards will lead to abnormal fused images.