CN114999363A - Color shift correction method, device, equipment, storage medium and program product - Google Patents

Color shift correction method, device, equipment, storage medium and program product Download PDF

Info

Publication number
CN114999363A
CN114999363A CN202210660459.9A CN202210660459A CN114999363A CN 114999363 A CN114999363 A CN 114999363A CN 202210660459 A CN202210660459 A CN 202210660459A CN 114999363 A CN114999363 A CN 114999363A
Authority
CN
China
Prior art keywords
parameter
target
chromaticity
angle
length
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210660459.9A
Other languages
Chinese (zh)
Inventor
陈伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bigo Technology Singapore Pte Ltd
Original Assignee
Bigo Technology Singapore Pte Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bigo Technology Singapore Pte Ltd filed Critical Bigo Technology Singapore Pte Ltd
Priority to CN202210660459.9A priority Critical patent/CN114999363A/en
Publication of CN114999363A publication Critical patent/CN114999363A/en
Priority to PCT/CN2023/096662 priority patent/WO2023241339A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/02Improving the quality of display appearance
    • G09G2320/0242Compensation of deficiencies in the appearance of colours
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0666Adjustment of display parameters for control of colour parameters, e.g. colour temperature
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0693Calibration of display systems

Abstract

The embodiment of the application discloses a color cast correction method, a color cast correction device, color cast correction equipment, a storage medium and a program product, and belongs to the technical field of images. The method comprises the following steps: carrying out brightness dynamic expansion on image parameters of a target SDR image to obtain expanded image parameters, wherein the target SDR image comprises a portrait; selecting a local chromaticity parameter based on chromaticity information indicated by the image chromaticity parameter in the extended image parameter, wherein the local chromaticity parameter is a chromaticity parameter corresponding to a skin color area of the portrait; carrying out color cast correction on the local chromaticity parameters to obtain corrected image parameters; and generating a target HDR image corresponding to the target SDR image based on the corrected image parameters. The method provided by the embodiment of the application can be used for correcting the color cast of the skin color area, the problem of higher saturation of the skin color area caused by brightness improvement is reduced, and the visual effect is improved. And can only correct the skin color area, avoid the influence to other areas.

Description

