An image processing method, apparatus, electronic device, chip, and storage medium.

By performing frequency division processing on the image and calculating pseudo-color eigenvalues, the problem of pseudo-color and artifacts in the existing technology is solved, and effective correction of the image is achieved, especially for pseudo-color blocks or color edges with large width and area. Removed, improving image clarity and color uniformity.

CN116342401BActive Publication Date: 2024-09-13SHANGHAI X-RING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211096864.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-06
Publication Date
2024-09-13
Estimated Expiration
2042-09-06

AI Technical Summary

Technical Problem

The existing technology has problems with false colors and artifacts in the demosaicing process, causing the image to become blurred, and it is difficult to effectively remove false color blocks or color fringes with a large width and area.

Method used

By performing frequency division processing on the image to be corrected, it is divided into images in different frequency bands, and false color detection and removal processes are performed respectively. The false color feature values ​​are used for differential filtering processing to synthesize the corrected image.

Benefits of technology

It enhances the image correction effect, solves the problem of false colors and artifacts, especially the removal of false color blocks or color edges with large width areas, and improves the clarity and color uniformity of the image.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116342401B
    Figure CN116342401B
Patent Text Reader

Abstract

The present disclosure provides an image processing method, device, electronic device, chip and storage medium, which obtain an image to be corrected, represent the image to be corrected in a YUV color space, perform frequency division processing on the image to be corrected, obtain a first frequency band image and a second frequency band image, respectively perform pseudo-color detection on the first frequency band image and the second frequency band image, determine a first pseudo-color eigenvalue corresponding to the first frequency band image and a second pseudo-color eigenvalue corresponding to the second frequency band image, perform pseudo-color removal processing on the first frequency band image and the second frequency band image based on the first pseudo-color eigenvalue and the second pseudo-color eigenvalue, respectively, synthesize the first frequency band image and the second frequency band image after pseudo-color removal processing, and obtain a corrected image. The present disclosure can remove color edges and pseudo-color blocks with large width and area through frequency division processing, and has a wider range of application. Performing pseudo-color removal processing according to pseudo-color eigenvalues ​​can suppress obvious color overflow or color loss at the edge of real colors, and has a better processing effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of image processing, and in particular to an image processing method and device, electronic equipment, chip and storage medium. Background Art

[0002] With the popularization of smart terminal devices and the development of Internet of Things technology, users have put forward higher requirements for the imaging function of terminals. As the performance indicators that are most easily perceived by humans, ensuring the uniformity of the overall brightness and color of the image has become the basic configuration and improvement direction of various manufacturers. In digital camera imaging, the image will have pseudo-color and artifact problems in the high-frequency area due to the demosaicing process, so the image needs to be corrected for pseudo-color.

[0003] The image pseudo-color correction schemes in related technologies usually add special processing to the demosaicing algorithm to avoid erroneous interpolation, or filter the RGB image after mosaic algorithm interpolation. Although these traditional schemes can improve the pseudo-color phenomenon caused by demosaicing interpolation, the interpolation algorithm and most filtering methods have the problem of image blurring during denoising. In order to ensure image clarity, a more conservative method is usually used to simply suppress it. The pseudo-color after slight suppression will become extremely obvious after being magnified layer by layer by the back-end color correction, tone mapping algorithm, etc., and the effect of removing pseudo-color is poor. Summary of the invention

[0004] The present disclosure provides an image processing method, device, electronic device, chip and storage medium to solve the problems in the related art, expand the application scope of image correction and enhance the correction effect.

[0005] A first aspect of the present disclosure provides an image processing method, the method comprising: obtaining an image to be corrected, the image to be corrected being represented in a YUV color space; performing frequency division processing on the image to be corrected to obtain a first frequency band image and a second frequency band image; performing pseudo-color detection on the first frequency band image and the second frequency band image, respectively, to determine a first pseudo-color feature value corresponding to the first frequency band image and a second pseudo-color feature value corresponding to the second frequency band image; performing pseudo-color removal processing on the first frequency band image and the second frequency band image, respectively, based on the first pseudo-color feature value and the second pseudo-color feature value; and synthesizing the first frequency band image and the second frequency band image after the pseudo-color removal processing to obtain a corrected image.

[0006] In some embodiments of the present disclosure, performing frequency division processing on the image to be corrected to obtain the first frequency band image and the second frequency band image includes: downsampling the image to be corrected to obtain the first frequency band image; and using the image to be corrected as the second frequency band image.

[0007] In some embodiments of the present disclosure, pseudo-color detection is performed on the first frequency band image and the second frequency band image respectively, and determining the first pseudo-color characteristic value corresponding to the first frequency band image and the second pseudo-color characteristic value corresponding to the second frequency band image includes: determining the corresponding brightness value, edge intensity value and chromaticity value for each pixel in the first frequency band image and the second frequency band image; and performing interpolation operations on the brightness value, edge intensity value and chromaticity value of each pixel to obtain the first pseudo-color characteristic value corresponding to the first frequency band image and the second pseudo-color characteristic value corresponding to the second frequency band image.

[0008] In some embodiments of the present disclosure, interpolation operations are performed based on the brightness value, edge intensity value, and chromaticity value of each pixel to obtain a first pseudo-color characteristic value corresponding to the first frequency band image and a second pseudo-color characteristic value corresponding to the second frequency band image, including: performing interpolation operations based on the correspondence between the brightness value of each pixel and the brightness threshold to obtain the brightness characteristic value of each pixel; performing interpolation operations based on the correspondence between the edge intensity value of each pixel and the edge intensity threshold to obtain the edge intensity characteristic value of each pixel; performing interpolation operations based on the correspondence between the chromaticity value of each pixel and the chromaticity threshold to obtain the chromaticity characteristic value of each pixel; obtaining the first pseudo-color characteristic value based on the brightness characteristic value, edge intensity characteristic value, and chromaticity characteristic value of each pixel in the first frequency band image, and obtaining the second pseudo-color characteristic value based on the brightness characteristic value, edge intensity characteristic value, and chromaticity characteristic value of each pixel in the second frequency band image.

