Image processing method and device, electronic equipment and readable storage medium
By determining the pixel overflow position in image processing and calculating the fusion coefficient and updating the pixel value, the problem of color overflow in image processing in bars, stages and other scenes is solved, detail loss is restored, and image hierarchy and atmosphere are enhanced.
Patent Information
- Application Number
- CN202410945573.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-07-15
AI Technical Summary
In bars, stages and other scenes, due to the difference between the light environment and conventional scenes, there is serious color overflow during the image signal processing of electronic devices, resulting in loss of detail and sense of layering of image content, and the atmosphere of the shooting scene cannot be presented well feel.
By determining the pixel overflow position in image processing, obtaining the pixel values of the overflow and unoverflowed boundary areas, calculating the fusion coefficients of the target brightness difference and the degree of overflow, updating the pixel values to restore details, prevent artifacts, and improving image quality.
While maintaining the hue, the loss of detail caused by overflow is restored, the sense of image hierarchy is enhanced, and the atmosphere of the stage and bar scenes is more realistically restored, and artifacts are prevented from appearing.
Smart Images

Figure CN119011740A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of image technology, and specifically relates to an image processing method, device, electronic device and readable storage medium. Background Art
[0002] Electronic devices are used more and more frequently in daily life photography, and their usage scenarios are becoming more and more extensive.
[0003] For example, users have an increasing demand for photography in scenes such as bars and stages, while some concerts, plays, dramas, crosstalk theaters, and other stage scenes restrict the use of professional equipment such as cameras. Therefore, mobile phones have gradually become an important device for photography in such scenes due to their convenience. Since the light environment in scenes such as bars and stages is quite different from that in conventional scenes, the processing results of the image signal processing (ISP) process of electronic devices in such scenes often have serious color overflow, resulting in the loss of image content details, a decrease in the sense of hierarchy, and an inability to better present the atmosphere of the shooting scene.
[0004] It can be seen that in the related art, due to the color overflow phenomenon in the image processing process, the image content details are lost. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide an image processing method that can solve the problem of loss of image content details due to color overflow in the image processing process.
[0006] In a first aspect, an embodiment of the present application provides an image processing method, the method comprising: after performing target processing on a first image, determining a pixel overflow position in the first image; obtaining a first pixel value of the pixel overflow position, a second pixel value of a truncated overflow position, and a third pixel value of a non-overflow boundary area; based on the first pixel value, the second pixel value, and the third pixel value, obtaining a first fusion coefficient corresponding to a target brightness difference and a second fusion coefficient corresponding to an overflow degree; wherein the target brightness difference indicates a brightness difference between the pixel overflow position and the non-overflow boundary area; updating the first pixel value based on the first fusion coefficient and the second fusion coefficient to obtain a second image.
[0007] In second aspect, an embodiment of the present application provides an image processing device, which includes: a determination module, used to determine a pixel overflow position in the first image after target processing is performed on the first image; an acquisition module, used to acquire a first pixel value of the pixel overflow position, a second pixel value of the truncated overflow position, and a third pixel value of a non-overflow boundary area; a processing module, used to obtain a first fusion coefficient corresponding to a target brightness difference and a second fusion coefficient corresponding to an overflow degree based on the first pixel value, the second pixel value and the third pixel value; wherein the target brightness difference indicates a brightness difference between the pixel overflow position and the non-overflow boundary area; a first update module, used to update the first pixel value based on the first fusion coefficient and the second fusion coefficient to obtain a second image.
[0008] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps described in the first aspect are implemented.
[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0010] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0011] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0012] In an embodiment of the present application, after the first image is subjected to target processing, the pixel overflow position in the first image is determined, the initial pixel value of the pixel overflow position is retained to obtain the corresponding first pixel value, the initial pixel value of the pixel overflow position is truncated to obtain the corresponding second pixel value, and the corresponding third pixel value is determined in the non-overflow boundary area after truncation. Then, according to the first pixel value, the second pixel value, and the third pixel value, the first fusion coefficient corresponding to the brightness difference between the pixel overflow position and the non-overflow boundary area is obtained, and the second fusion coefficient corresponding to the overflow degree is obtained, so that the first pixel value is updated based on the first fusion coefficient and the second fusion coefficient, and the updated first pixel value corresponds to the second image. It can be seen that based on the embodiment of the present application, the brightness in the overflow state and the truncated state is fused, so that the detail loss caused by the overflow can be restored while maintaining the hue, and at the same time, artifacts can be prevented to improve image quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 is one of the flow charts of the image processing method of some embodiments of the present application;
[0014] Figure 2 is a schematic diagram illustrating an image processing method of some embodiments of the present application;
[0015] Figure 3 This is the second flowchart of the image processing method of some embodiments of the present application;
[0016] Figure 4 is a block diagram of an image processing device according to some embodiments of the present application;
[0017] Figure 5 is a schematic diagram of the structure of an electronic device in some embodiments of the present application;
[0018] Figure 6 It is a schematic diagram of the hardware structure of an electronic device of some embodiments of the present application. DETAILED DESCRIPTION
[0019] The following will be combined with the drawings of the embodiments of the present application to clearly describe the technical solutions of the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present application belong to the scope of protection of this application.
[0020] The terms "first", "second", etc. in the specification of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are usually a class, and the number of objects is not limited. For example, the target object can be one or more. In addition, "and / or" in the specification represents at least one of the connected objects, and the character " / " generally represents that the objects associated before and after are in an "or" relationship.
[0021] The image processing method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0022] like Figure 1 FIG. 1 is a flowchart of an image processing method according to an embodiment of the present application. The method is applied to an electronic device as an example. The method includes:
[0023] Step 110: After performing target processing on the first image, determine the pixel overflow position in the first image.
[0024] For example, in the first image after the target processing, the actual pixel value at each position is divided by the maximum pixel value corresponding to the bit depth to obtain the normalized result. For the sake of distinction, the normalized value here is defined as the initial pixel value. Taking the bit depth of 8 bits as an example, the corresponding maximum pixel value is: 2 8 -1=255, if the initial pixel value is greater than 1 or less than 0, it corresponds to the pixel overflow position.
[0025] Step 120: Obtain a first pixel value at a pixel overflow position, a second pixel value at a truncated overflow position, and a third pixel value at a non-overflow boundary area.
[0026] First, the first pixel value of the pixel overflow position is retained, wherein the first pixel value is obtained based on the initial pixel value of the pixel overflow position.
[0027] Then, the initial pixel value at the pixel overflow position is truncated, and the second pixel value is obtained based on the truncated initial pixel value. For reference, the truncation method is as shown in formula (1):
[0028] I c =max(min(I o ,1),0) (1)
[0029] In formula (1), I o Represents the initial pixel value, I c Indicates the initial pixel value for truncation.
[0030] It can be seen that based on formula (1), pixel values greater than 1 or less than 0 are truncated.
[0031] It should be noted that, for the pixel overflow position in the first image, it corresponds to the first pixel value before truncation and corresponds to the second pixel value after truncation.
[0032] Further, referring to formula (2):
[0033]
[0034] In formula (2), R represents the red channel value, G represents the green channel value, B represents the blue channel value, and I b Represents the pixel value of the non-overflowing boundary area after truncation, and the pixel value here is also a normalized value. After the three channels are truncated respectively, the three color channel values of the non-overflowing boundary area after truncation are 0 or 1, so as to obtain the third pixel value based on the pixel value of the non-overflowing boundary area.
[0035] Step 130: Based on the first pixel value, the second pixel value and the third pixel value, obtain a first fusion coefficient corresponding to the target brightness difference and a second fusion coefficient corresponding to the overflow degree, wherein the target brightness difference indicates the brightness difference between the pixel overflow position and the non-overflow boundary area.
[0036] In this step, firstly, a first fusion coefficient corresponding to a target brightness difference is calculated, where the target brightness difference indicates a brightness difference between a pixel overflow position and a non-overflow boundary area; and secondly, a second fusion coefficient corresponding to an overflow degree is calculated.
[0037] In some embodiments, the smaller the brightness difference between the pixel overflow position and the non-overflow boundary area, the closer the brightness of the pixel overflow position is to the non-overflow boundary area, and in the subsequent fusion algorithm, the greater the weight of the brightness of the pixel overflow position.
[0038] In some embodiments, the overflow degree is measured by the difference between the first pixel value and the second pixel value. The greater the overflow degree, the greater the weight of the brightness of the pixel overflow position in the subsequent fusion algorithm.
[0039] Step 140: Update the first pixel value based on the first fusion coefficient and the second fusion coefficient to obtain a second image.
[0040] In this step, based on the overflow degree and the brightness distribution of the pixel overflow position, weighted fusion is calculated to fuse the brightness in the overflow state and the truncated state, and then the first pixel value is updated according to the fusion result, thereby preventing artifacts while restoring the detail loss caused by the overflow.
[0041] Wherein, when the first pixel value is updated, a second image is obtained.
[0042] In an embodiment of the present application, after the first image is subjected to target processing, the pixel overflow position in the first image is determined, the initial pixel value of the pixel overflow position is retained to obtain the corresponding first pixel value, the initial pixel value of the pixel overflow position is truncated to obtain the corresponding second pixel value, and the corresponding third pixel value is determined in the non-overflow boundary area after truncation. Then, according to the first pixel value, the second pixel value, and the third pixel value, the first fusion coefficient corresponding to the brightness difference between the pixel overflow position and the non-overflow boundary area is obtained, and the second fusion coefficient corresponding to the overflow degree is obtained, so that the first pixel value is updated based on the first fusion coefficient and the second fusion coefficient, and the updated first pixel value corresponds to the second image. It can be seen that based on the embodiment of the present application, the brightness in the overflow state and the truncated state is fused, so that the detail loss caused by the overflow can be restored while maintaining the hue, and at the same time, artifacts can be prevented to improve image quality.
[0043] In the process of the image processing method of another embodiment of the present application, step 120 includes:
[0044] Sub-step A1: scaling the pixel value at the pixel overflow position according to the scene brightness to obtain a first pixel value.
[0045] Sub-step A2: scaling the pixel value at the truncation overflow position according to the scene brightness to obtain a second pixel value.
[0046] Sub-step A3: scaling the pixel values of the area that does not overflow the boundary according to the scene brightness to obtain a third pixel value.
[0047] In some embodiments, the scene brightness L is collected using an ambient light sensor.
[0048] It should be noted that the process of converting the linear RGB space to the Jzazbz uniform color space is: RGB→XYZ→LMS→Jzazbz, RGB→XYZ is completed through linear transformation. Therefore, the normalized RGB value is multiplied by the scene brightness. After conversion to the XYZ space, Y is the average brightness of the scene, which corresponds to its physical meaning, rather than the normalized value. Therefore, the color distribution of the scene can be restored more realistically in the Jzazbz space.
[0049] In some embodiments, the scaling method is as shown in formula (3):
[0050] I=L×I (3)
[0051] Wherein, in formula (3), I on the right side of the formula represents the pixel value before scaling, which is a normalized value, L represents the scene brightness, and I on the left side of the formula represents the pixel value after scaling, which can represent the first pixel value, the second pixel value, and the third pixel value, respectively.
[0052] For example, the initial pixel value of the pixel overflow position is multiplied by the scene brightness to obtain a first pixel value; the initial pixel value is truncated and multiplied by the scene brightness to obtain a second pixel value; finally, the pixel value of the non-overflow boundary area is multiplied by the scene brightness to obtain a third pixel value.
[0053] In this embodiment, the normalized value is scaled based on the scene brightness measured by the ambient light sensor so that the scaling result can be subsequently converted to a uniform color space to truly restore the color distribution of the scene to ensure that the brightness is the same as perceived by the human eye.
[0054] In the process of the image processing method of another embodiment of the present application, after the step of updating the first pixel value based on the first fusion coefficient and the second fusion coefficient, the method further includes:
[0055] Step B1: updating the pixel value at the pixel overflow position according to the scene brightness and the updated first pixel value.
[0056] In this embodiment, the inverse operation of formula (3) is used to restore the result to the normalized form before scaling. The inverse operation of formula (3) refers to formula (4):
[0057] I m =L a ×I m (4)
[0058] In formula (4), the I on the right side of the formula is m represents the first pixel value after update, L a Represents the inverse of scene brightness, i.e. 1 / L. The I on the left side of the formula m Represents the updated result in normalized form corresponding to the pixel overflow position.
[0059] Furthermore, the updated pixel value of the pixel overflow position is a normalized value, which is multiplied by 255 to obtain the values of each color channel of the pixel overflow position.
[0060] In this embodiment, after the normalized values of the pixels are scaled based on the scene brightness, an inverse operation is required to eliminate the scaling effect so that the values can be restored to the values of each color channel.
[0061] In the process of the image processing method of another embodiment of the present application, step 130 includes:
[0062] Sub-step C1: Based on the first pixel value, obtain the brightness, red-green color components, and yellow-blue color components corresponding to the first pixel value; based on the second pixel value, obtain the brightness, red-green color components, and yellow-blue color components corresponding to the second pixel value; based on the third pixel value, obtain the brightness, red-green color components, and yellow-blue color components corresponding to the third pixel value.
[0063] In this step, the first pixel value is mapped to the Jzazbz uniform color space, and the brightness J corresponding to the first pixel value can be obtained. o , red and green color components a o and yellow-blue color component b o ; Mapping the second pixel value to the Jzazbz uniform color space, the second brightness J corresponding to the second pixel value can be obtained c , red and green color components a c and yellow-blue color component b c ; Map the third pixel value to the Jzazbz uniform color space, and you can get the third brightness J corresponding to the third pixel value b , red and green color components a b and yellow-blue color component b b .
[0064] Further, according to the red and green color components a o and yellow-blue color component b o , calculate the chroma C corresponding to the first pixel value o and Hue H o ; According to the red and green color components a c and yellow-blue color component b c , calculate the chroma C corresponding to the second pixel value c and Hue H c ; According to the red and green color components a c and yellow-blue color component b c , calculate the chroma C corresponding to the third pixel value b and Hue H b .
[0065] Among them, the Jzazbz uniform color space was proposed in 2017 and is suitable for illumination of 0.001 to 10,000 cd / m 2 A high dynamic range scene with 3 components of brightness J z , red and green color components a z , yellow-blue color component b z , based on which lightness J, chroma C, and hue H can be calculated.
[0066] In some embodiments, the Jzazbz uniform color space has better hue preservation and color uniformity, but the mapping between RGB and Jzazbz space is relatively complex. Other uniform color spaces with simpler operations, such as Oklab, may be used.
[0067] Sub-step C2: Determine the first brightness according to the hue corresponding to the third pixel value and the preset correspondence relationship of the non-overflow boundary area, wherein the hue corresponding to the third pixel value is determined based on the red and green color components and the yellow and blue color components corresponding to the third pixel value.
[0068] In the non-overflow boundary area, the brightness J, hue H and chroma C corresponding to the third pixel value of the area are represented by a three-dimensional look-up table (LUT) with J and H equally spaced by bilinear interpolation. b , LUT b It is used to describe the preset correspondence relationship of the area that does not overflow the boundary, that is, the correspondence relationship between lightness J, hue H and chroma C.
[0069] It should be noted that since the non-overflow boundary area is a two-dimensional surface in the uniform color space, it can be converted into a three-dimensional (3D) LUT by taking values of two of the dimensions, which can be lightness J and hue H, at equal intervals, and then calculating the value of the third dimension, chroma C, at the corresponding position. In the RGB space, the color gamut boundary is represented as a set of equally spaced points, but after mapping it to the uniform color space, these points are no longer equally spaced, and two-dimensional interpolation is required to obtain equally spaced points. Here, the commonly used two-dimensional interpolation method, namely bilinear interpolation, is selected to achieve this.
[0070] In this step, based on the hue corresponding to the third pixel value, the LUT b Determine the first brightness in .
[0071] Sub-step C3: Based on Calculate the first fusion coefficient corresponding to the target brightness difference. Where R1 represents the first fusion coefficient, J o Indicates the brightness corresponding to the first pixel value, J cusp Indicates the first brightness.
[0072] In some embodiments, referring to formula (5):
[0073]
[0074] In formula (5), R1 represents the first fusion coefficient, J o Indicates the brightness corresponding to the first pixel value, J cusp Indicates the first brightness.
[0075] The purpose of formula (5) is to calculate the first fusion coefficient according to the difference between the brightness corresponding to the first pixel value and the first brightness, so as to ensure that the first fusion coefficient is larger only when the brightness corresponding to the first pixel value is close to the first brightness, and the brightness corresponding to the first pixel value has a larger weight in the fusion algorithm.
[0076] Sub-step C4: Based on Calculate the second fusion coefficient corresponding to the overflow degree. Where R2 represents the second fusion coefficient, J o Indicates the brightness corresponding to the first pixel value, J c Indicates the brightness corresponding to the second pixel value, a o Indicates the red and green color components corresponding to the first pixel value, a c Indicates the red and green color components corresponding to the second pixel value, b o Indicates the yellow and blue color components corresponding to the first pixel value, b c Indicates the yellow and blue color components corresponding to the second pixel value, J b Indicates the brightness corresponding to the third pixel value, a b Indicates the red and green color components corresponding to the third pixel value, b b Indicates the yellow and blue color components corresponding to the third pixel value.
[0077] In some embodiments, referring to formula (6):
[0078]
[0079] In formula (6), R2 represents the second fusion coefficient, J o Indicates the brightness corresponding to the first pixel value, J c Indicates the brightness corresponding to the second pixel value, a o Indicates the red and green color components corresponding to the first pixel value, a c Indicates the red and green color components corresponding to the second pixel value, b o Indicates the yellow and blue color components corresponding to the first pixel value, b c Indicates the yellow and blue color components corresponding to the second pixel value, J b Indicates the brightness corresponding to the third pixel value, a b Indicates the red and green color components corresponding to the third pixel value, b b Indicates the yellow and blue color components corresponding to the third pixel value.
[0080] The purpose of formula (6) is to calculate the normalized (J o , a o , b o ) and (J c , ac, b c) to measure the overflow degree, and calculate the second fusion coefficient based on this. In the fusion algorithm, the weight of the brightness corresponding to the first pixel value is positively correlated with the overflow degree.
[0081] In this embodiment, in the preset corresponding relationship of the non-overflow boundary area, a larger brightness corresponds to a smaller chroma. If the first pixel value corresponds to a larger brightness, it is mapped to the preset corresponding relationship, that is, mapped to the LUT b [int(J o )][int(H o )], which will cause a loss of chroma and lead to artifacts. Therefore, in this embodiment, the brightness of the pixel position with serious overflow near the first brightness is updated, and the second fusion coefficient is calculated based on the overflow degree of the pixel overflow position, and the first fusion coefficient is calculated based on the brightness distribution of the pixel overflow position. The first fusion coefficient and the second fusion coefficient are used in subsequent brightness fusion, and the fused brightness is used to update the brightness corresponding to the first pixel value.
[0082] In the process of the image processing method of another embodiment of the present application, step C2 includes:
[0083] Sub-step D1: Determine the maximum chroma corresponding to the third pixel value according to the preset correspondence between the hue corresponding to the third pixel value and the non-overflow boundary area.
[0084] In this step, based on the brightness J corresponding to the third pixel value b , the chroma C corresponding to the third pixel value b The hue Hb corresponding to the third pixel value uses bilinear interpolation to represent the non-overflow boundary area as a three-dimensional lookup table LUT with equal intervals of brightness J and hue H. b , for a three-dimensional lookup table LUT b For each hue H in , count the corresponding chroma C to find the maximum chroma.
[0085] Taking the hue page of hue=70 as an example, when the lightness J changes from small to large, the boundary C of the colors that may actually appear changes from small to large and then becomes smaller, so a larger J corresponds to a smaller chroma C.
[0086] Sub-step D2: Determine the first brightness according to the preset correspondence between the maximum chroma and the non-overflow boundary area.
[0087] In this step, for the three-dimensional lookup table LUT b , find the brightness J corresponding to the maximum chroma, recorded as J cusp , which is the first brightness.
[0088] In this embodiment, the first brightness is determined based on the maximum chroma, so that the subsequent first brightness can be used in the calculation of the first fusion coefficient.
[0089] In the process of the image processing method of another embodiment of the present application, step 140 includes:
[0090] Sub-step E1: Calculate the second brightness according to formula (7).
[0091] Formula (7):
[0092]
[0093] In formula (7), R represents the fusion coefficient, R1 represents the first fusion coefficient, R2 represents the second fusion coefficient, and J o Indicates the brightness corresponding to the first pixel value, J c Indicates the brightness corresponding to the second pixel value, J m Indicates the second brightness.
[0094] Sub-step E2: Determine the chroma corresponding to the first pixel value according to the second brightness, the hue corresponding to the first pixel value, and the preset correspondence relationship of the non-overflow boundary area, wherein the hue corresponding to the first pixel value is determined based on the red and green color components and the yellow and blue color components corresponding to the first pixel value.
[0095] In this step, for the pixel overflow position, the hue of the position is retained, that is, the hue corresponding to the first pixel value is used, and then the calculated second brightness and the hue corresponding to the first pixel value are mapped to the preset correspondence relationship of the non-overflow boundary area to determine the chroma corresponding to the first pixel value. Here, the chroma corresponding to the first pixel value is determined, that is, the updated chroma.
[0096] Refer to formula (8):
[0097] C m =LUT b [int(J m )][int(H o )] (8)
[0098] In formula (8), C m Indicates the chroma corresponding to the first pixel value updated, J m Indicates the second brightness, H o Indicates the hue corresponding to the first pixel value.
[0099] Sub-step E3: Update the first pixel value according to the second brightness, the hue corresponding to the first pixel value, and the chroma corresponding to the first pixel value.
[0100] In this step, (J m , C m , H o) as the color component representation of the overflow image processing result, based on (J m , C m , H o ) obtains the updated first pixel value.
[0101] In this embodiment, the hue corresponding to the first pixel value is retained, the lightness corresponding to the first pixel value is updated to the second lightness, and the chroma corresponding to the first pixel value is updated. The chroma of the overflow position is mapped to the color gamut boundary, and the overflow part is mapped to the non-overflow part while maintaining the hue, so as to restore the image content loss caused by the color overflow.
[0102] In the process of the image processing method of another embodiment of the present application, the target processing includes any one of color correction processing, white balance processing, and three-dimensional lookup table processing.
[0103] The anti-color overflow processing of the present application can be performed by an anti-color overflow module, and the processing can be added after color correction, white balance, 3DLUT and other processing, because color correction, white balance, 3DLUT and other processing may cause color overflow.
[0104] The application scenarios of this application are as follows: Figure 2 The left picture shows an image that has not been processed by the anti-color overflow method of this application. Figure 2 The image on the right is an image that has been processed by the present application to prevent color overflow, which effectively avoids the loss of image details.
[0105] like Figure 3 As shown, in one embodiment of the present application, the color correction (CC) processing result is used as input, specifically including retaining overflow I o , truncation overflow I c and overflow part boundary I b , after scaling the input based on the illuminance measured by the sensor, it is converted to the Jzazbz space and the color attributes brightness (J), chroma (C) and hue (H) are calculated. b Color attributes to generate LUT b , for the first brightness Jcus p In the calculation of m , and then the second brightness J m Mapping to LUT b , calculate the chroma C m , output the fusion processing result (J m , C m , H o ), and finally converted to RGB space to eliminate the illumination-based scaling.
[0106] In summary, the present application provides a method for preventing color overflow based on a uniform color space, in which the brightness of the pixel overflow position is updated in the uniform color space, and then mapped to the color gamut boundary of the corresponding brightness and hue, so as to quickly and efficiently restore the details of the overflow part while maintaining the hue and overall brightness, restore the image content loss caused by color overflow, enhance the image layering, and better restore the atmosphere of the stage and bar scenes; the present application can also retain the initial hue of the overflow position, combine the fused brightness, and map the chroma of the overflow position to the color gamut boundary, so as to map the overflow part to the non-overflow part while maintaining the hue, and restore the image content loss caused by color overflow. In addition, the present application regards the overflow part and the non-overflow part as the original color gamut and the target color gamut respectively, and maps the overflow part to the non-overflow part through the color gamut mapping algorithm, so as to restore the image details and enhance the image layering, so as to achieve the effect of preventing color overflow. In this process, the present application characterizes the boundary of the original color gamut and the target color gamut, thereby defining the boundary of the overflow part, and proposes a color gamut mapping algorithm with high computational efficiency, which can realize real-time computing on platforms such as mobile phones.
[0107] The image processing method provided in the embodiment of the present application can be executed by an image processing device. In the embodiment of the present application, an image processing device executing the image processing method is taken as an example to illustrate the image processing device provided in the embodiment of the present application.
[0108] Figure 4 A block diagram of an image processing device according to an embodiment of the present application is shown, the device comprising:
[0109] A determination module 10, configured to determine a pixel overflow position in the first image after performing target processing on the first image;
[0110] An acquisition module 20, configured to acquire a first pixel value at a pixel overflow position, a second pixel value at a truncated overflow position, and a third pixel value at a non-overflow boundary region;
[0111] A processing module 30 is used to obtain a first fusion coefficient corresponding to a target brightness difference and a second fusion coefficient corresponding to an overflow degree based on the first pixel value, the second pixel value and the third pixel value; wherein the target brightness difference indicates a brightness difference between an overflow position of a pixel and a non-overflow boundary area;
[0112] The first updating module 40 is configured to update the first pixel value based on the first fusion coefficient and the second fusion coefficient to obtain a second image.
[0113] In an embodiment of the present application, after the first image is subjected to target processing, the pixel overflow position in the first image is determined, the initial pixel value of the pixel overflow position is retained to obtain the corresponding first pixel value, the initial pixel value of the pixel overflow position is truncated to obtain the corresponding second pixel value, and the corresponding third pixel value is determined in the non-overflow boundary area after truncation. Then, according to the first pixel value, the second pixel value, and the third pixel value, the first fusion coefficient corresponding to the brightness difference between the pixel overflow position and the non-overflow boundary area is obtained, and the second fusion coefficient corresponding to the overflow degree is obtained, so that the first pixel value is updated based on the first fusion coefficient and the second fusion coefficient, and the updated first pixel value corresponds to the second image. It can be seen that based on the embodiment of the present application, the brightness in the overflow state and the truncated state is fused, so that the detail loss caused by the overflow can be restored while maintaining the hue, and at the same time, artifacts can be prevented to improve image quality.
[0114] In some embodiments, the acquisition module 20 includes:
[0115] A first scaling unit, configured to scale the pixel value at the pixel overflow position according to scene brightness to obtain a first pixel value;
[0116] A second scaling unit, used for scaling the pixel value at the truncation overflow position according to the scene brightness to obtain a second pixel value;
[0117] The third scaling unit is used to scale the pixel value of the non-overflowing boundary area according to the scene brightness to obtain a third pixel value.
[0118] In some embodiments, the apparatus further comprises:
[0119] The second updating module is used to update the pixel value at the pixel overflow position according to the scene brightness and the updated first pixel value.
[0120] In some embodiments, the processing module 30 includes:
[0121] an acquisition unit, configured to acquire, according to the first pixel value, the brightness, red-green color components, and yellow-blue color components corresponding to the first pixel value; acquire, according to the second pixel value, the brightness, red-green color components, and yellow-blue color components corresponding to the second pixel value; and acquire, according to the third pixel value, the brightness, red-green color components, and yellow-blue color components corresponding to the third pixel value;
[0122] A first determination unit is used to determine the first brightness according to the hue corresponding to the third pixel value and the preset corresponding relationship of the non-overflow boundary area; wherein the hue corresponding to the third pixel value is determined based on the red and green color components and the yellow and blue color components corresponding to the third pixel value;
[0123] The first computing unit is used to Calculate the first fusion coefficient corresponding to the target brightness difference; where R1 represents the first fusion coefficient, J o Indicates the brightness corresponding to the first pixel value, J cusp Indicates the first brightness;
[0124] The second computing unit is used to Calculate the second fusion coefficient corresponding to the overflow degree; where R2 represents the second fusion coefficient, J o Indicates the brightness corresponding to the first pixel value, J c Indicates the brightness corresponding to the second pixel value, a o Indicates the red and green color components corresponding to the first pixel value, a c Indicates the red and green color components corresponding to the second pixel value, b o Indicates the yellow and blue color components corresponding to the first pixel value, b c Indicates the yellow and blue color components corresponding to the second pixel value, J b Indicates the brightness corresponding to the third pixel value, a b Indicates the red and green color components corresponding to the third pixel value, b b Indicates the yellow and blue color components corresponding to the third pixel value.
[0125] In some embodiments, the first determining unit includes:
[0126] A first determining subunit, configured to determine a maximum chroma corresponding to the third pixel value according to a preset correspondence between a hue corresponding to the third pixel value and a non-overflowing boundary area;
[0127] The second determination subunit is used to determine the first brightness according to a preset correspondence between the maximum chroma and the non-overflow boundary area.
[0128] In some embodiments, the first update module 40 includes:
[0129] The third computing unit is used to Calculate the second brightness; where R represents the fusion coefficient, R1 represents the first fusion coefficient, R2 represents the second fusion coefficient, and J o Indicates the brightness corresponding to the first pixel value, J c Indicates the brightness corresponding to the second pixel value, J m Indicates the second brightness;
[0130] A second determination unit is used to determine the chroma corresponding to the first pixel value according to the second brightness, the hue corresponding to the first pixel value, and the preset correspondence relationship of the non-overflow boundary area; wherein the hue corresponding to the first pixel value is determined based on the red and green color components and the yellow and blue color components corresponding to the first pixel value;
[0131] The updating unit is used to update the first pixel value according to the second brightness, the hue corresponding to the first pixel value, and the chroma corresponding to the first pixel value.
[0132] In some embodiments, the target processing includes any one of a color correction process, a white balance process, and a three-dimensional lookup table process.
[0133] The device in the application embodiment can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., and the present application embodiment is not specifically limited.
[0134] The device of the embodiment of the present application may be a device having an action system. The action system may be an Android action system, an iOS action system, or other possible action systems, which are not specifically limited in the embodiment of the present application.
[0135] The device provided in the embodiment of the present application can implement each process implemented in the above method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0136] In some embodiments, Figure 5 As shown, an embodiment of the present application also provides an electronic device 100, including a processor 101, a memory 102, and a program or instruction stored in the memory 102 and executable on the processor 101. When the program or instruction is executed by the processor 101, each step of any of the above-mentioned image processing method embodiments is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0137] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0138] Figure 6 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0139] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, a processor 1010, a camera 1011 and other components.
[0140] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 6 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0141] Among them, the processor 1010 is used to determine the pixel overflow position in the first image after performing target processing on the first image; obtain the first pixel value of the pixel overflow position, the second pixel value of the truncated overflow position, and the third pixel value of the non-overflow boundary area; based on the first pixel value, the second pixel value and the third pixel value, obtain a first fusion coefficient corresponding to the target brightness difference and a second fusion coefficient corresponding to the overflow degree; wherein the target brightness difference indicates the brightness difference between the pixel overflow position and the non-overflow boundary area; based on the first fusion coefficient and the second fusion coefficient, update the first pixel value to obtain a second image.
[0142] In an embodiment of the present application, after the first image is subjected to target processing, the pixel overflow position in the first image is determined, the initial pixel value of the pixel overflow position is retained to obtain the corresponding first pixel value, the initial pixel value of the pixel overflow position is truncated to obtain the corresponding second pixel value, and the corresponding third pixel value is determined in the non-overflow boundary area after truncation. Then, according to the first pixel value, the second pixel value, and the third pixel value, the first fusion coefficient corresponding to the brightness difference between the pixel overflow position and the non-overflow boundary area is obtained, and the second fusion coefficient corresponding to the overflow degree is obtained, so that the first pixel value is updated based on the first fusion coefficient and the second fusion coefficient, and the updated first pixel value corresponds to the second image. It can be seen that based on the embodiment of the present application, the brightness in the overflow state and the truncated state is fused, so that the detail loss caused by the overflow can be restored while maintaining the hue, and at the same time, artifacts can be prevented to improve image quality.
[0143] In some embodiments, the processor 1010 is further used to scale the pixel value of the pixel overflow position according to the scene brightness to obtain the first pixel value; scale the pixel value of the truncated overflow position according to the scene brightness to obtain the second pixel value; and scale the pixel value of the non-overflow boundary area according to the scene brightness to obtain the third pixel value.
[0144] In some embodiments, the processor 1010 is further configured to update the pixel value at the pixel overflow position according to the scene brightness and the updated first pixel value.
[0145] In some embodiments, the processor 1010 is further configured to obtain, according to the first pixel value, the brightness, red-green color components, and yellow-blue color components corresponding to the first pixel value; according to the second pixel value, obtain the brightness, red-green color components, and yellow-blue color components corresponding to the second pixel value; according to the third pixel value, obtain the brightness, red-green color components, and yellow-blue color components corresponding to the third pixel value; according to the hue corresponding to the third pixel value, combined with the preset correspondence relationship of the non-overflow boundary area, determine the first brightness; wherein the hue corresponding to the third pixel value is determined based on the red-green color components and yellow-blue color components corresponding to the third pixel value; according to Calculate the first fusion coefficient corresponding to the target brightness difference; wherein R1 represents the first fusion coefficient, J o represents the brightness corresponding to the first pixel value, J cusp represents the first brightness; according to Calculate the second fusion coefficient corresponding to the overflow degree; wherein R2 represents the second fusion coefficient, J o represents the brightness corresponding to the first pixel value, J c represents the brightness corresponding to the second pixel value, a o represents the red and green color components corresponding to the first pixel value, a c represents the red and green color components corresponding to the second pixel value, b o represents the yellow-blue color component corresponding to the first pixel value, b c represents the yellow-blue color component corresponding to the second pixel value, J b represents the brightness corresponding to the third pixel value, a b represents the red and green color components corresponding to the third pixel value, b b Represents the yellow and blue color components corresponding to the third pixel value.
[0146] In some embodiments, the processor 1010 is further used to determine the maximum chroma corresponding to the third pixel value based on the preset correspondence between the hue corresponding to the third pixel value and the non-overflow boundary area; and determine the first brightness based on the preset correspondence between the maximum chroma and the non-overflow boundary area.
[0147] In some embodiments, the processor 1010 is further configured to: Calculate the second brightness; wherein R represents the fusion coefficient, R1 represents the first fusion coefficient, R2 represents the second fusion coefficient, J o represents the brightness corresponding to the first pixel value, J c represents the brightness corresponding to the second pixel value, J m Represents the second brightness; determines the chroma corresponding to the first pixel value according to the second brightness, the hue corresponding to the first pixel value, and the preset correspondence of the non-overflow boundary area; wherein the hue corresponding to the first pixel value is determined based on the red and green color components and the yellow and blue color components corresponding to the first pixel value; updates the first pixel value according to the second brightness, the hue corresponding to the first pixel value, and the chroma corresponding to the first pixel value.
[0148] In some embodiments, the target processing includes any one of color correction processing, white balance processing, and three-dimensional lookup table processing.
[0149] In summary, the present application provides a method for preventing color overflow based on a uniform color space, in which the brightness of the pixel overflow position is updated in the uniform color space, and then mapped to the color gamut boundary of the corresponding brightness and hue, so as to quickly and efficiently restore the details of the overflow part while maintaining the hue and overall brightness, restore the image content loss caused by color overflow, enhance the image layering, and better restore the atmosphere of the stage and bar scenes; the present application can also retain the initial hue of the overflow position, combine the fused brightness, and map the chroma of the overflow position to the color gamut boundary, so as to map the overflow part to the non-overflow part while maintaining the hue, and restore the image content loss caused by color overflow. In addition, the present application regards the overflow part and the non-overflow part as the original color gamut and the target color gamut respectively, and maps the overflow part to the non-overflow part through the color gamut mapping algorithm, so as to restore the image details and enhance the image layering, so as to achieve the effect of preventing color overflow. In this process, the present application characterizes the boundary of the original color gamut and the target color gamut, thereby defining the boundary of the overflow part, and proposes a color gamut mapping algorithm with high computational efficiency, which can realize real-time computing on platforms such as mobile phones.
[0150] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video image obtained by the image capture device (such as a camera) in the video image capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and an action rod, which will not be repeated here. The memory 1009 can be used to store software programs and various data, including but not limited to applications and action systems. The processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes the action system, user pages and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 1010.
[0151] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0152] The processor 1010 may include one or more processing units; in some embodiments, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.
[0153] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned image processing method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0154] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0155] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned image processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0156] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0157] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned image processing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0158] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0159] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0160] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. An image processing method, It is characterized in that The method comprises: After performing target processing on the first image, determining a pixel overflow position in the first image; Obtaining a first pixel value at the pixel overflow position, a second pixel value at the truncated overflow position, and a third pixel value at the non-overflow boundary area; Based on the first pixel value, the second pixel value and the third pixel value, a first fusion coefficient corresponding to a target brightness difference and a second fusion coefficient corresponding to an overflow degree are obtained; wherein the target brightness difference indicates a brightness difference between the pixel overflow position and the non-overflow boundary area; The first pixel value is updated based on the first fusion coefficient and the second fusion coefficient to obtain a second image.
2. The method according to claim 1, It is characterized in that The obtaining of the first pixel value of the pixel overflow position, the second pixel value of the truncated overflow position, and the third pixel value of the non-overflow boundary area includes: Scaling the pixel value at the pixel overflow position according to scene brightness to obtain the first pixel value; Scaling the pixel value at the truncation overflow position according to the scene brightness to obtain the second pixel value; The pixel value of the non-overflowing boundary area is scaled according to the scene brightness to obtain the third pixel value.
3. The method according to claim 2, It is characterized in that After updating the first pixel value based on the first fusion coefficient and the second fusion coefficient, the method further includes: The pixel value at the pixel overflow position is updated according to the scene brightness and the updated first pixel value.
4. The method according to claim 1, It is characterized in that The obtaining, based on the first pixel value, the second pixel value, and the third pixel value, a first fusion coefficient corresponding to the target brightness difference and a second fusion coefficient corresponding to the overflow degree includes: According to the first pixel value, obtain the brightness, red-green color components, and yellow-blue color components corresponding to the first pixel value; according to the second pixel value, obtain the brightness, red-green color components, and yellow-blue color components corresponding to the second pixel value; according to the third pixel value, obtain the brightness, red-green color components, and yellow-blue color components corresponding to the third pixel value; Determine the first brightness according to the hue corresponding to the third pixel value and the preset corresponding relationship of the non-overflow boundary area; wherein the hue corresponding to the third pixel value is determined based on the red and green color components and the yellow and blue color components corresponding to the third pixel value; according to Calculate the first fusion coefficient corresponding to the target brightness difference; wherein R 1 represents the first fusion coefficient, J o represents the brightness corresponding to the first pixel value, J cusp represents the first brightness; according to Calculate the second fusion coefficient corresponding to the overflow degree; wherein R 2 represents the second fusion coefficient, J o represents the brightness corresponding to the first pixel value, J c represents the brightness corresponding to the second pixel value, a o represents the red and green color components corresponding to the first pixel value, a c represents the red and green color components corresponding to the second pixel value, b o represents the yellow-blue color component corresponding to the first pixel value, b c represents the yellow-blue color component corresponding to the second pixel value, J b represents the brightness corresponding to the third pixel value, a b represents the red and green color components corresponding to the third pixel value, b b Represents the yellow and blue color components corresponding to the third pixel value.
5. The method according to claim 4, It is characterized in that The determining of the first brightness according to the hue corresponding to the third pixel value and the preset corresponding relationship of the non-overflow boundary area includes: Determining the maximum chroma corresponding to the third pixel value according to a preset correspondence between the hue corresponding to the third pixel value and the non-overflow boundary area; The first brightness is determined according to a preset correspondence between the maximum chroma and the non-overflow boundary area.
6. The method according to claim 4, It is characterized in that The updating of the first pixel value based on the first fusion coefficient and the second fusion coefficient includes: according to Calculate the second brightness; where R represents the fusion coefficient, R 1 represents the first fusion coefficient, R 2 represents the second fusion coefficient, J o represents the brightness corresponding to the first pixel value, J c represents the brightness corresponding to the second pixel value, J m represents the second brightness; Determine the chroma corresponding to the first pixel value according to the second brightness, the hue corresponding to the first pixel value, and the preset correspondence relationship of the non-overflow boundary area; wherein the hue corresponding to the first pixel value is determined based on the red and green color components and the yellow and blue color components corresponding to the first pixel value; Update the first pixel value according to the second brightness, the hue corresponding to the first pixel value, and the chroma corresponding to the first pixel value.
7. The method according to any one of claims 1 to 6, It is characterized in that The target processing includes any one of color correction processing, white balance processing, and three-dimensional lookup table processing.
8. An image processing device, It is characterized in that The device comprises: A determination module, configured to determine a pixel overflow position in the first image after performing target processing on the first image; An acquisition module, used for acquiring a first pixel value of the pixel overflow position, a second pixel value of the truncated overflow position, and a third pixel value of the non-overflow boundary area; A processing module, configured to obtain a first fusion coefficient corresponding to a target brightness difference and a second fusion coefficient corresponding to an overflow degree based on the first pixel value, the second pixel value, and the third pixel value; wherein the target brightness difference indicates a brightness difference between the pixel overflow position and the non-overflow boundary area; The first updating module is used to update the first pixel value based on the first fusion coefficient and the second fusion coefficient to obtain a second image.
9. An electronic device, It is characterized in that The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the image processing method according to any one of claims 1 to 7 are implemented.
10. A readable storage medium, It is characterized in that The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by the processor, the steps of the image processing method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Methods and systems for image data compression
US11109030B1
Automatic color saturation enhancement
US6771311B1
Cited By
Color gamut compression method and device, computer equipment, storage medium and program product
CN119383281A