Color shift correction method, device, equipment, storage medium and program product
Technical Field
The present disclosure relates to the field of image technologies, and in particular, to a method, an apparatus, a device, a storage medium, and a program product for color shift correction.
Background
At present, a Standard Dynamic Range (SDR) display screen and a High Dynamic Range (HDR) display screen display a picture/video, wherein the HDR display screen can display more luminance information, and the display effect is better than that of the SDR display screen, and therefore, the SDR image is usually converted into a corresponding HDR image.
In the image conversion process, after the brightness is expanded, the hue and the saturation of the image are transformed, and the phenomenon of yellowing or reddening is easy to occur in the skin color area of the image. Therefore, color shift correction is required during image conversion. In the related art, the overall chromaticity of an image is scaled by a certain ratio.
However, in the related art, the skin color after color cast correction is reddish and not in accordance with the real scene.
Disclosure of Invention
The embodiment of the application provides a color cast correction method, a device, equipment, a storage medium and a program product, and the technical scheme is as follows:
in one aspect, an embodiment of the present application provides a color shift correction method, where the method includes:
carrying out brightness dynamic expansion on image parameters of a target SDR image to obtain expanded image parameters, wherein the target SDR image comprises a portrait;
selecting a local chromaticity parameter based on chromaticity information indicated by an image chromaticity parameter in the extended image parameter, wherein the local chromaticity parameter is a chromaticity parameter corresponding to a skin color area of the portrait;
carrying out color cast correction on the local chromaticity parameters to obtain corrected image parameters;
and generating a target HDR image corresponding to the target SDR image based on the corrected image parameters.
On the other hand, an embodiment of the present application provides a color shift correction device, where the device includes:
the dynamic expansion module is used for carrying out brightness dynamic expansion on the image parameters of a target SDR image to obtain expanded image parameters, wherein the target SDR image comprises a portrait;
a parameter selection module, configured to select a local chroma parameter based on chroma information indicated by an image chroma parameter in the extended image parameter, where the local chroma parameter is a chroma parameter corresponding to a skin color area of the portrait;
the color cast correction module is used for performing color cast correction on the local chromaticity parameters to obtain corrected image parameters;
and the image generation module is used for generating a target HDR image corresponding to the target SDR image based on the corrected image parameters.
In another aspect, embodiments of the present application provide a computer device, which includes a processor and a memory, where at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the color shift correction method according to the above aspect.
In another aspect, an embodiment of the present application provides a computer-readable storage medium, in which at least one instruction, at least one program, a set of codes, or a set of instructions is stored, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by a processor to implement the color shift correction method according to the above aspect.
In another aspect, embodiments of the present application provide a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the color cast correction method provided in the various alternative implementations of the above aspect.
The technical scheme provided by the embodiment of the application at least comprises the following beneficial effects:
in the embodiment of the application, after the image parameters of the target SDR image are subjected to luminance dynamic expansion, the computer equipment can determine the local chrominance parameters corresponding to the skin color area in the target SDR image based on the chrominance information indicated by the chrominance parameters in the expanded image parameters, so that the local chrominance parameters are subjected to color cast correction to reduce the saturation of the skin color area. Namely, the computer equipment can determine the skin color area based on the chromaticity information indicated by the image chromaticity parameters after the brightness expansion, so that the color cast correction is carried out on the skin color area, the problem of higher saturation of the skin color area caused by the brightness improvement is solved, and the visual effect is improved. And can only correct the skin color area, avoid the influence to other areas.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a color shift correction method according to an exemplary embodiment of the present application;
FIG. 2 is a flow chart illustrating a color shift correction method provided by another exemplary embodiment of the present application;
fig. 3 is a diagram illustrating an architecture of converting a target SDR image into a target HDR image according to an exemplary embodiment of the present application;
FIG. 4 is a schematic diagram illustrating a target chroma range in a Lab color space provided by an exemplary embodiment of the present application;
FIG. 5 is a flow chart illustrating a method of color shift correction provided by another exemplary embodiment of the present application;
FIG. 6 is an architectural diagram illustrating color shift correction provided by an exemplary embodiment of the present application;
fig. 7 shows a block diagram of a color shift correction apparatus according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, the following detailed description of the embodiments of the present application will be made with reference to the accompanying drawings.
To facilitate understanding of the embodiments of the present application, terms referred to in the embodiments of the present application are explained below.
SDR: SDR describes the dynamic range of images/video by means of a conventional gamma curve, where SDR content is represented using 8 bits. Color gamuts generally used for SDR content are rec.601, rec.709 and sRGB, and gamma curves corresponding to different color gamuts are different. SDR content is typically displayed on a screen with a luminance of 100 nit.
HDR: HDR uses a Hybrid Log-Gamma (HLG) or Perceptual Quantizer (PQ) to describe the dynamic range of an image/video, which is much larger than the Gamma curve. In the embodiment of the present application, the dynamic range refers to a luminance range. I.e., the HDR standard can display a range of luminances that is greater than the SDR standard can display. HDR content may be represented using 10 bits, 12 bits, and 14 bits. Currently, 10bit representation is mainly used. HDR content is typically displayed on a screen with a luminance of 1000nit-10000 nit.
SDR2 HDR: SDR to HDR, i.e. converting traditional SDR content to HDR content.
Hunter effect (Hunteffect): it means that the color appearance of the object changes obviously with the change of the whole brightness, namely, the chroma changes with the change of the brightness. Although the traditional HSV/HSL/Lab/YUV/ICbCr color model can separate the luminance information and the chrominance information (hue and saturation) in the color to some extent, the separation is not perfect, and the change of the luminance still brings the change of the chrominance. Furthermore, the perception of color and brightness by the human eye itself are closely related and difficult to separate thoroughly.
YUV color coding: a color coding method is often used in influencing a processing component. Where Y denotes luminance, and U and V denote chromaticity.
YCbCr color coding: YCbCr is a format for YUV color coding, and YUV is often used to represent YCbCr.
And (3) color cast correction: and adjusting the chromaticity. Due to the hunter effect, after the SDR image is converted into the HDR image, the hue and saturation of the color that the human eye subjectively perceives change with the change of the overall brightness, and an obvious color shift can be perceived, so that color shift correction is required.
Lab color space: i.e. CIE LAB, also called CIE L a b. Lab consists of one brightness channel and two color channels. In the Lab color space, each color is represented by three components, L, a, b, where L represents luminance; a represents the green to red component; b represents the component from blue to yellow.
CIE XYZ a color space created by the international commission on illumination (CIE) in 1931, which contains all the colors that the human eye can see, each color being represented by X, Y, Z three components.
When SDR video is converted into HDR images, the luminance will be boosted due to the luminance dynamic range expansion. After the brightness is improved, the corresponding chroma is changed, and the image saturation is improved. For most image areas, the improvement of the saturation can make the image more natural and have better visual effect. However, for the skin color area, the red color phenomenon of the skin color area is caused, and the image has poor reality and is not consistent with a real scene.
Therefore, in the embodiment of the present application, a color cast correction method is provided, after luminance dynamic expansion is performed on a target SDR image, color cast correction is further performed on a skin color area of a portrait therein, so that a converted HDR image is closer to a real scene; and only the skin color area in the image is corrected, so that the influence on other areas can be avoided, and the visual effect is improved.
The method provided by the embodiment of the application can be applied to the video conversion process, and can be used for performing color cast correction on the skin color area in the video frame in the process of converting the shot SDR video into the HDR video. The method is also suitable for real-time conversion of live scenes, can convert live pictures in real time in the live process, and can correct color cast of skin color areas in the SDR pictures in the HDR pictures in the process of converting the SDR pictures into the HDR pictures, thereby improving the visual effect of live watching. In addition, the method provided by the embodiment of the present application may also be used in other scenes that convert an SDR image/video into an HDR image/video, which is not limited in the embodiment of the present application.
The method provided by the embodiment of the application is executed by the computer equipment, wherein the computer equipment can have a video conversion function. The display device may be a smart phone, a tablet computer, a smart television, a digital player, a laptop portable computer, a desktop computer, or the like, which is not limited in this embodiment of the application.
Referring to fig. 1, a flowchart of a color shift correction method according to an exemplary embodiment of the present application is shown. The embodiment takes the method as an example for being used in computer equipment for explanation. The method comprises the following steps.
Step 101, performing dynamic brightness expansion on image parameters of a target SDR image to obtain expanded image parameters, wherein the target SDR image comprises a portrait.
The method provided by the embodiment of the application is suitable for the process of converting the SDR image into the HDR image, wherein the process of converting the SDR image into the HDR image relates to a brightness dynamic expansion process. Luma dynamic extension refers to extending the luma of an SDR image to the luma dynamic range supported by the HDR standard, thereby bringing the image closer to the scene perceived by the human eye. After the dynamic range of the brightness is expanded, the brightness of the image is improved, and the chroma is correspondingly improved due to the henry effect, namely the saturation is improved. In most scenarios, however, saturation boosting makes the image more natural. However, in the skin color region of the portrait, the saturation is increased to cause the skin color to be reddish, so that the color cast correction is required.
When the brightness of the target SDR image containing the portrait is dynamically expanded, the expanded image parameters can be further subjected to color cast correction, so that the converted image is closer to the scene perceived by human eyes.
And 102, selecting a local chromaticity parameter based on chromaticity information indicated by the image chromaticity parameter in the extended image parameter, wherein the local chromaticity parameter is a chromaticity parameter corresponding to a skin color area of the portrait.
In this embodiment of the present application, a skin color region (including a face, a neck, an arm, and the like) in a target SDR image may be identified according to a skin color corresponding to a color range, so as to perform color cast correction on the skin color region.
In a possible implementation manner, the extended image parameter includes an image chromaticity parameter corresponding to each pixel point, and is used to indicate chromaticity information of the pixel point. The computer device may determine whether it belongs to a color range corresponding to skin tones based on the chrominance information for the indicated pixel. And if the pixel point belongs to the color range of the skin color, determining that the pixel point belongs to the skin color area. That is, the computer device can screen and obtain a local chroma parameter according to the chroma parameter of the image and the color range of the skin color, the chroma information indicated by the local chroma parameter is matched with the color range of the skin color, the region formed by pixel points corresponding to the local chroma parameter is the skin color region in the target SDR image, and the color cast correction of the skin color region can be realized.
Compared with the prior art, the method has the advantages that the color cast correction is carried out on the whole image, the color cast correction can be carried out only on the skin color area, the problem of unnatural skin color caused by saturation improvement is solved, and the influence on other areas can be avoided.
And 103, performing color cast correction on the local chromaticity parameters to obtain corrected image parameters.
After the local chromaticity parameters are selected, the computer equipment can carry out color cast correction on the local chromaticity parameters. In one possible embodiment, since the increase of the luminance will bring the increase of the saturation, the saturation can be reduced by decreasing the chroma parameter.
In one possible implementation, the local chromaticity parameters may be reduced by the same ratio to perform color shift correction for skin color regions. In another possible implementation manner, since the chrominance information indicated by different chrominance parameters in the local chrominance parameter is different, for example, part of the chrominance is brighter and part of the chrominance is dimmer, the computer device may further determine a reduction ratio according to the chrominance information indicated by the chrominance parameters corresponding to different pixel points in the local chrominance parameter, and perform color shift correction according to the corresponding reduction ratio. Namely, color cast correction is carried out on different skin color areas in different modes, so that the corrected image is more natural, and the visual effect is improved.
And 104, generating a target HDR image corresponding to the target SDR image based on the corrected image parameters.
After the corrected image parameters are obtained, a target HDR image corresponding to the target SDR image can be further generated based on the corrected image parameters, and the conversion of the SDR image is completed.
To sum up, in the embodiment of the present application, after performing luminance dynamic expansion on an image parameter of a target SDR image, a computer device may determine a local chrominance parameter corresponding to a skin color region in the target SDR image based on chrominance information indicated by the chrominance parameter in the expanded image parameter, so as to perform color cast correction on the local chrominance parameter, thereby reducing saturation of the skin color region. Namely, the computer equipment can determine the skin color area based on the chromaticity information indicated by the image chromaticity parameters after the brightness expansion, so that the color cast correction is carried out on the skin color area, the problem of higher saturation of the skin color area caused by the brightness improvement is solved, and the visual effect is improved. And can only correct the skin color area, avoid the influence to other areas.
In the embodiment of the application, before color cast correction is performed, computer equipment first determines a skin color area in an image, so that color cast correction is performed on the skin color area. In a possible implementation manner, whether the skin color region belongs to is determined according to the chromaticity information indicated by each pixel point. The following description will be made with reference to exemplary embodiments.
Please refer to fig. 2, which shows a flowchart of a color shift correction method according to another exemplary embodiment of the present application. The embodiment takes the method as an example for being used in computer equipment for explanation. The method comprises the following steps.
Step 201, performing dynamic brightness expansion on the image parameters of the target SDR image to obtain expanded image parameters.
In general, the image parameters of the acquired target SDR image are nonlinear RGB parameters. In the dynamic brightness expansion process of the image parameters, as shown in fig. 3, the computer device first linearizes 301 the non-linear RGB parameters to obtain linear RGB display parameters, i.e. color and brightness information for indicating display in the display screen. After the linearization process, color space conversion 302 is performed, display linear RGB parameters are converted into display linear XYZ parameters in the CIE XYZ space, and luminance dynamic expansion (i.e., luminance dynamic range adjustment) 303 is performed based on the display linear XYZ parameters, so as to obtain expanded image parameters. The extended image parameters are XYZ parameters after the luminance dynamic extension, and belong to the CIE XYZ space.
Step 202, performing color space conversion on the extended image parameters to obtain image chromaticity parameters in the Lab space, wherein the image chromaticity parameters are used for indicating image color information, and the image chromaticity parameters comprise pixel chromaticity parameters corresponding to each pixel point.
In the Lab space, the image parameters are composed of a luminance parameter L and chrominance parameters a and b. In the embodiment of the application, whether the skin color region belongs to is judged according to the chrominance information indicated by the chrominance parameters a and b.
In one possible embodiment, the computer device first performs a color space conversion on the extended image parameters, i.e., XYZ parameters corresponding to the extended image parameters in the CIE color space are converted into L, a, b parameters in the Lab color space.
The a and b parameters of each pixel point form an image chromaticity parameter for indicating image color information, that is, the image chromaticity parameter includes a pixel chromaticity parameter corresponding to each pixel point, and the a and b parameters corresponding to each pixel point are included respectively.
Step 203, selecting a target chromaticity parameter from the chromaticity parameters of the pixels based on the target chromaticity range to obtain a local chromaticity parameter, wherein chromaticity information indicated by each target chromaticity parameter belongs to the target chromaticity range.
In one possible embodiment, a corresponding target chromaticity range is preset for the skin color. In general, the skin color region is located in a yellowish region, which is a schematic view of a Lab color space as shown in fig. 4, and a target chromaticity range corresponding to the skin color region may be set in the Lab color space according to a color attribute of skin color. For example, the target chromaticity range may be as shown in region 401. When the color information indicated by the pixel chromaticity parameter corresponding to the pixel point is in the region corresponding to the target chromaticity range, the color information is determined to belong to the skin color region, namely the color information can be determined as the target chromaticity parameter. Based on the target chromaticity range, the manner of selecting the target chromaticity parameters may include steps 203a-203b (not shown):
step 203a, determining an angle parameter and a length parameter corresponding to each pixel chromaticity parameter, wherein the angle parameter and the length parameter are used for indicating the chromaticity position of chromaticity in the Lab color space, and the angle parameter and the length parameter are determined according to the channel a parameter and the channel b parameter in the pixel chromaticity parameters.
In one possible embodiment, in determining whether the pixel chromaticity parameter (a, b) belongs to the target chromaticity range, it may be determined whether the chromaticity position of the pixel chromaticity parameter (a, b) in the Lab color space is located in a corresponding target region of the target chromaticity range in the Lab color space.
Optionally, the computer device may determine an angle parameter and a length parameter corresponding to the pixel chromaticity parameter according to the a and b channel parameters, so as to determine whether the pixel chromaticity parameter is located in the target area corresponding to the target chromaticity range according to the angle information and the length information indicated by the angle parameter and the length parameter.
The mode of determining the angle parameter and the length parameter according to the parameters a and b is as follows:
Figure BDA0003690293580000081
Figure BDA0003690293580000082
wherein tan theta is an angle parameter, r 2 I.e. the length parameter.
In other words, in the embodiment of the application, the angle information and the length information do not need to be directly calculated, so that the complex calculation process is reduced, and the calculation cost is saved.
And 203b, selecting a target chromaticity parameter based on the target angle range and the target length range to obtain a local chromaticity parameter, wherein the angle parameter corresponding to the target chromaticity parameter belongs to the target angle range, and the length parameter belongs to the target length range.
In a possible implementation manner, after the angle parameter and the length parameter corresponding to each pixel point are obtained, the judgment can be performed according to the angle parameter and the length parameter. Optionally, the target area corresponding to the target chromaticity range is indicated by the target angle range and the target length range. When the angle parameter belongs to the target angle range and the length parameter belongs to the target length range, the computer equipment can determine that the corresponding pixel chrominance parameter is the target chrominance parameter, namely the pixel chrominance parameter belongs to the skin color area.
Illustratively, the target angular range may be 0<tanθ<2.14 of; the target length range may be 0< 2 <36. When a is 30 and b is 20 in the pixel chromaticity parameters corresponding to the pixel point a, it is determined that tan θ is 1.5, belongs to the target angle range, and r is 2 And 13, belonging to the target length range, determining that the pixel point A belongs to the skin color area, wherein the corresponding pixel chrominance parameter is the target chrominance parameter.
After the angle parameter and the length parameter indicated by the pixel chromaticity parameter based on each pixel point are screened, part of target chromaticity parameters belonging to a target angle range and a target length range can be obtained to form a local chromaticity parameter.
And 204, performing color cast correction on the local chromaticity parameters to obtain corrected image parameters.
After the local chromaticity parameters are selected and obtained, color cast correction can be carried out on each target chromaticity parameter in the local chromaticity parameters, and corrected image parameters are obtained. For a specific color shift correction process, reference may be made to the following embodiments, which are not described in detail herein.
It should be noted that, after performing color shift correction, the computer device needs to perform color space conversion on the Lab parameters corresponding to each pixel point, and convert the Lab parameters into parameters in the CIE XYZ color space again. The corrected image parameters are XYZ parameters after color space conversion.
And step 205, performing color gamut conversion and nonlinear conversion on the corrected image parameters to obtain a target HDR image under the HDR standard.
In the SDR2HDR process, as shown in fig. 3, after color shift correction 304 is performed, color gamut conversion 305 is performed to convert XYZ parameters into HDR display linear RGB parameters under a rec.2020 color space, which is a color space used in the HDR standard. After the color gamut conversion, the HDR display linear RGB parameters are obtained, and the computer device also needs to perform HDR nonlinear conversion 306 to obtain the nonlinear RGB parameters corresponding to the target HDR image, thereby completing the SDR2HDR process.
In a possible implementation manner, when performing color shift correction on the skin color region, the color shift correction manner may be determined according to the difference of the chromaticity information. The following description will be made with reference to exemplary embodiments.
Please refer to fig. 5, which shows a flowchart of a color shift correction method according to another exemplary embodiment of the present application. The embodiment takes the method as an example for being used in computer equipment for explanation. The method comprises the following steps.
And 501, performing brightness dynamic expansion on the image parameters of the target SDR image to obtain expanded image parameters.
Step 502, selecting local chroma parameters based on chroma information indicated by image chroma parameters in the extended image parameters.
The implementation of steps 501 to 502 can refer to steps 201 to 203, which are not described again in this embodiment.
And 503, reducing each target chromaticity parameter in the local chromaticity parameters according to the target proportion to obtain a corrected image parameter.
Because the saturation is improved due to the improvement of the brightness, the parameter value corresponding to the target chromaticity parameter can be reduced, and the purpose of reducing the saturation is achieved. In one possible implementation, the computer device may decrease the parameter value corresponding to each target chromaticity parameter by a target ratio. As shown in the following formula:
a new =a*S
b new =b*S
where S is the target proportion, illustratively, the target proportion may be 80%.
And after the target chromaticity parameter is subjected to color cast correction, parameters a and b of the target chromaticity parameter are obtained after updating, and other pixel chromaticity parameters which do not belong to the target chromaticity parameter are kept unchanged, so that color cast correction is completed, a corresponding corrected image chromaticity parameter is obtained, and a corrected image parameter is determined according to the corrected image chromaticity parameter. The corrected image parameters are XYZ parameters obtained by performing color space conversion on the corrected image chromaticity parameters.
Step 504, determining a correction weight based on the chromaticity position indicated by the target chromaticity parameter, where the correction weight is in a positive correlation with an edge distance, and the edge distance is a distance between the chromaticity position and an edge corresponding to the target chromaticity range.
For different target chromaticity parameters, the chromaticity positions indicated by the different target chromaticity parameters in the Lab color space are different, and the corresponding colors have different degrees of vividness, and if the target chromaticity parameters are reduced by the same target proportion, an unnatural image after color cast correction may occur. Therefore, in another possible implementation, the computer device may determine the corresponding correction weight according to the chromaticity position indicated by the target chromaticity parameter, so as to determine the correction proportion based on the correction weight, and correct the target chromaticity parameter at different chromaticity positions in different proportions. As shown in fig. 4, the chroma position indicated by the first target chroma parameter is a first position 402, and the chroma position indicated by the second target chroma parameter is a second position 403, and the correction weight is determined according to the chroma position.
And the chroma position is related to the distance between the edges indicated by the target chroma range when determining the correction weights. If the target ratio is reduced by the same target ratio, the color of the edge of the target chromaticity range is not smooth. Illustratively, as shown in fig. 4, the second position 403 indicated by the second target chromaticity parameter is located at an edge position of the target area indicated by the target chromaticity range, which belongs to the target area, and therefore, the second target chromaticity parameter is subjected to color shift correction, for example, the second target chromaticity parameter is reduced by 80%, while the pixel chromaticity parameter located outside the edge position and at a chromaticity position adjacent to the second target chromaticity parameter is not adjusted, and there is a certain difference between the second target chromaticity parameter and the second target chromaticity parameter, and the color difference of the converted image is obvious, therefore, the correction weight can be determined according to the distance between the chromaticity position and the edge indicated by the target chromaticity range, and the closer the edge is, the lower the correction weight is, the smaller the color shift adjustment ratio is. It should be noted that the correction weight may be determined according to the minimum value of the distance between the chromaticity position and each edge indicated by the target chromaticity range.
In another possible implementation, the angle weight may be determined according to the angle parameter indicated by the target chromaticity parameter, and the length weight may be determined according to the length parameter indicated by the target chromaticity parameter, respectively, so that the correction weight is determined according to the angle weight and the length weight. This approach may include steps 504 a-504 b (not shown):
step 504a, determining an angle weight based on an angle parameter of the target chromaticity parameter, wherein the angle weight is in a positive correlation with an angle difference value, and the angle difference value is a difference value between the angle parameter and a boundary parameter of the target angle range.
In a possible embodiment, the angle weight is related to an angle difference, and the computer device may determine a corresponding relationship between the angle weight and the angle parameter according to the angle difference between the angle parameter and the boundary parameter of the target angle range, so as to avoid the problem of uneven color of the angle edge. The angle difference may be a minimum value of a difference between the angle parameter and the boundary parameter of the target angle range. Namely, the corresponding relation between the angle weight and the angle parameter is determined according to the distance between the angle weight and the target angle range. If the angle parameter is greatly different from the boundary parameter of the target angle range, the distance from the edge is far, so that the adjustment can be performed at a large reduction ratio, namely, the angle weight is large, and if the angle parameter is less different from the boundary parameter of the target angle range, the distance from the edge is close, so that the angle edge is smooth, the adjustment can be performed at a small reduction ratio, namely, the angle weight is small.
Optionally, under the condition that the angle parameter belongs to the first angle range, the angle weight corresponding to the angle parameter is determined based on the first angle curve, and the angle parameter under the first angle curve and the angle weight are in a positive correlation.
Under the condition that the angle parameter belongs to the first angle range, when the angle parameter is gradually increased, the difference value between the angle parameter and the boundary parameter of the target angle range is gradually increased, so that the angle weight corresponding to the angle parameter can be determined by using a first angle curve, the first angle curve indicates the corresponding relation between the angle parameter and the angle weight in the first angle range, the first angle curve indicates that the angle parameter and the angle weight are in positive correlation, and the angle weight is less than or equal to the weight threshold. In the case where the angle parameter belongs to the first angle range, the larger the angle parameter is, the larger the edge difference from the target angle range is, the larger the corresponding angle weight is.
Optionally, when the angle parameter belongs to a second angle range, the angle weight is determined as a weight threshold, and the second angle range is greater than the first angle range.
In the case where the angle parameter belongs to the second angle range, which is larger than the first angle range, and the difference between the second angle range and the boundary parameter of the target angle range is relatively large, the angle weight may be determined as the weight threshold, that is, the angle weight may be determined as the maximum value, and optionally, the weight threshold may be 1.
Optionally, under the condition that the angle parameter belongs to the third angle range, the angle weight corresponding to the angle parameter is determined based on the second angle curve, the angle parameter under the second angle curve and the angle weight are in a negative correlation relationship, and the third angle range is larger than the second angle range.
In the case where the angle parameter belongs to the third angle range, the third angle range is larger than the second angle range, and in the case where the angle parameter gradually increases, the difference between the third angle range and the boundary parameter of the target angle range gradually decreases, and therefore, the angle weight corresponding to the angle parameter can be determined by a second angle curve indicating the correspondence between the angle parameter and the angle weight in the third angle range, which indicates that the angle parameter and the angle weight are in a negative correlation, and the angle weight is less than or equal to the weight threshold. In the case that the angle parameter belongs to the third angle range, the larger the angle parameter is, the smaller the edge difference value with the target angle range is, and the smaller the corresponding angle weight is.
Illustratively, the manner of determining the angular weight based on the angular parameter is as follows:
Figure BDA0003690293580000121
wherein f is θ I.e. the angular weight. The first angle range is 0<tanθ<0.132; the second angle range is that tan theta is more than or equal to 0.132 and less than or equal to 1.73; third angle of rotationIn the range of 1.73<tanθ<2.14。
Step 504b, determining a length weight based on the length parameter of the target chromaticity parameter, wherein the length weight is in positive correlation with a length difference value, and the length difference value is a difference value between the length parameter and a boundary parameter of the target length range.
Similarly, the length weight is related to the length difference, and the computer device can determine the corresponding relation between the length weight and the length parameter according to the length difference between the length parameter and the boundary parameter of the target length range, so that the problem of unsmooth color of the length edge is avoided. The length difference may be a minimum value of a difference between the length parameter and the target length range boundary parameter. Namely, the corresponding relation between the length weight and the length parameter is determined according to the distance between the target length range and the length weight. If the difference between the length parameter and the boundary parameter of the target length range is large, the distance from the edge is far, so that the adjustment can be performed at a large reduction ratio, namely, the length weight is large, and if the difference between the length parameter and the boundary parameter of the target length range is small, the distance from the edge is near, so that the length edge is smooth, the adjustment can be performed at a small reduction ratio, namely, the length weight is small.
Optionally, when the length parameter belongs to the first length range, the length weight corresponding to the length parameter is determined based on the first length curve, and the length parameter under the first length curve and the length weight are in a positive correlation relationship.
In the case that the length parameter belongs to the first length range, when the length parameter is gradually increased, the difference between the length parameter and the boundary parameter of the target length range is gradually increased, so that the length weight corresponding to the length parameter can be determined by a first length curve, the first length curve indicates the corresponding relationship between the length parameter and the length weight in the first length range, the first length curve indicates that the length parameter and the length weight are in positive correlation, and the length weight is less than or equal to the weight threshold. In the case where the length parameter falls within the first length range, the greater the length parameter, the greater the edge difference from the target length range, and the greater the corresponding length weight.
Optionally, when the length parameter belongs to a second length range, the length weight is determined as a weight threshold, and the second length range is greater than the first length range.
In the case that the length parameter belongs to the second length range, which is larger than the first length range, and has a relatively large difference with the boundary parameter of the target length range, therefore, the length weight may be determined as the weight threshold, that is, the length weight may be determined as the maximum value, and optionally, the weight threshold may be 1.
And under the condition that the length parameter belongs to a third length range, determining the length weight corresponding to the length parameter based on a second length curve, wherein the length parameter and the length weight under the second length curve are in a negative correlation relationship, and the third angle range is larger than the second angle range.
In the case where the length parameter belongs to a third length range, the third length range is larger than the second length range, and in the case where the length parameter gradually increases, the difference between the third length range and the boundary parameter of the target length range gradually decreases, and therefore, the length weight corresponding to the length parameter may be determined with a second length curve indicating the correspondence relationship between the length parameter and the length weight in the third length range, which indicates that the length parameter and the length weight are in a negative correlation relationship, and the length weight is less than or equal to the weight threshold. In the case where the length parameter falls within the third length range, the larger the length parameter, the smaller the edge difference from the target length range, and the smaller the corresponding length weight.
Illustratively, the way the length weight is determined based on the length parameter is as follows:
Figure BDA0003690293580000131
wherein the content of the first and second substances,
Figure BDA0003690293580000132
is a length weight. The first length range is 0<r 2 <1, the second length range is r is more than or equal to 1 2 Less than or equal to 30, and the third length range is 30<r 2 <36。
Step 504c, determining a correction weight based on the angle weight and the length weight.
After obtaining the angle weight and the correction weight, the computer device may determine the correction weight based on the angle weight and the length weight, and the correction weight may be a product of the angle weight and the length weight.
And 505, reducing the target chromaticity parameters based on the correction weight to obtain corrected image parameters, wherein the correction weight and the reduction ratio are in positive correlation.
The computer device reduces the target chromaticity parameter according to the correction weight, wherein the correction weight is used for adjusting the reduction proportion of the reduced parameter value, and the higher the correction weight is, the larger the reduction proportion is.
Optionally, based on the correction weight, the target chromaticity parameter is reduced in the following manner:
Figure BDA0003690293580000141
a new =a*S
b new =b*S
wherein S is the reduction ratio.
Step 506, performing color gamut conversion and nonlinear conversion on the corrected image parameters to obtain a target HDR image under the HDR standard.
In the embodiment of this step, reference may be made to step 205, which is not described in detail in this embodiment.
In the embodiment, the corresponding angle weight and the length weight are respectively determined according to the angle parameter and the length parameter, when the angle parameter gradually approaches the target angle range, the smaller the angle weight is, so that the angle edge is smooth, when the length parameter gradually approaches the target length range, the smaller the length weight is, so that the length edge is smooth, the image after color cast adjustment is more natural, and the visual effect is improved.
In the above embodiment, when the target chromaticity parameter is adjusted, the correction weight is determined only according to the chromaticity parameter, and the target chromaticity parameter is corrected based on the correction weight. In a possible case, when the pixel chromaticity parameter belongs to the target chromaticity range, the luminance value of the corresponding pixel point may be very small, that is, the pixel point is dark, and in this case, the pixel chromaticity parameter may not belong to the skin color area. The method comprises the following steps:
step one, determining a brightness weight based on a target brightness parameter corresponding to each target chromaticity parameter in local chromaticity parameters, wherein the brightness weight and the pixel brightness are in a positive correlation relationship, and the brightness weight and the reduction ratio are in a positive correlation relationship.
The computer equipment can determine the brightness weight according to the target brightness parameter of the pixel point corresponding to the target chromaticity parameter, and under the condition that the pixel brightness is darker, the probability that the pixel brightness is a non-skin color area is higher, so that the brightness weight is correspondingly lower, and the reduction proportion of the target chromaticity parameter is lower.
Optionally, the brightness weight is determined based on the target brightness parameter L in the following manner:
Figure BDA0003690293580000151
wherein f is L As a luminance weight, L ref Is a reference luminance value, L ref =100。
In addition, the luminance weight is less than or equal to 1.
And secondly, reducing each target chromaticity parameter in the local chromaticity parameters based on the brightness weight and the correction weight to obtain corrected image parameters.
In one possible embodiment, the computer device determines a reduction ratio corresponding to the target chromaticity parameter based on the luminance weight and the correction weight, thereby correcting the target chromaticity parameter, and determines a corrected image parameter based on the corrected parameter.
Based on the luminance weight and the correction weight, the reduction ratio is determined as follows:
Figure BDA0003690293580000152
schematically, as shown in fig. 6, the process of color shift correction includes: firstly, color space conversion 601 is carried out, XYZ parameters in a CIE XYZ space are converted into Lab parameters in a Lab color space, then color cast correction 602 is carried out based on the Lab parameters, in the color cast correction process, whether correction is needed or not is determined according to chromaticity parameters a and b, namely whether the correction belongs to a target angle range and a target length range is judged according to composed angle parameters and length parameters, and the correction is determined under the condition that the correction belongs to the target angle range and belongs to the target length range. During correction, the angle weight and the length weight are respectively determined according to the parameters a and b, the brightness weight is determined according to the parameter L, finally, the reduction ratio is determined according to the angle weight, the length weight, the brightness weight and the like, and color cast correction is carried out according to the reduction ratio. After the correction, the color space conversion 603 is performed to convert Lab parameters in the Lab color space into XYZ parameters in the CIE XYZ space.
In this embodiment, when the target chromaticity parameter is corrected, the luminance parameter is introduced at the same time, and the luminance weight is determined based on the luminance parameter, so that the accuracy of color shift correction is further improved according to the luminance information.
Referring to fig. 7, a block diagram of a color shift correction apparatus according to an exemplary embodiment of the present application is shown. The device includes:
a dynamic extension module 701, configured to perform luminance dynamic extension on image parameters of a target SDR image to obtain extended image parameters, where the target SDR image includes a portrait;
a parameter selecting module 702, configured to select a local chroma parameter based on chroma information indicated by an image chroma parameter in the extended image parameter, where the local chroma parameter is a chroma parameter corresponding to a skin color area of the portrait;
a color shift correction module 703, configured to perform color shift correction on the local chromaticity parameter to obtain a corrected image parameter;
an image generating module 704, configured to generate a target HDR image corresponding to the target SDR image based on the corrected image parameter.
Optionally, the parameter selecting module 702 is further configured to:
performing color space conversion on the extended image parameters to obtain image chromaticity parameters in Lab space, wherein the image chromaticity parameters are used for indicating image color information and comprise pixel chromaticity parameters corresponding to all pixel points;
and selecting a target chromaticity parameter from the pixel chromaticity parameters based on a target chromaticity range to obtain the local chromaticity parameters, wherein chromaticity information indicated by the target chromaticity parameters belongs to the target chromaticity range.
Optionally, the parameter selecting module 702 is further configured to:
determining an angle parameter and a length parameter corresponding to each pixel chromaticity parameter, wherein the angle parameter and the length parameter are used for indicating the chromaticity position of chromaticity in the Lab color space, and the angle parameter and the length parameter are determined according to an a channel parameter and a b channel parameter in the pixel chromaticity parameters;
and selecting the target chromaticity parameters based on a target angle range and a target length range to obtain the local chromaticity parameters, wherein the angle parameters corresponding to the target chromaticity parameters belong to the target angle range, and the length parameters belong to the target length range.
Optionally, the color shift correction module 703 is further configured to:
reducing each target chromaticity parameter in the local chromaticity parameters by a target proportion to obtain the corrected image parameters;
or the like, or, alternatively,
determining a correction weight based on the chromaticity position indicated by the target chromaticity parameter, wherein the correction weight is in positive correlation with an edge distance, and the edge distance is a distance between the chromaticity position and an edge corresponding to the target chromaticity range;
and based on the correction weight, reducing the target chromaticity parameter to obtain the corrected image parameter, wherein the correction weight and the reduction proportion are in positive correlation.
Optionally, the color shift correction module 703 is further configured to:
determining an angle weight based on the angle parameter of the target chromaticity parameter, wherein the angle weight is in positive correlation with an angle difference value, and the angle difference value is a difference value between the angle parameter and a boundary parameter of the target angle range;
determining a length weight based on the length parameter of the target chromaticity parameter, wherein the length weight is in positive correlation with a length difference value, and the length difference value is a difference value between the length parameter and a boundary parameter of the target length range;
determining the correction weight based on the angle weight and the length weight.
Optionally, the color shift correction module 703 is further configured to:
determining the angle weight corresponding to the angle parameter based on a first angle curve under the condition that the angle parameter belongs to a first angle range, wherein the angle parameter and the angle weight under the first angle curve are in positive correlation;
determining the angle weight as a weight threshold value under the condition that the angle parameter belongs to a second angle range, wherein the second angle range is larger than the first angle range;
and under the condition that the angle parameter belongs to a third angle range, determining the angle weight corresponding to the angle parameter based on a second angle curve, wherein the angle parameter and the angle weight under the second angle curve are in a negative correlation relationship, and the third angle range is larger than the second angle range.
Optionally, the color shift correction module 703 is further configured to:
determining the length weight corresponding to the length parameter based on a first length curve under the condition that the length parameter belongs to a first length range, wherein the length parameter and the length weight under the first length curve are in positive correlation;
determining the length weight as a weight threshold value if the length parameter belongs to a second length range, the second length range being greater than the first length range;
and under the condition that the length parameter belongs to a third length range, determining the length weight corresponding to the length parameter based on a second length curve, wherein the length parameter and the length weight under the second length curve are in a negative correlation relationship, and the third angle range is larger than the second angle range.
Optionally, the color shift correction module 703 is further configured to:
determining a brightness weight based on a target brightness parameter corresponding to each target chromaticity parameter in the local chromaticity parameters, wherein the brightness weight and the pixel brightness are in a positive correlation relationship, and the brightness weight and the reduction ratio are in a positive correlation relationship;
and reducing each target chromaticity parameter in the local chromaticity parameters based on the brightness weight and the correction weight to obtain the corrected image parameters.
Optionally, the image generating module 704 is further configured to:
and performing color gamut conversion and nonlinear conversion on the corrected image parameters to obtain the target HDR image under the HDR standard.
To sum up, in the embodiment of the present application, after performing luminance dynamic expansion on an image parameter of a target SDR image, a computer device may determine a local chrominance parameter corresponding to a skin color region in the target SDR image based on chrominance information indicated by the chrominance parameter in the expanded image parameter, so as to perform color cast correction on the local chrominance parameter, thereby reducing saturation of the skin color region. Namely, the computer equipment can determine the skin color area based on the chromaticity information indicated by the image chromaticity parameters after the brightness expansion, so that the color cast correction is carried out on the skin color area, the problem of higher saturation of the skin color area caused by the brightness improvement is solved, and the visual effect is improved. And the skin color area can be corrected only, so that the influence on other areas is avoided.
It should be noted that: the device provided in the above embodiment is only illustrated by dividing the functional modules, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and details of the implementation process are referred to as method embodiments, which are not described herein again.
An embodiment of the present application provides a computer device, which includes a processor and a memory, where at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the color shift correction method according to the above aspect.
Embodiments of the present application provide a computer-readable storage medium having at least one instruction, at least one program, a set of codes, or a set of instructions stored therein, which are loaded and executed by a processor to implement the color shift correction method according to the above aspect.
Embodiments of the present application provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the color cast correction method provided in the various alternative implementations of the above aspect.
Those skilled in the art will recognize that, in one or more of the examples described above, the functions described in the embodiments of the present application may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.