[0009] In some embodiments of the present disclosure, interpolation operations are performed based on the brightness value, edge intensity value, and chromaticity value of each pixel to obtain a first pseudo-color eigenvalue corresponding to a first frequency band image and a second pseudo-color eigenvalue corresponding to a second frequency band image, including: determining a joint eigenvalue based on the brightness value and edge intensity value of each pixel; performing an interpolation operation based on the correspondence between the chromaticity value of each pixel and the chromaticity threshold to obtain a chromaticity eigenvalue; obtaining a first pseudo-color eigenvalue based on the joint eigenvalue and chromaticity eigenvalue of the first frequency band image, and obtaining a second pseudo-color eigenvalue based on the joint eigenvalue and chromaticity eigenvalue of the second frequency band image. In some embodiments of the present disclosure, the processed first frequency band image and the second frequency band image are synthesized to obtain a corrected image, which includes: upsampling the first frequency band image that has been processed by pseudo color removal to obtain the first frequency band image to be synthesized; downsampling and upsampling the second frequency band image that has been processed by pseudo color removal in sequence to obtain a sampling result, and performing a first fusion process on the sampling result and the second frequency band image that has been processed by pseudo color removal to obtain the second frequency band image to be synthesized; performing a second fusion process on the first frequency band image to be synthesized and the second frequency band image to be synthesized to obtain a corrected image.

[0010] In some embodiments of the present disclosure, before obtaining the image to be corrected, the method includes: obtaining an initial image, the initial image is represented in RGB color space, and converting the initial image to obtain the image to be corrected; and after obtaining the corrected image, the method also includes: inversely converting the corrected image to obtain an output image, the output image is represented in RGB color space.

[0011] The second aspect of the present disclosure proposes an image processing device, which includes: an acquisition module, used to acquire an image to be corrected, wherein the image to be corrected is represented in a YUV color space; a frequency division module, used to perform frequency division processing on the image to be corrected, and obtain a first frequency band image and a second frequency band image; a detection module, used to perform pseudo-color detection on the first frequency band image and the second frequency band image, respectively, and determine a first pseudo-color feature value corresponding to the first frequency band image and a second pseudo-color feature value corresponding to the second frequency band image; a processing module, used to perform pseudo-color removal processing on the first frequency band image and the second frequency band image, respectively, based on the first pseudo-color feature value and the second pseudo-color feature value; and a synthesis module, used to synthesize the first frequency band image and the second frequency band image that have been subjected to pseudo-color removal processing, and obtain a corrected image.

[0012] The third aspect embodiment of the present disclosure proposes an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in the first aspect embodiment of the present disclosure.

[0013] The fourth aspect embodiment of the present disclosure proposes a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method described in the first aspect embodiment of the present disclosure.

[0014] A fifth aspect embodiment of the present disclosure provides a computer program product, including a computer program, which executes the method described in the first aspect embodiment of the present disclosure when a processor is used to execute the computer program.

[0015] The sixth aspect embodiment of the present disclosure proposes a chip, which includes one or more interface circuits and one or more processors; the interface circuit is used to receive signals from a memory of an electronic device and send signals to the processor, the signals including computer instructions stored in the memory, and when the processor executes the computer instructions, the electronic device executes the method described in the first aspect embodiment of the present disclosure.

[0016] In summary, the image processing method proposed in the present disclosure divides the image to be corrected into images of different frequency bands through frequency division processing, and performs pseudo-color correction on the images of different frequency bands and then synthesizes them to obtain the corrected image. The frequency division processing can solve the problem of pseudo-color blocks or color edges with large widths and areas that cannot be removed in the prior art, and the image correction has a wider application range. In the present solution, pseudo-color feature values ​​are calculated, and pseudo-color removal processing is performed according to the pseudo-color feature values ​​to achieve differential processing of real color details and pseudo-color, thereby suppressing obvious color overflow or color loss at the edges of real colors, and enhancing the correction effect.

[0017] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0019] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present disclosure;

[0020] Figure 2 A flowchart of an image processing method provided by an embodiment of the present disclosure;

[0021] Figure 3 A specific flow chart of an image processing method provided by an embodiment of the present disclosure;

[0022] Figure 4 A schematic diagram of a frequency division processing scheme of an image processing method provided in an embodiment of the present disclosure;

[0023] Figure 5 A schematic diagram of a pseudo-color feature value calculation scheme in an image processing method provided in an embodiment of the present disclosure;

[0024] Figure 6 A schematic diagram of a processing scheme in an image processing method provided in an embodiment of the present disclosure;

[0025] Figure 7 A schematic diagram of the structure of an image processing device provided by an embodiment of the present disclosure;

[0026] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0027] Embodiments of the present disclosure are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limiting the present disclosure.

[0028] With the popularity and development of smart terminal devices in recent years, people's technical requirements for terminals have also risen. Imaging technology, as one of the most commonly used technologies, has attracted much attention. The improvement of image quality is the key breakthrough direction of terminal technology. The uniformity of the overall brightness and color of the image, as one of the basic indicators for image quality assessment, has a significant impact on the final presentation of the image. As the performance indicator that is most easily perceived by humans, ensuring the uniformity of the overall brightness and color of the image has become the basic configuration and improvement direction of various manufacturers.

[0029] During the imaging process of a digital camera, a Bayer structure pixel array is used to collect signals, and then the complete RGB image information is obtained through interpolation through demosaicing. In this process, the sampling method of the color filter array (CFA) will make the frequency of the collected information lower than the frequency of the high-frequency information of the original scene, resulting in the loss of information in the high-frequency area. In addition, since the direction is not considered or the direction is judged incorrectly in the demosaicing process, the interpolated image information is usually wrong, which leads to the appearance of pseudo-color in the final image quality. The existence of pseudo-color is not only difficult for observers to accept in a single-frame image, but also flickers with the frame when the video is played continuously due to the difference between the pseudo-color and the color of the surrounding area. The visual perception of people will affect the capture of information and they will mistake it for flickering colored lights.