Claims (13)

1. A method of color shift correction, the method comprising:
carrying out brightness dynamic expansion on image parameters of a target SDR image to obtain expanded image parameters, wherein the target SDR image comprises a portrait;
selecting a local chromaticity parameter based on chromaticity information indicated by an image chromaticity parameter in the extended image parameter, wherein the local chromaticity parameter is a chromaticity parameter corresponding to a skin color area of the portrait;
carrying out color cast correction on the local chromaticity parameters to obtain corrected image parameters;
and generating a target HDR image corresponding to the target SDR image based on the corrected image parameters.
2. The method of claim 1, wherein selecting the local chroma parameter based on the chroma information indicated by the image chroma parameter in the extended image parameter comprises:
performing color space conversion on the extended image parameters to obtain image chromaticity parameters in Lab space, wherein the image chromaticity parameters are used for indicating image color information and comprise pixel chromaticity parameters corresponding to all pixel points;
and selecting a target chromaticity parameter from the pixel chromaticity parameters based on a target chromaticity range to obtain the local chromaticity parameters, wherein chromaticity information indicated by the target chromaticity parameters belongs to the target chromaticity range.
3. The method of claim 2, wherein said selecting a target chroma parameter from each of the pixel chroma parameters based on a target chroma range to obtain the local chroma parameter comprises:
determining an angle parameter and a length parameter corresponding to each pixel chromaticity parameter, wherein the angle parameter and the length parameter are used for indicating the chromaticity position of chromaticity in the Lab color space, and the angle parameter and the length parameter are determined according to an a channel parameter and a b channel parameter in the pixel chromaticity parameters;
and selecting the target chromaticity parameters based on a target angle range and a target length range to obtain the local chromaticity parameters, wherein the angle parameters corresponding to the target chromaticity parameters belong to the target angle range, and the length parameters belong to the target length range.
4. The method according to claim 3, wherein said performing color shift correction on the local chrominance parameters to obtain corrected image parameters comprises:
reducing each target chromaticity parameter in the local chromaticity parameters by a target proportion to obtain the corrected image parameters;
or the like, or, alternatively,
determining a correction weight based on the chromaticity position indicated by the target chromaticity parameter, wherein the correction weight is in positive correlation with an edge distance, and the edge distance is a distance between the chromaticity position and an edge corresponding to the target chromaticity range;
and based on the correction weight, reducing the target chromaticity parameter to obtain the corrected image parameter, wherein the correction weight and the reduction proportion are in positive correlation.
5. The method of claim 4, wherein determining correction weights based on the chroma position indicated by the target chroma parameter comprises:
determining an angle weight based on the angle parameter of the target chromaticity parameter, wherein the angle weight is in positive correlation with an angle difference value, and the angle difference value is a difference value between the angle parameter and a boundary parameter of the target angle range;
determining a length weight based on the length parameter of the target chromaticity parameter, wherein the length weight is in positive correlation with a length difference value, and the length difference value is a difference value between the length parameter and a boundary parameter of the target length range;
determining the corrective weight based on the angle weight and the length weight.
6. The method of claim 5, wherein determining an angular weight based on the angular parameter of the target chromaticity parameter comprises:
determining the angle weight corresponding to the angle parameter based on a first angle curve under the condition that the angle parameter belongs to a first angle range, wherein the angle parameter and the angle weight under the first angle curve are in positive correlation;
determining the angle weight as a weight threshold value under the condition that the angle parameter belongs to a second angle range, wherein the second angle range is larger than the first angle range;
and under the condition that the angle parameter belongs to a third angle range, determining the angle weight corresponding to the angle parameter based on a second angle curve, wherein the angle parameter under the second angle curve and the angle weight are in a negative correlation relationship, and the third angle range is larger than the second angle range.
7. The method of claim 5, wherein determining a length weight based on the length parameter of the target chroma parameter comprises:
determining the length weight corresponding to the length parameter based on a first length curve when the length parameter belongs to a first length range, wherein the length parameter under the first length curve and the length weight are in positive correlation;
determining the length weight as a weight threshold value if the length parameter belongs to a second length range, the second length range being greater than the first length range;
and under the condition that the length parameter belongs to a third length range, determining the length weight corresponding to the length parameter based on a second length curve, wherein the length parameter and the length weight under the second length curve are in a negative correlation relationship, and the third angle range is larger than the second angle range.
8. The method of claim 4, wherein performing color shift correction on the local chrominance parameters to obtain corrected image parameters comprises:
determining a brightness weight based on a target brightness parameter corresponding to each target chromaticity parameter in the local chromaticity parameters, wherein the brightness weight is in positive correlation with the brightness of the pixel, and the brightness weight is in positive correlation with the reduction ratio;
and reducing each target chromaticity parameter in the local chromaticity parameters based on the brightness weight and the correction weight to obtain the corrected image parameters.
9. The method as claimed in any one of claims 1 to 8, wherein the generating a target HDR image corresponding to the target SDR image based on the corrected image parameters comprises:
and performing color gamut conversion and nonlinear conversion on the corrected image parameters to obtain the target HDR image under the HDR standard.
10. A color shift correction apparatus, characterized in that the apparatus comprises:
the dynamic expansion module is used for carrying out brightness dynamic expansion on the image parameters of a target SDR image to obtain expanded image parameters, wherein the target SDR image comprises a portrait;
a parameter selection module, configured to select a local chroma parameter based on chroma information indicated by an image chroma parameter in the extended image parameter, where the local chroma parameter is a chroma parameter corresponding to a skin color area of the portrait;
the color cast correction module is used for performing color cast correction on the local chromaticity parameters to obtain corrected image parameters;
and the image generation module is used for generating a target HDR image corresponding to the target SDR image based on the corrected image parameters.
11. A computer device comprising a processor and a memory, wherein at least one program is stored in the memory, and wherein the at least one program is loaded and executed by the processor to implement the color shift correction method according to any one of claims 1 to 9.
12. A computer-readable storage medium, in which at least one program is stored, the at least one program being loaded and executed by a processor to implement the color shift correction method according to any one of claims 1 to 9.
13. A computer program product, characterized in that it comprises computer instructions stored in a computer-readable storage medium, from which a processor of a computer device reads the computer instructions, the processor executing the computer instructions to implement the color shift correction method according to any one of claims 1 to 9.
CN202210660459.9A 2022-06-13 2022-06-13 Color shift correction method, device, equipment, storage medium and program product Pending CN114999363A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210660459.9A CN114999363A (en) 2022-06-13 2022-06-13 Color shift correction method, device, equipment, storage medium and program product
PCT/CN2023/096662 WO2023241339A1 (en) 2022-06-13 2023-05-26 Color cast correction method and apparatus, device, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210660459.9A CN114999363A (en) 2022-06-13 2022-06-13 Color shift correction method, device, equipment, storage medium and program product

Publications (1)

Publication Number Publication Date
CN114999363A true CN114999363A (en) 2022-09-02

Family

ID=83032291

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210660459.9A Pending CN114999363A (en) 2022-06-13 2022-06-13 Color shift correction method, device, equipment, storage medium and program product

Country Status (2)

Country Link
CN (1) CN114999363A (en)
WO (1) WO2023241339A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023241339A1 (en) * 2022-06-13 2023-12-21 广州市百果园信息技术有限公司 Color cast correction method and apparatus, device, storage medium and program product

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008257680A (en) * 2007-11-06 2008-10-23 Mitsubishi Electric Corp Image processor and program storage medium
EP3460747B1 (en) * 2017-09-25 2023-09-06 Vestel Elektronik Sanayi ve Ticaret A.S. Method, processing system and computer program for processing an image
CN111583127B (en) * 2020-04-03 2023-08-15 浙江大华技术股份有限公司 Face skin color correction method, device, computer equipment and readable storage medium
CN113518185B (en) * 2020-12-30 2022-08-05 腾讯科技(深圳)有限公司 Video conversion processing method and device, computer readable medium and electronic equipment
CN114999363A (en) * 2022-06-13 2022-09-02 百果园技术(新加坡)有限公司 Color shift correction method, device, equipment, storage medium and program product

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023241339A1 (en) * 2022-06-13 2023-12-21 广州市百果园信息技术有限公司 Color cast correction method and apparatus, device, storage medium and program product