[0030] In order to solve the pseudo-color and artifact problems in high-frequency areas of images due to demosaicing, the commonly used solution is to add special processing to the demosaicing algorithm to avoid erroneous interpolation, or directly filter the RGB image after mosaic algorithm interpolation. The processing on interpolation has a great impact on the image clarity, and the above solutions are relatively poor in correcting pseudo-color. In addition, most of the existing solutions are limited by the detection or removal of pseudo-color windows, and cannot remove pseudo-colors of larger width or area.

[0031] In order to solve the problems existing in the related art, the present disclosure proposes an image processing method. The present scheme adopts frequency division multi-scale processing and multi-size window calculation to solve the problem that pseudo-color blocks or color edges with large width and area cannot be removed, and detects pseudo-color areas through information such as brightness, frequency, saturation, etc. in local areas of the image. More factors are taken into consideration and the pseudo-color detection effect is better. At the same time, the pseudo-color eigenvalue calculation method constructed in the present scheme has simple logic and small calculation amount, and the power consumption of software or hardware implementation is low. Different filtering processing is performed on the real color details and pseudo-color according to the pseudo-color eigenvalue, thereby suppressing obvious color overflow or color loss at the real color edge.

[0032] Before introducing the detailed solution of the present disclosure, the scenario to which the solution of the present disclosure is applied is described first. Figure 1 FIG. 1 is an application scenario diagram of an image processing method in an embodiment. Figure 1 As shown, the application scenario includes an electronic device 104, in which a camera module and several applications can be installed. The application can initiate an image acquisition instruction to acquire an image, and the camera module acquires the image 102. Among them, the camera module can include a front camera module and / or a rear camera module. Finally, the target image is sent to the target application. Among them, the electronic device 104 can be a smart phone, a tablet computer, a personal digital assistant, a wearable device, etc.

[0033] In some optional embodiments, the electronic device may also be a vehicle-mounted device or an Internet of Vehicles device, such as a smart car, etc. In the present disclosure, only a smart phone is taken as an example, but it does not limit the scope of the present disclosure.

[0034] A camera can be installed on an electronic device, and images can be acquired through the installed camera. Cameras can be divided into laser cameras, visible light cameras and other types according to the different images acquired. Laser cameras can acquire images formed by irradiating lasers onto objects, and visible light cameras can acquire images formed by irradiating visible light onto objects. Several cameras can be installed on an electronic device, and the installation locations are not limited. For example, a camera can be installed on the front panel of an electronic device, and two cameras can be installed on the back panel. The camera can also be installed inside the electronic device in an embedded manner, and then the camera can be opened by rotating or sliding. Specifically, a front camera and a rear camera can be installed on an electronic device. The front camera and the rear camera can acquire images from different perspectives. Generally, the front camera can acquire images from the front perspective of the electronic device, and the rear camera can acquire images from the back perspective of the electronic device.

[0035] It should be understood that in the present disclosure, the front camera or the rear camera is only used as an example to distinguish the shooting angles of different cameras, rather than to limit the functions of multiple cameras. The multiple cameras in the present disclosure can be rear cameras or front cameras at the same time, which is not limited in this disclosure.

[0036] An electronic device can have several applications installed. An application is software written for a certain purpose in an electronic device. An electronic device can use an application to provide services to users. When an application needs to capture an image, it will initiate an image capture instruction. The electronic device will call the camera module to capture the image according to the image capture instruction. An image capture instruction is an instruction used to trigger an image capture operation.

[0037] The electronic device is also provided with a processor, and the image processing module in the processor can perform correction processing on the image captured by the camera module, for example, execute the image processing method provided in the present disclosure.

[0038] Figure 2 Flow chart of an image processing method provided by an embodiment of the present disclosure. Figure 2 As shown, the image processing method includes steps 201-205.

[0039] Step 201: Acquire an image to be calibrated, where the image to be calibrated is represented in a YUV color space.

[0040] In the present disclosure, the correction method of the present disclosure processes a YUV image, and the image to be corrected is represented by a YUV color space, where YUV is a type of compiled color space, in which "Y" represents brightness, "U" and "V" represent chrominance, and the brightness information and chrominance information are independent of each other and do not affect each other in the subsequent pseudo-color correction process. It should be noted that the image to be corrected is not equivalent to the input image, and the input image can be converted to obtain the YUV image to be corrected, and the acquisition method and type of the input image are not limited in the present disclosure.

[0041] Step 202: Perform frequency division processing on the image to be corrected to obtain a first frequency band image and a second frequency band image.

[0042] In the present disclosure, the frequency division processing can obtain a set of sub-images of different resolutions of the same image, wherein the first frequency band image and the second frequency band image are sub-images of different frequency bands of the same image to be corrected. Because the general information of the image is mainly concentrated in the low-frequency components of the image, while the details and noise are mainly concentrated in the high-frequency components of the image, the high and low frequencies of the image are processed separately, so that the edge details can be better retained while removing the pseudo-color.

[0043] In the present disclosure, the first frequency band image may be an image obtained by downsampling the image to be corrected, wherein the scale of downsampling is not limited in the present disclosure, for example, the first frequency band image may be a YUV image of 1 / 2*1 / 2 or 1 / 4*1 / 4 of the resolution of the original image to be corrected. The second frequency band image may be the original image to be corrected, in other words, the resolution of the second frequency band image is consistent with that of the original image to be corrected.

[0044] In the present disclosure, the first frequency band image obtained by downsampling may be referred to as a low-frequency image, and the second frequency band image that has not been downsampled may be referred to as a high-frequency image.

[0045] Step 203 : performing pseudo color detection on the first frequency band image and the second frequency band image respectively, and determining a first pseudo color characteristic value corresponding to the first frequency band image and a second pseudo color characteristic value corresponding to the second frequency band image.

[0046] In the present disclosure, the possibility that the pixel is a pseudo-color area or point is measured by calculating the pseudo-color feature value pixel by pixel. In particular, the present disclosure performs pseudo-color detection on images of different frequency bands respectively, and calculates the YUV three-channel data pixel by pixel, and the specific calculation method is not limited in this embodiment. For the first frequency band image, the calculated YUV three-channel data can be synthesized, including but not limited to interpolation operations, and the pseudo-color feature value characterizes the possibility that the pixel is a pseudo-color.

[0047] Step 204 : performing pseudo color removal processing on the first frequency band image and the second frequency band image respectively based on the first pseudo color characteristic value and the second pseudo color characteristic value.

[0048] In the present disclosure, pseudo color removal processing is performed according to pseudo color feature values. According to the embodiments of the present disclosure, after obtaining the first pseudo color feature value corresponding to the first frequency band image and the second pseudo color feature value corresponding to the second frequency band image, the pseudo color removal strength of each pixel is controlled according to their respective pseudo color feature values, thereby achieving pseudo color removal processing that differentiates between real color details and pseudo colors, and can suppress obvious color overflow or color loss at the edges of real colors.

[0049] Step 205 , synthesize the first frequency band image after pseudo color removal and the second frequency band image to obtain a corrected image.

[0050] In the present disclosure, the first frequency band image and the second frequency band image after pseudo color removal processing are obtained according to the above steps, and the frequency combination processing is performed to obtain the final corrected image, and the corrected image is represented in the YUV color space.

[0051] In summary, according to the image processing method proposed in the present invention, an image to be corrected is obtained, the image to be corrected is represented in a YUV color space, frequency division processing is performed on the image to be corrected, a first frequency band image and a second frequency band image are obtained, pseudo-color detection is performed on the first frequency band image and the second frequency band image respectively, a first pseudo-color eigenvalue corresponding to the first frequency band image and a second pseudo-color eigenvalue corresponding to the second frequency band image are determined, pseudo-color removal processing is performed on the first frequency band image and the second frequency band image respectively based on the first pseudo-color eigenvalue and the second pseudo-color eigenvalue, the first frequency band image and the second frequency band image that have been subjected to pseudo-color removal processing are synthesized, and a corrected image is obtained. This scheme processes the image in the YUV color space, separates the chromaticity and brightness, and ensures that the image brightness is not affected during the pseudo-color correction process; through frequency division processing, the image to be corrected is divided into images of different frequency bands, and the images of different frequency bands are subjected to pseudo-color removal and detection processing and then synthesized, which can better retain the edge details while removing the pseudo-color; by calculating the pseudo-color eigenvalue, pseudo-color removal processing is performed according to the pseudo-color eigenvalue, and the difference between the real color details and the pseudo-color is achieved, thereby suppressing the obvious color overflow or color loss at the real color edge.

[0052] based on Figure 2 The embodiment shown, Figure 3 A detailed flowchart of an image processing method proposed in the present disclosure is further shown. Figure 2 The embodiment shown, Figure 3 The following steps are included.

[0053] Step 301: Obtain an image to be corrected, where the image to be corrected is represented in a YUV color space.

[0054] In the embodiment of the present disclosure, step 301 includes: acquiring an initial image, where the initial image is represented in an RGB color space; and performing conversion processing on the initial image to obtain an image to be corrected.

[0055] Specifically, the process of detecting and removing pseudo-color in this solution needs to be performed in the YUV space with brightness and chromaticity separation. The picture obtained in the application scenario is generally an RGB image, so it is necessary to convert the input RGB image into a YUV color space representation as the image to be corrected. Similarly, after pseudo-color correction, the corrected image needs to be inversely converted into an RGB image output. There are many conversion standards for the process of realizing the conversion, which is specifically determined by the color gamut standard used for color correction in the channel where the overall pseudo-color area is located.

[0056] For example, the commonly used conversion standards are BT.601, BT.709, BT.2020, etc. In different standards, the conversion formulas used for converting RGB space to YUV space and YUV space to RGB space can be expressed by Formula 1 and Formula 2 respectively:

[0057]

[0058]

[0059] Step 302: Perform frequency division processing on the image to be corrected to obtain a first frequency band image and a second frequency band image.

[0060] According to the image to be corrected in the YUV color space, the data of the YUV channel is subjected to frequency division processing, and pseudo color correction is performed after the frequency division processing, such as Figure 4 The frequency division processing method can be implemented by constructing a Gaussian pyramid and a Laplacian pyramid, or by other methods. The frequency division processing method is not limited in the present disclosure.

[0061] Specifically, step 302 includes: down-sampling the image to be corrected to obtain a first frequency band image; and using the image to be corrected as a second frequency band image.

[0062] For example, downsampling is achieved by filtering the image to be corrected to obtain an approximate image of the corrected image, and deleting the even rows and even columns of the approximate image. The image to be corrected is downsampled to obtain a low-resolution image with a resolution of 1 / 2*1 / 2 or 1 / 4*1 / 4 of the original resolution, which is used as the first frequency band image. In addition, if downsampling is continued, many low-resolution sub-images can be obtained, and the image pyramid gradually decreases from bottom to top, and then scale analysis is performed on each layer of the pyramid. In this embodiment, only the first frequency band image is taken as an example, and they are not listed one by one. The image to be corrected with the original resolution is a high-resolution image, which is at the bottom of the image pyramid as the second frequency band image.

[0063] Step 303: for each pixel in the first frequency band image and the second frequency band image, determine the corresponding brightness value, edge intensity value and chromaticity value.

[0064] Specifically, the brightness value calculation, edge intensity extraction and chromaticity value calculation are performed pixel by pixel for the YUV data of each frequency band to obtain the brightness value, edge intensity and chromaticity value of the pixel point, such as Figure 6 shown.

[0065] The specific implementation details of the brightness value calculation are: Luma, a numerical value representing the brightness, is calculated based on the area information near the pixel point. The mean value can be calculated using a 3*3 or 5*5 window centered on the pixel point or by adding Gaussian weights.

[0066] For example, Y is calculated by using a 3*3 window with Gaussian weights. 11 The brightness value of the pixel, Y 11 The brightness value of the pixel is expressed in Luma 11Indicates. The calculation window size is 3*3, and the Y channel data Y of the 9 pixels included in the 3*3 window 00-22 The average value is calculated with a specific weight, and the result is Y 11 The brightness value of a pixel is calculated as follows:

[0067] Luma 11 =(1*Y 00 +2*Y 01 +1*Y 02 +2*Y 10 +4*Y 11 +2*Y 12 +1*Y 20 +2*Y 21 +1*Y 22 ) / 16 (Formula 3)

[0068] The specific implementation details of edge strength extraction are: the numerical value E representing the edge strength is calculated based on the area information near the pixel point, and the local variance can be used using a 3*3 or 5*5 window centered on the pixel point, or the local edge response value can be calculated using first-order derivative operators such as Sobel and Prewitt.

[0069] The specific implementation details of the chromaticity value calculation are: Chroma, a numerical value representing the chromaticity size, is calculated based on the area information near the pixel point. The mean value can be calculated using a 3*3 or 5*5 window centered on the pixel point or by adding Gaussian weights.

[0070] For example, the 3*3 window can be used to calculate the representative U by adding Gaussian weights. 11 The chromaticity value of the pixel point, assuming that the input data in this example is 8 bits, the pixel value is between [0, 255], first of all, the U and V channel data of the 9 pixels included in the 3*3 window are respectively 00-22 、V 00-22 The average is calculated with specific weights, and the result is and The specific formula is as follows:

[0071]

[0072]

[0073] Afterwards and Subtract 128 and then take the square root and the square root. The result is U 11 The chromaticity value of a pixel is expressed as Chroma 11 , the specific formula is as follows:

[0074]

[0075] Step 304 , performing an interpolation operation based on the brightness value, edge intensity value, and chromaticity value of each pixel to obtain a first pseudo-color characteristic value corresponding to the first frequency band image and a second pseudo-color characteristic value corresponding to the second frequency band image.

[0076] Among them, from the law of pseudo-color, it is concluded that the area near the bright strong edge and low chroma value is the pseudo-color area. Therefore, after calculating the brightness value, edge intensity and chroma value, the possibility of the pixel being pseudo-color can be considered from these three factors, that is, the pseudo-color feature value of the pixel. Specifically, the present disclosure provides two solutions:

[0077] The first scheme performs interpolation operation according to the correspondence between the brightness value of each pixel and the brightness threshold to obtain the brightness characteristic value of each pixel; performs interpolation operation according to the correspondence between the edge intensity value of each pixel and the edge intensity threshold to obtain the edge intensity characteristic value of each pixel; performs interpolation operation according to the correspondence between the chromaticity value of each pixel and the chromaticity threshold to obtain the chromaticity characteristic value of each pixel; obtains the first pseudo-color characteristic value based on the brightness characteristic value, edge intensity characteristic value and chromaticity characteristic value of each pixel in the first frequency band image, and obtains the second pseudo-color characteristic value based on the brightness characteristic value, edge intensity characteristic value and chromaticity characteristic value of each pixel in the second frequency band image.

[0078] Let's take an example to illustrate the first approach:

[0079] According to the corresponding relationship between the brightness value of each pixel and the brightness threshold, an interpolation operation is performed to obtain the brightness characteristic value of each pixel. The calculation formula is shown in Formula 7. Among them, Luma represents the brightness value, LumaP represents the brightness characteristic value, which is used to measure the possibility of the pigment point becoming a pseudo-color from the brightness perspective, and TH1 and TH2 represent two different brightness thresholds. If the brightness value Luma of a certain pixel point is less than a certain brightness threshold TH1, the brightness characteristic value LumaP is 0; if the brightness value Luma is greater than or equal to a certain brightness threshold TH2, the brightness characteristic value LumaP is 1; for the pixel point whose brightness value is between the two brightness thresholds TH1 and TH2, LumaP performs interpolation calculation according to the specific brightness value, and the calculation result is between 0-1.

[0080]

[0081] According to the correspondence between the edge intensity value of each pixel and the edge intensity threshold, an interpolation operation is performed to obtain the edge intensity feature value of each pixel. The calculation formula is shown in Formula 8. Among them, E represents the edge intensity, EP represents the edge intensity feature value, which is used to measure the possibility of the pixel point becoming a pseudo-color in terms of the edge intensity angle, and TH1 and TH2 represent two different edge intensity thresholds. If the edge intensity E of a pixel point is less than a certain edge intensity threshold TH1, the edge intensity feature value EP is 0; the edge intensity E is greater than or equal to a certain edge intensity threshold TH2, and the edge intensity feature value EP is 1; for the pixel point whose edge intensity E is between the two edge intensity thresholds TH1 and TH2, EP is interpolated according to the specific edge intensity value, and the calculation result is between 0 and 1.

[0082]

[0083] According to the correspondence between the chromaticity value of each pixel and the chromaticity threshold, an interpolation operation is performed to obtain the chromaticity characteristic value of each pixel. The calculation formula is shown in Formula 9. Among them, Chroma represents the chromaticity value, ChromaP represents the chromaticity characteristic value, which is used to measure the possibility of the pixel becoming a pseudo-color from the chromaticity perspective, and TH1 and TH2 represent two different chromaticity thresholds. If the chromaticity value Chroma of a certain pixel point is greater than or equal to a certain chromaticity threshold TH1 and less than another chromaticity threshold TH2, the chromaticity characteristic value ChromaP is 1; if the chromaticity value Chroma is greater than or equal to a certain chromaticity threshold TH2, the chromaticity characteristic value ChromaP is 0; for the pixel point whose chromaticity value Chroma is less than the chromaticity threshold TH1, ChromaP performs interpolation calculation according to the specific chromaticity value, and the calculation result is between 0 and 1.

[0084]

[0085] Finally, the possibility of the pixel being a pseudo-color is considered from the above three factors. The brightness eigenvalue, edge intensity eigenvalue and chromaticity eigenvalue of each pixel in the first frequency band image are multiplied to obtain the first pseudo-color eigenvalue; the brightness eigenvalue, edge intensity eigenvalue and chromaticity eigenvalue of each pixel in the second frequency band image are multiplied to obtain the second pseudo-color eigenvalue. The calculation formula is shown in Formula 10, where LumaP represents the brightness eigenvalue, EP represents the edge intensity eigenvalue, and ChromaP represents the chromaticity eigenvalue. According to the above steps, it can be seen that the calculation result of P is between 0 and 1.

[0086] P=LumaP*EP*ChromP (Formula 10)

[0087] The second scheme determines the joint eigenvalue according to the brightness value and edge strength value of each pixel; performs interpolation operation according to the correspondence between the chromaticity value of each pixel and the chromaticity threshold to obtain the chromaticity eigenvalue; obtains the first pseudo-color eigenvalue based on the joint eigenvalue and the chromaticity eigenvalue of the first frequency band image, and obtains the second pseudo-color eigenvalue based on the joint eigenvalue and the chromaticity eigenvalue of the second frequency band image.

[0088] Here is an example to illustrate the second approach:

[0089] According to the brightness value and edge strength value of each pixel, the joint eigenvalue is calculated and determined. The specific calculation formula is shown in Formula 11. The product of the brightness value Luma and the edge strength value E determines a new measurement factor LE. LEP represents the joint eigenvalue, which is used to measure the possibility of the pixel point becoming a pseudo-color from the perspective of the joint factor. The joint eigenvalue LEP is determined according to the value of LE. If the LE of a certain pixel point is less than a certain joint threshold TH1, the joint eigenvalue LEP is 0; if the LE is greater than or equal to a certain joint threshold TH2, the joint eigenvalue LEP is 1; for pixels whose LE is between the two joint thresholds TH1 and TH2, LEP is interpolated according to the specific edge strength value, and the calculation result is between 0-1.

[0090]

[0091] According to the correspondence between the chromaticity value of each pixel and the chromaticity threshold, an interpolation operation is performed to obtain the chromaticity feature value. The calculation method is the same as that of the first solution. The specific calculation formula is expressed by Formula 9 and will not be repeated here.

[0092] The first pseudo-color eigenvalue can be obtained by multiplying the joint eigenvalue of the first frequency band image with the chromaticity eigenvalue, and the second pseudo-color eigenvalue can be obtained by multiplying the joint eigenvalue of the second frequency band image with the chromaticity eigenvalue. The specific calculation formula is shown in Formula 12, where P represents the pseudo-color eigenvalue, which can represent the first pseudo-color eigenvalue or the first pseudo-color eigenvalue, and is used to measure the possibility that the pixel point is a pseudo-color, LEP represents the joint eigenvalue, and ChromP represents the chromaticity eigenvalue. According to the above steps, the calculation result of P is between 0 and 1. :

[0093] P=LEP*ChromP (Formula 12)

[0094] Step 305 : performing pseudo color removal processing on the first frequency band image and the second frequency band image respectively based on the first pseudo color characteristic value and the second pseudo color characteristic value.

[0095] Specifically, after the pseudo-color detection step, a pseudo-color feature value is obtained, and pseudo-color removal processing is performed according to the pseudo-color feature value, such as Figure 5Pseudo-color removal can be specifically performed by using two methods, adaptive median filtering or desaturation, where the pseudo-color feature value controls the relevant weights, thereby controlling the strength of pseudo-color removal.

[0096] For example, the UV channel of each frequency band is subjected to median filtering with a window size of 3*3 or 5*5, and the value after median filtering is fused with the corresponding data of the UV channel input in the frequency band. The fusion weight is the pseudo-color feature value. Taking the U channel as an example, the specific formula is as follows:

[0097] U o =U i +P*MedianU (Formula 13)

[0098] In the above formula, U i U0 and U1 are the input data and output data of the U channel respectively. MedianU represents the result after median filtering, and P is the pseudo-color feature value.

[0099] For example, the pixel points determined as pseudo-color points can also be desaturated to reduce the saturation of the pseudo-color, so as to achieve a visual weakening effect. Specifically, an adjustment value is added to the U and V values ​​of each pixel of the first frequency band image, wherein the adjustment value is determined by the first pseudo-color characteristic value, and an adjustment value is added to the U and V values ​​of each pixel of the second frequency band image, wherein the adjustment value is determined by the second pseudo-color characteristic value. The specific formula is as follows:

[0100] U o =128+(1-P)*(U i -128) (Formula 14)

[0101] V o =128+(1-P)*(V i -128) (Formula 15)

[0102] Among them, U i U0 and U1 are the input data and output data of U channel respectively, V i , V0 are the input data and output data of the V channel respectively. Whether it is a pseudo-color is determined based on the pseudo-color characteristic value P. If P is 0, it means that the pixel does not have pseudo-color, and the above formula U and V values ​​will not change; if P is 1, it means that the probability of pseudo-color is the highest for the pixel, and an adjustment value of 128 will be added. According to the P value between 0-1, the adjustment value is controlled between 0-128.

[0103] Step 306 , synthesize the first frequency band image after pseudo color removal and the second frequency band image to obtain a corrected image.

[0104] Specifically, step 306 includes upsampling the first frequency band image after the pseudo color removal process to obtain the first frequency band image to be synthesized; downsampling and upsampling the second frequency band image after the pseudo color removal process in sequence to obtain a sampling result, and performing a first fusion process on the sampling result and the second frequency band image after the pseudo color removal process to obtain the second frequency band image to be synthesized; performing a second fusion process on the first frequency band image to be synthesized and the second frequency band image to be synthesized to obtain a corrected image, such as Figure 4 shown.

[0105] In one implementation of the present disclosure, upsampling can be implemented by interpolation or deconvolution, for example, using a traditional interpolation method in the non-edge area of ​​the image and a special interpolation method in the edge area, so as to retain image details with a small amount of calculation. Downsampling can be achieved by filtering the image to obtain the original approximate image, and then deleting the even rows and even columns of the approximate image. The first fusion process refers to a difference process. Specifically, the second frequency band image that has been processed by pseudo-color removal is sequentially downsampled and upsampled by the above-mentioned sampling method to obtain a sampling result, and a difference process is performed between the sampling result and the channel value of each pixel in the second frequency band image that has been processed by pseudo-color removal. The second fusion process refers to a summation process, in which the channel values ​​of each pixel of the first frequency band image to be synthesized and the second frequency band image to be synthesized are summed.

[0106] In summary, this solution can solve the problem of pseudo-color blocks or color edges with large width and area that cannot be removed by constructing an image pyramid and performing multi-scale and multi-resolution processing; pseudo-color detection is performed by using the brightness, frequency, saturation and other information of the local area in the image, and the algorithm logic for calculating the pseudo-color eigenvalue is simple and the calculation amount is small, and the power consumption of software or hardware implementation is low; according to the pseudo-color eigenvalue, the control weights of the adaptive median filtering and desaturation operations are determined to achieve differential filtering processing for real color details and pseudo-colors, thereby suppressing obvious color overflow or color loss at the edges of real colors; in addition, the frequency division processing method adopted in this solution can also be used in the method of removing Y channel brightness noise and UV channel common color noise, and the method of removing pseudo-color can be combined with the noise reduction method to achieve the purpose of sharing resources and saving resources.

[0107] Therefore, the present disclosure has the following beneficial effects:

[0108] 1. The present disclosure constructs an image pyramid for multi-scale and multi-resolution processing, which can solve the problem of pseudo color blocks or color edges with large width and area that cannot be removed.

[0109] 2. The present invention utilizes the brightness, frequency, saturation and other information of the local area in the image to detect pseudo-color. The algorithm for calculating the pseudo-color feature value has simple logic and small calculation amount, and the power consumption of software or hardware implementation is low.

[0110] 3. The present invention determines the control weights of adaptive median filtering and desaturation operations according to the pseudo-color feature values, and implements differential filtering for real color details and pseudo-colors, thereby suppressing obvious color overflow or color loss at the edges of real colors.

[0111] 4. The frequency division processing method disclosed in the present invention can also be used in the method of removing the brightness noise of the Y channel and the common color noise of the UV channel. The method of removing the pseudo color and the noise reduction method can be combined to achieve the purpose of sharing resources and saving resources.

[0112] Figure 7 FIG. 7 is a schematic diagram of the structure of an image processing device 700 provided in an embodiment of the present disclosure. Figure 7 As shown, the image processing device comprises:

[0113] An acquisition module 710 is used to acquire an image to be corrected, where the image to be corrected is represented in a YUV color space;

[0114] The frequency division module 720 is used to perform frequency division processing on the image to be corrected to obtain a first frequency band image and a second frequency band image;

[0115] A detection module 730 is used to perform pseudo color detection on the first frequency band image and the second frequency band image respectively, and determine a first pseudo color feature value corresponding to the first frequency band image and a second pseudo color feature value corresponding to the second frequency band image;

[0116] A processing module 740 is used to perform pseudo color removal processing on the first frequency band image and the second frequency band image respectively based on the first pseudo color characteristic value and the second pseudo color characteristic value;

[0117] The synthesis module 750 is used to synthesize the first frequency band image and the second frequency band image after the pseudo color removal process to obtain a corrected image.

[0118] In some embodiments, the acquisition module 710 is specifically used to: acquire an initial image, where the initial image is represented in an RGB color space, and perform conversion processing on the initial image to obtain an image to be corrected.

[0119] In some embodiments, the frequency division module 720 is specifically used to: downsample the image to be corrected to obtain a first frequency band image; and use the image to be corrected as a second frequency band image.

[0120] In some embodiments, the detection module 730 is specifically used to: determine the corresponding brightness value, edge intensity value and chromaticity value for each pixel in the first frequency band image and the second frequency band image; perform interpolation operations on the brightness value, edge intensity value and chromaticity value of each pixel to obtain a first pseudo-color characteristic value corresponding to the first frequency band image and a second pseudo-color characteristic value corresponding to the second frequency band image.

[0121] In some embodiments, the detection module 730 is also used to: perform interpolation operations according to the correspondence between the brightness value of each pixel and the brightness threshold to obtain the brightness characteristic value of each pixel; perform interpolation operations according to the correspondence between the edge intensity value of each pixel and the edge intensity threshold to obtain the edge intensity characteristic value of each pixel; perform interpolation operations according to the correspondence between the chromaticity value of each pixel and the chromaticity threshold to obtain the chromaticity characteristic value of each pixel; obtain the first pseudo-color characteristic value based on the brightness characteristic value, edge intensity characteristic value and chromaticity characteristic value of each pixel in the first frequency band image, and obtain the second pseudo-color characteristic value based on the brightness characteristic value, edge intensity characteristic value and chromaticity characteristic value of each pixel in the second frequency band image.

[0122] In some embodiments, the detection module 730 is specifically used to: determine a joint eigenvalue based on the brightness value and edge strength value of each pixel; perform interpolation operations based on the correspondence between the chromaticity value of each pixel and the chromaticity threshold to obtain a chromaticity eigenvalue; obtain a first pseudo-color eigenvalue based on the joint eigenvalue and the chromaticity eigenvalue of the first frequency band image, and obtain a second pseudo-color eigenvalue based on the joint eigenvalue and the chromaticity eigenvalue of the second frequency band image.

[0123] In some embodiments, the processing module 740 is specifically configured to: perform pseudo color removal processing on the first frequency band image and the second frequency band image respectively based on the first pseudo color characteristic value and the second pseudo color characteristic value.

[0124] In some embodiments, the synthesis module 750 is specifically used to: upsample the first frequency band image that has been processed with pseudo color removal to obtain the first frequency band image to be synthesized; downsample and upsample the second frequency band image that has been processed with pseudo color removal in sequence to obtain a sampling result, and perform a first fusion process on the sampling result and the second frequency band image that has been processed with pseudo color removal to obtain the second frequency band image to be synthesized; perform a second fusion process on the first frequency band image to be synthesized and the second frequency band image to be synthesized to obtain a corrected image.

[0125] Since the device provided in the embodiment of the present disclosure corresponds to the methods provided in the above-mentioned embodiments, the implementation of the method is also applicable to the device provided in the embodiment and will not be described in detail in this embodiment.

[0126] In the embodiments provided in the present application, the methods and devices provided in the embodiments of the present application are introduced. In order to implement the functions in the methods provided in the embodiments of the present application, the electronic device may include a hardware structure and a software module, and implement the functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. A function of the functions may be executed in the form of a hardware structure, a software module, or a hardware structure plus a software module.

[0127] Figure 8 8 is a block diagram of an electronic device 800 for implementing the above-mentioned image processing method according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0128] Reference Figure 8 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0129] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0130] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0131] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.

[0132] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0133] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0134] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0135] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative positioning of components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0136] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G LTE, 5G NR (NewRadio) or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0137] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0138] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 520 of the electronic device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0139] An embodiment of the present disclosure further proposes a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the image processing method described in the above embodiment of the present disclosure.

[0140] An embodiment of the present disclosure further provides a computer program product, including a computer program, which executes the image processing method described in the above embodiment of the present disclosure when a processor is used.

[0141] An embodiment of the present disclosure also proposes a chip, which includes one or more interface circuits and one or more processors; the interface circuit is used to receive signals from a memory of an electronic device and send signals to the processor, the signals include computer instructions stored in the memory, and when the processor executes the computer instructions, the electronic device executes the image processing method described in the above embodiments of the present disclosure.

[0142] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0143] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0144] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.

[0145] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processing module, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (control method), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or otherwise processing in a suitable manner if necessary, and then stored in a computer memory.

[0146] It should be understood that the various parts of the embodiments of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0147] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0148] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium. The above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0149] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.

Claims

1. An image processing method, characterized in that: The method comprises: Acquire an image to be corrected, where the image to be corrected is represented in a YUV color space; Down-sampling the image to be corrected to obtain a first frequency band image, and using the image to be corrected as a second frequency band image; For each pixel in the first frequency band image and the second frequency band image, determining a corresponding brightness value, an edge intensity value, and a chromaticity value; Performing an interpolation operation on the brightness value, edge intensity value, and chromaticity value of each pixel to obtain a first pseudo-color characteristic value corresponding to the first frequency band image and a second pseudo-color characteristic value corresponding to the second frequency band image; Based on the first pseudo color characteristic value and the second pseudo color characteristic value, respectively performing pseudo color removal processing on the first frequency band image and the second frequency band image; The first frequency band image after pseudo color removal is synthesized with the second frequency band image to obtain a corrected image.

2. The method according to claim 1, characterized in that The interpolation operation is performed based on the brightness value, edge intensity value, and chromaticity value of each pixel to obtain a first pseudo-color feature value corresponding to the first frequency band image and a second pseudo-color feature value corresponding to the second frequency band image, including: According to the corresponding relationship between the brightness value of each pixel and the brightness threshold, an interpolation operation is performed to obtain the brightness characteristic value of each pixel; According to the corresponding relationship between the edge intensity value of each pixel and the edge intensity threshold, an interpolation operation is performed to obtain the edge intensity feature value of each pixel; According to the corresponding relationship between the chromaticity value of each pixel and the chromaticity threshold, an interpolation operation is performed to obtain the chromaticity characteristic value of each pixel; The first pseudo-color feature value is obtained based on the brightness feature value, edge intensity feature value and chromaticity feature value of each pixel in the first frequency band image, and the second pseudo-color feature value is obtained based on the brightness feature value, edge intensity feature value and chromaticity feature value of each pixel in the second frequency band image.

3. The method according to claim 1, characterized in that: The interpolation operation is performed based on the brightness value, edge intensity value, and chromaticity value of each pixel to obtain a first pseudo-color feature value corresponding to the first frequency band image and a second pseudo-color feature value corresponding to the second frequency band image, including: Determine a joint feature value according to the brightness value and edge strength value of each pixel; According to the corresponding relationship between the chromaticity value of each pixel and the chromaticity threshold, an interpolation operation is performed to obtain a chromaticity feature value; The first pseudo-color feature value is obtained based on the joint feature value and the chromaticity feature value of the first frequency band image, and the second pseudo-color feature value is obtained based on the joint feature value and the chromaticity feature value of the second frequency band image.

4. The method according to claim 3, characterized in that The synthesizing the processed first frequency band image and the second frequency band image to obtain the corrected image comprises: Up-sampling the first frequency band image after pseudo color removal to obtain the first frequency band image to be synthesized; Downsampling and upsampling the second frequency band image after the pseudo color removal process are performed in sequence to obtain sampling results, and performing a first fusion process on the sampling results and the second frequency band image after the pseudo color removal process to obtain the second frequency band image to be synthesized; The first frequency band image to be synthesized and the second frequency band image to be synthesized are subjected to a second fusion process to obtain the corrected image.

5. The method according to any one of claims 1 to 4, characterized in that Before acquiring the image to be corrected, the method further includes: Acquire an initial image, wherein the initial image is represented in an RGB color space; Performing conversion processing on the initial image to obtain the image to be corrected; and After obtaining the corrected image, the method further includes: The corrected image is subjected to an inverse conversion process to obtain an output image, wherein the output image is represented in an RGB color space.

6. An image processing device, characterized in that: The device comprises: An acquisition module is used to acquire an image to be corrected, wherein the image to be corrected is represented in a YUV color space; A frequency division module, used for down-sampling the image to be corrected, obtaining a first frequency band image, and using the image to be corrected as a second frequency band image; a detection module, configured to determine, for each pixel in the first frequency band image and the second frequency band image, a corresponding brightness value, an edge intensity value, and a chromaticity value; An interpolation module, used for performing an interpolation operation on the brightness value, edge intensity value and chromaticity value of each pixel to obtain a first pseudo-color characteristic value corresponding to the first frequency band image and a second pseudo-color characteristic value corresponding to the second frequency band image; A processing module, configured to perform pseudo color removal processing on the first frequency band image and the second frequency band image respectively based on the first pseudo color characteristic value and the second pseudo color characteristic value; The synthesis module is used to synthesize the first frequency band image and the second frequency band image after pseudo color removal to obtain a corrected image.

7. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 5.

8. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-5.

9. A chip, characterized in that: It comprises one or more interface circuits and one or more processors; the interface circuit is used to receive a signal from a memory of an electronic device and send the signal to the processor, the signal includes a computer instruction stored in the memory, and when the processor executes the computer instruction, the electronic device executes the method described in any one of claims 1 to 5.