Also Published As

Publication number Publication date
WO2023241339A1 (en) 2023-12-21

Similar Documents

Publication Publication Date Title
US10019785B2 (en) Method of processing high dynamic range images using dynamic metadata
KR101717457B1 (en) Global display management based light modulation
KR101481984B1 (en) Method and apparatus for image data transformation
US10129511B2 (en) Image processing apparatus, image projection apparatus, and image processing method
US8902247B2 (en) Method and apparatus for brightness-controlling image conversion
CN109274985B (en) Video transcoding method and device, computer equipment and storage medium
CN107154059A (en) A kind of high dynamic range video processing method
US20090009525A1 (en) Color Adjustment Device and Method
US8189909B2 (en) Color temperature conversion method and apparatus having luminance correction conversion function
WO2004032524A1 (en) Image processing device
KR20090087084A (en) Gamut adaptation
CN114866809B (en) Video conversion method, apparatus, device, storage medium, and program product
US7613338B2 (en) Image processing method and apparatus, program, and storage medium
JP2006229925A (en) Dynamic image saturation enhancement apparatus
US8064693B2 (en) Methods of and apparatus for adjusting colour saturation in an input image
US20100156956A1 (en) Grayscale characteristic for non-crt displays
WO2023241339A1 (en) Color cast correction method and apparatus, device, storage medium and program product
US8964850B2 (en) Method, apparatus and system for converging images encoded using different standards
WO2018114509A1 (en) Method of color gamut mapping input colors of an input ldr content into output colors forming an output hdr content
JP2006033212A (en) Video signal processing apparatus and television apparatus
US20230388465A1 (en) Chroma adjustment method, electronic device and readable storage medium
CN116167950B (en) Image processing method, device, electronic equipment and storage medium
Hui Real-Time Color Enhancement Method Used for Intelligent Mobile Terminals
CN115176469A (en) Improved HDR color processing for saturated colors
Safaee-Rad et al. Comparative performance analysis of two picture adjustment methods: HSV vs. YCbCr

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination