Image processing method, device and equipment
By separating the brightness and chroma of the image, and performing interpolation processing based on the target chroma difference value, the problem of aliasing and color drawing when enlarging the image is solved, and the image processing effect is improved.
Patent Information
- Application Number
- CN202410733890.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-09-10
AI Technical Summary
The existing technology has problems of jaggedness and color drawing during image enlargement processing, resulting in poor processing effects.
By splitting the initial image into a brightness image and a chroma image, performing brightness super-resolution processing and interpolation processing of chroma difference values, and combining the target interpolation algorithm and adaptive weighting of the interpolation coefficients to generate the target image.
It effectively alleviates the problems of aliasing and color drawing caused by the large deviation between chroma and brightness, and improves the image processing effect.
Smart Images

Figure CN118628418A
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular, to an image processing method, device and equipment. Background Art
[0002] In various image processing scenarios, image magnification processing may be involved. The image magnification processing may increase the number of pixels of an image through an interpolation algorithm, so that the size of the image is increased or the quality is enhanced.
[0003] In the related art, the following method can be used to perform image magnification processing: perform Gaussian smoothing filtering on the low-resolution initial image to obtain a filtered image; first perform vertical interpolation processing on the filtered image based on the bicubic interpolation algorithm to obtain a vertical interpolation image, and then perform horizontal interpolation processing on the vertical interpolation image to obtain a horizontal interpolation image; perform sharpening processing on the target interpolation image to obtain a high-resolution target image.
[0004] However, when the related art method performs image magnification processing, the target image has aliasing and color drawing problems, resulting in poor processing effect of the image magnification processing. Summary of the invention
[0005] The embodiments of the present application provide an image processing method, apparatus and device to solve the problem in the related art that when performing image magnification processing, a target image has aliasing and color drawing problems, resulting in a poor processing effect of the image magnification processing.
[0006] In a first aspect, an embodiment of the present application provides an image processing method, the method comprising:
[0007] Acquire an initial image, and split the initial image into an initial brightness image and an initial chrominance image;
[0008] Performing brightness super-resolution processing on the initial brightness image to obtain a target brightness image;
[0009] Determine a target chromaticity difference value corresponding to each initial pixel in a plurality of initial pixels of the initial chromaticity image to obtain a plurality of target chromaticity difference values;
[0010] Performing interpolation processing on the initial chromaticity image based on the multiple target chromaticity difference values to obtain a target chromaticity image;
[0011] The target brightness image and the target chrominance image are combined to obtain a target image.
[0012] In a possible implementation manner, performing interpolation processing on the initial chromaticity image based on the multiple target chromaticity difference values to obtain a target chromaticity image includes:
[0013] Determining a plurality of insertion pixels and an insertion position of each insertion pixel in the initial chrominance image according to an initial size and a target size of the initial chrominance image;
[0014] Determine a target interpolation algorithm among multiple preset interpolation algorithms;
[0015] Determining a target chromaticity of each inserted pixel according to the target interpolation algorithm, the initial size, the target size, the insertion position of each inserted pixel, and the plurality of target chromaticity difference values;
[0016] The target chromaticity image is generated based on the initial chromaticity image, the target chromaticity of each inserted pixel, and the insertion position.
[0017] In a possible implementation manner, for any inserted pixel, determining the target chromaticity of the inserted pixel according to the target interpolation algorithm, the initial size, the target size, the insertion position of the inserted pixel, and the multiple target chromaticity difference values includes:
[0018] Determining a target initial pixel corresponding to the interpolation pixel from among the plurality of initial pixels according to the target interpolation algorithm and the interpolation position of the interpolation pixel;
[0019] Determine, among the plurality of target chromaticity difference values, a target chromaticity difference value corresponding to the target initial pixel;
[0020] Determine a target interpolation coefficient corresponding to the target initial pixel according to the target chromaticity difference value corresponding to the target initial pixel, the initial size, the target size, the target interpolation algorithm, and the insertion position of the insertion pixel;
[0021] The target brightness is determined according to a target interpolation coefficient corresponding to the target initial pixel and an initial brightness of the target initial pixel.
[0022] In a possible implementation manner, determining the target interpolation coefficient corresponding to the target initial pixel according to the target chromaticity difference value corresponding to the target initial pixel, the initial size, the target size, the target interpolation algorithm, and the insertion position of the insertion pixel includes:
[0023] Determine a target first weighting coefficient corresponding to the target initial pixel according to a target chromaticity difference value corresponding to the target initial pixel and a mapping relationship, wherein the mapping relationship includes a plurality of chromaticity difference values and a first weighting coefficient corresponding to each chromaticity difference value;
[0024] Determine a first interpolation coefficient and a second interpolation coefficient corresponding to the target initial pixel according to the initial size, the target size, the target interpolation algorithm and the insertion position of the insertion pixel;
[0025] The target interpolation coefficient is determined based on the target first weighting coefficient, the first interpolation coefficient, and the second interpolation coefficient.
[0026] In a possible implementation, determining the first interpolation coefficient and the second interpolation coefficient corresponding to the target initial pixel according to the initial size, the target size, the target interpolation algorithm, and the insertion position of the insertion pixel includes:
[0027] Determine a target filter according to the target interpolation algorithm and the target ambiguity, and generate the first interpolation coefficient based on the target filter according to the initial size, the target size and the insertion position;
[0028] The second interpolation coefficient is calculated based on the target interpolation algorithm according to the initial size, the target size and the insertion position.
[0029] In a possible implementation manner, determining the target interpolation coefficient based on the target first weighting coefficient, the first interpolation coefficient, and the second interpolation coefficient includes:
[0030] Determining a second weighting coefficient according to the target first weighting coefficient and the maximum weighting coefficient;
[0031] Performing weighted processing on the first interpolation coefficient based on the target first weighted coefficient to obtain a weighted first interpolation coefficient;
[0032] performing weighted processing on the second interpolation coefficient based on the second weighted coefficient to obtain a weighted second interpolation coefficient;
[0033] The weighted first interpolation coefficient and the weighted second interpolation coefficient are added to obtain the target interpolation coefficient.
[0034] In a possible implementation, the initial chromaticity image includes a first chromaticity image and a second chromaticity image; and for any initial pixel, determining a target chromaticity difference value corresponding to the initial pixel includes:
[0035] In the first chromaticity image, determining a first chromaticity difference value corresponding to the initial pixel;
[0036] In the second chromaticity image, determining a second chromaticity difference value corresponding to the initial pixel;
[0037] A target chromaticity difference value corresponding to the initial pixel is determined according to the first chromaticity difference value and the second chromaticity difference value.
[0038] In a possible implementation, determining, in the first chromaticity image, a first chromaticity difference value corresponding to the initial pixel includes:
[0039] In the first chrominance image, determining a horizontal difference value and / or a vertical difference value corresponding to the initial pixel;
[0040] Based on the horizontal difference value and / or the vertical difference value, the first chrominance difference value is determined.
[0041] In a second aspect, an embodiment of the present application provides an image processing device, including:
[0042] An acquisition module, used for acquiring an initial image;
[0043] A splitting module, used for splitting the initial image into an initial brightness image and an initial chrominance image;
[0044] A super-resolution processing module, used for performing a brightness super-resolution process on the initial brightness image to obtain a target brightness image;
[0045] A determination module, configured to determine a target chromaticity difference value corresponding to each initial pixel in a plurality of initial pixels of the initial chromaticity image, to obtain a plurality of target chromaticity difference values;
[0046] An interpolation processing module, configured to perform interpolation processing on the initial chromaticity image based on the multiple target chromaticity difference values to obtain a target chromaticity image;
[0047] The combination processing module is used to perform combination processing on the target brightness image and the target chromaticity image to obtain a target image.
[0048] In a possible implementation, the interpolation processing module is specifically used to:
[0049] Determining a plurality of insertion pixels and an insertion position of each insertion pixel in the initial chrominance image according to an initial size and a target size of the initial chrominance image;
[0050] Determine a target interpolation algorithm among multiple preset interpolation algorithms;
[0051] Determining a target chromaticity of each inserted pixel according to the target interpolation algorithm, the initial size, the target size, the insertion position of each inserted pixel, and the plurality of target chromaticity difference values;
[0052] The target chromaticity image is generated based on the initial chromaticity image, the target chromaticity of each inserted pixel, and the insertion position.
[0053] In a possible implementation manner, for any interpolated pixel, the interpolation processing module is further configured to:
[0054] Determining a target initial pixel corresponding to the interpolation pixel from among the plurality of initial pixels according to the target interpolation algorithm and the interpolation position of the interpolation pixel;
[0055] Determine, among the plurality of target chromaticity difference values, a target chromaticity difference value corresponding to the target initial pixel;
[0056] Determine a target interpolation coefficient corresponding to the target initial pixel according to the target chromaticity difference value corresponding to the target initial pixel, the initial size, the target size, the target interpolation algorithm, and the insertion position of the insertion pixel;
[0057] The target brightness is determined according to a target interpolation coefficient corresponding to the target initial pixel and an initial brightness of the target initial pixel.
[0058] In a possible implementation manner, the interpolation processing module is further configured to:
[0059] Determine a target first weighting coefficient corresponding to the target initial pixel according to a target chromaticity difference value corresponding to the target initial pixel and a mapping relationship, wherein the mapping relationship includes a plurality of chromaticity difference values and a first weighting coefficient corresponding to each chromaticity difference value;
[0060] Determine a first interpolation coefficient and a second interpolation coefficient corresponding to the target initial pixel according to the initial size, the target size, the target interpolation algorithm and the insertion position of the insertion pixel;
[0061] The target interpolation coefficient is determined based on the target first weighting coefficient, the first interpolation coefficient, and the second interpolation coefficient.
[0062] In a possible implementation manner, the interpolation processing module is further configured to:
[0063] Determine a target filter according to the target interpolation algorithm and the target ambiguity, and generate the first interpolation coefficient based on the target filter according to the initial size, the target size and the insertion position;
[0064] The second interpolation coefficient is calculated based on the target interpolation algorithm according to the initial size, the target size and the insertion position.
[0065] In a possible implementation manner, the interpolation processing module is further configured to:
[0066] Determining a second weighting coefficient according to the target first weighting coefficient and the maximum weighting coefficient;
[0067] Performing weighted processing on the first interpolation coefficient based on the target first weighted coefficient to obtain a weighted first interpolation coefficient;
[0068] performing weighted processing on the second interpolation coefficient based on the second weighted coefficient to obtain a weighted second interpolation coefficient;
[0069] The weighted first interpolation coefficient and the weighted second interpolation coefficient are added to obtain the target interpolation coefficient.
[0070] In a possible implementation manner, the initial chromaticity image includes a first chromaticity image and a second chromaticity image, and for any initial pixel, the determining module is specifically configured to:
[0071] In the first chromaticity image, determining a first chromaticity difference value corresponding to the initial pixel;
[0072] In the second chromaticity image, determining a second chromaticity difference value corresponding to the initial pixel;
[0073] A target chromaticity difference value corresponding to the initial pixel is determined according to the first chromaticity difference value and the second chromaticity difference value.
[0074] In a possible implementation manner, the determining module is further configured to:
[0075] In the first chrominance image, determining a horizontal difference value and / or a vertical difference value corresponding to the initial pixel;
[0076] Based on the horizontal difference value and / or the vertical difference value, the first chrominance difference value is determined.
[0077] In a third aspect, the present application provides a chip having a computer program stored thereon, wherein when the computer program is executed by the chip, the method as described in any one of the first aspects is implemented.
[0078] In a fourth aspect, the present application provides a chip module having a computer program stored thereon, and when the computer program is executed by the chip module, the method as described in any one of the first aspects is implemented.
[0079] In a fifth aspect, an embodiment of the present application provides an image processing device, including:
[0080] at least one processor; and
[0081] a memory communicatively connected to the at least one processor; wherein,
[0082] 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 so that the at least one processor can perform any method described in the first aspect.
[0083] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in any one of the first aspects.
[0084] In a seventh aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements any method in the first aspect when executed by a processor.
[0085] The image processing method, device and equipment provided in the embodiments of the present application take into account both brightness and chromaticity processing during image processing, and interpolate the initial chromaticity image based on the target chromaticity difference value corresponding to each initial pixel, which is beneficial to reducing the difference between chromaticity and brightness, thereby effectively alleviating the aliasing and color drawing problems of the target image caused by the large deviation between the chromaticity and brightness of the target image, and is beneficial to improving the image processing effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0086] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0087] Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application;
[0088] Figure 2 Schematic diagram of the image processing method provided in the embodiment of the present application Figure 1 ;
[0089] Figure 3 A schematic diagram of a process for determining an inserted pixel provided in an embodiment of the present application;
[0090] Figure 4 Schematic diagram of the image processing method provided in the embodiment of the present application Figure 2 ;
[0091] Figure 5 A schematic diagram of an initial image provided in an embodiment of the present application;
[0092] Figure 6 Schematic diagram of the image processing method provided in the embodiment of the present application Figure 3 ;
[0093] Figure 7A schematic diagram of a piecewise linear curve provided in an embodiment of the present application;
[0094] Figure 8 A schematic diagram of the process of the image processing method provided in an embodiment of the present application;
[0095] Fig. 9 A schematic diagram of the structure of an image processing device provided in an embodiment of the present application;
[0096] Fig.10 A schematic diagram of the structure of an image processing device provided in an embodiment of the present application.
[0097] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0098] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0099] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0100] First, the terms involved in the embodiments of the present application are explained.
[0101] Input resolution (Rin for short): the resolution of the input image to be processed.
[0102] Output resolution (Rout for short): It is the resolution of the output image after image processing is completed.
[0103] Image resolution conversion: A method of processing an image of input resolution to obtain an image of output resolution, where the resolution of the output image can be higher, lower or equal to the resolution of the input image.
[0104] Super-resolution imaging (SR) algorithm: It can also be called super-resolution algorithm. SR algorithm is an image processing technology used to enhance image resolution. When the input image and the output image have the same size, the SR algorithm can process the input image to make the output image have better visual effects and details than the input image.
[0105] The input image (IMGLR) during image super-resolution processing is referred to as a low-resolution image, and the resolution of the low-resolution image is Rin.
[0106] High-resolution image (HRorg) in the original image: This image is the target image that the super-resolution model needs to learn, and the resolution of this image is Rout.
[0107] The output image after image super-resolution processing (IMGHR) is referred to as a high-resolution image, and the resolution of the high-resolution image is Rout.
[0108] Image chroma processing (ICP): A method of processing the chroma channel of an image using a resampling algorithm with a low-pass effect.
[0109] For ease of understanding, below, combined Figure 1 , the application scenarios provided by the embodiments of the present application are described.
[0110] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present application. Figure 1 , including an image processing device, which can receive an input image and perform image enlargement processing on the input image to obtain an output image.
[0111] The size of the input image may be m1×n1, and the size of the output image may be m2×n2, where m2>m1, n2>n1.
[0112] In the related art, the following methods can be used to perform image magnification processing: Gaussian smoothing filtering is performed on the low-resolution initial image to obtain a filtered image; based on the bicubic interpolation algorithm, the filtered image is first interpolated in the vertical direction to obtain a vertical interpolation image, and then the vertical interpolation image is interpolated in the horizontal direction to obtain a horizontal interpolation image; the target interpolation image is sharpened to obtain a high-resolution target image. However, when the related art method performs image magnification processing, the target image has aliasing and color drawing problems, resulting in poor processing effect of image magnification processing.
[0113] In view of this, an embodiment of the present application provides an image processing method, which can obtain an initial image and split the initial image into an initial brightness image and an initial chromaticity image; perform brightness super-resolution processing on the initial brightness image to obtain a target brightness image; determine the target chromaticity difference value corresponding to each initial pixel in the multiple initial pixels of the initial chromaticity image to obtain multiple target chromaticity difference values; perform interpolation processing on the initial chromaticity image based on the multiple target chromaticity difference values to obtain a target chromaticity image; combine the target brightness image and the target chromaticity image to obtain a target image. The above method takes into account brightness and chromaticity processing during image processing, and performs interpolation processing on the initial chromaticity image based on the target chromaticity difference value corresponding to each initial pixel, which is beneficial to reducing the difference between chromaticity and brightness, thereby effectively alleviating the aliasing and color drawing problems of the target image caused by the large deviation between the chromaticity and brightness of the target image, and is beneficial to improving the image processing effect.
[0114] The image processing method, device and equipment provided in the embodiments of the present application can be used in image processing chips related to image acquisition, image post-processing and image display. Specifically, the image processing method, device and equipment can be used in the fields of cameras, image processing platforms and display devices, and can also be used in any field other than the above fields. The embodiments of the present application do not limit the application fields of the image processing method, device and equipment.
[0115] The method shown in the present application is described below through specific embodiments. It should be noted that the following embodiments can exist independently or in combination with each other, and the same or similar contents will not be described repeatedly in different embodiments.
[0116] Figure 2 Schematic diagram of the image processing method provided in the embodiment of the present application Figure 1 . See Figure 2 , the method may include:
[0117] S201, obtaining an initial image, and splitting the initial image into an initial brightness image and an initial chrominance image.
[0118] The execution subject of the embodiment of the present application may be an image processing device, or a chip, a chip module or an image processing device arranged in the image processing device, etc. The image processing device may be implemented by software, or by a combination of software and hardware.
[0119] The initial image may be acquired from an image acquisition device; or, the initial image may be acquired from a preset storage space; or, the initial image may be received from a client.
[0120] Exemplarily, the image acquisition device may be a camera.
[0121] The splitting method in the related art can be used to split the initial image into an initial luminance image and an initial chrominance image. The embodiment of the present application does not limit the type of the splitting method.
[0122] The initial image includes a plurality of initial pixels, the initial luminance image includes initial luminances of the plurality of initial pixels, and the initial chrominance image includes initial chrominances of the plurality of initial pixels.
[0123] S202: Perform brightness super-resolution processing on the initial brightness image to obtain a target brightness image.
[0124] Optionally, a brightness super-resolution algorithm may be used to perform brightness super-resolution processing on the brightness channel. The brightness super-resolution algorithm may include one or more super-resolution algorithms in the related art. The embodiment of the present application does not limit the specific type of the super-resolution algorithm.
[0125] The super-resolution algorithm in the related art can be a traditional interpolation method (for example, an interpolation super-resolution algorithm) or a super-resolution algorithm based on deep learning (for example, a super-resolution algorithm based on a convolutional neural network).
[0126] S203 . Determine a target chromaticity difference value corresponding to each initial pixel in the initial chromaticity image, and obtain a plurality of target chromaticity difference values.
[0127] The initial chrominance image includes a first chrominance image and a second chrominance image. Assuming that the initial image is in YUV format, the initial chrominance image may be a (U, V) image, the first chrominance image may be a chrominance image corresponding to the U component, and the second chrominance image may be a chrominance image corresponding to the V component.
[0128] Optionally, the target chromaticity difference value corresponding to each initial pixel may be determined in the following manner: in the first chromaticity image, a first chromaticity difference value corresponding to the initial pixel is determined; in the second chromaticity image, a second chromaticity difference value corresponding to the initial pixel is determined; and based on the first chromaticity difference value and the second chromaticity difference value, a target chromaticity difference value corresponding to the initial pixel is determined.
[0129] Optionally, the largest chromaticity difference value between the first chromaticity difference value and the second chromaticity difference value may be determined as the target chromaticity difference value. Alternatively, the chromaticity difference value average of the first chromaticity difference value and the second chromaticity difference value may be calculated, and the chromaticity difference value average may be determined as the target chromaticity difference value. In some examples, the target chromaticity difference value may also select other methods in the related art, and the present application does not limit the method for determining the target chromaticity difference value.
[0130] It can be understood that the process of determining the first chromaticity difference value corresponding to the first chromaticity image and the process of determining the second chromaticity difference value corresponding to the second chromaticity image are similar. Figure 4 In the embodiment, the process of determining the chromaticity difference values corresponding to each chromaticity image is described in detail by taking determining the first chromaticity difference value corresponding to the first chromaticity image as an example.
[0131] S204 , performing interpolation processing on the initial chromaticity image based on multiple target chromaticity difference values to obtain a target chromaticity image.
[0132] Optionally, multiple insertion pixels and the insertion position of each insertion pixel in the initial chromaticity image can be determined based on the initial size and target size of the initial chromaticity image; a target interpolation algorithm can be determined among multiple preset interpolation algorithms; a target chromaticity of each insertion pixel can be determined based on the target interpolation algorithm, the initial size, the target size, the insertion position of each insertion pixel and multiple target chromaticity difference values; and a target chromaticity image can be generated based on the initial chromaticity image, the target chromaticity of each insertion pixel and the insertion position.
[0133] The target size may be determined based on the image processing requirement information input by the user. For example, the image processing requirement information may include the target size; or the image processing requirement information may include a magnification factor, and the image processing device may determine the target size based on the magnification factor and the initial size.
[0134] Figure 3 A schematic diagram of a process for determining an inserted pixel provided in an embodiment of the present application. Figure 5 , the initial size of the initial chromaticity image is 2×2, with a total of 4 pixels; the target size is 4×4, with a total of 16 pixels, including 4 initial pixels and 12 inserted pixels (indicated by shadows in the figure).
[0135] The plurality of preset image interpolation algorithms may include but are not limited to: a nearest neighbor interpolation algorithm, a bilinear interpolation algorithm, a bicubic interpolation algorithm, a Lanczos interpolation algorithm and a spline interpolation algorithm.
[0136] It should be noted that the process of determining the target chromaticity image will be Figure 6 The details are described in the examples.
[0137] S205: Combine the target brightness image and the target chromaticity image to obtain a target image.
[0138] The size of the target image can be larger than the size of the original image.
[0139] The target brightness image and the target chrominance image may be combined and processed using a combination processing method in the related art. The embodiment of the present application does not limit the type of the combination processing method.
[0140] The format of the target image may be a YUV format. After the target image is obtained, the format of the target image may be converted based on subsequent processing requirements of the target image.
[0141] For example, after obtaining the target image, if the target image needs to be stored in RGB format, the format of the target image needs to be converted from YUV format to RGB format.
[0142] The image processing method provided in the embodiment of the present application takes into account both brightness and chromaticity processing during image processing, and performs interpolation processing on the initial chromaticity image based on the target chromaticity difference value corresponding to each initial pixel, which is beneficial to reducing the difference between chromaticity and brightness, thereby effectively alleviating the aliasing and color drawing problems of the target image caused by the large deviation between the chromaticity and brightness of the target image, and is beneficial to improving the image processing effect.
[0143] The above embodiment relates to the process of determining the chromaticity difference value corresponding to each chromaticity image. Figure 4 Taking determining the first chromaticity difference value corresponding to the first chromaticity image as an example, the process of determining the chromaticity difference values corresponding to each chromaticity image is described in detail.
[0144] Figure 4 Schematic diagram of the image processing method provided in the embodiment of the present application Figure 2 . See Figure 4 , the method may include:
[0145] S401 . Determine a horizontal difference value and / or a vertical difference value corresponding to an initial pixel in a first chrominance image.
[0146] In the embodiment of the present application, a horizontal difference value or a vertical difference value, or a horizontal difference value and a vertical difference value of the initial pixel may be determined.
[0147] In one implementation, for any initial pixel, the first chromaticities of multiple initial pixels in the horizontal direction within the target area corresponding to the initial pixel can be determined to obtain multiple first chromaticities; the maximum first chromaticity and the minimum first chromaticity are determined among the multiple first chromaticities; and the difference between the maximum first chromaticity and the minimum first chromaticity is determined as the horizontal difference value corresponding to the initial pixel in the first chromaticity image.
[0148] The vertical difference value may be determined in the following manner: the first chromaticities of multiple initial pixels in the vertical direction within the target area corresponding to the initial pixel may be determined to obtain multiple first chromaticities; the maximum first chromaticity and the minimum first chromaticity are determined among the multiple first chromaticities; and the difference between the maximum first chromaticity and the minimum first chromaticity is determined as the vertical difference value corresponding to the initial pixel in the first chromaticity image.
[0149] It should be noted that the target area may be an area of any size in the first chromaticity image, and the present application does not limit the scope of the target area.
[0150] For ease of understanding, below, combined Figure 5 , the process of determining the chromaticity difference value is explained.
[0151] Figure 5 This is a schematic diagram of an initial image provided in an embodiment of the present application. Figure 5 , the size of the initial image is 4×4, with 4 initial pixels in each row and 4 initial pixels in each column, for a total of 16 initial pixels.
[0152] For the first initial pixel in the first row and the first column of the initial image (indicated by shading in the figure), for example, the first chromaticity values of the four pixels in the first row are: chromaticity value 1, chromaticity value 2, chromaticity value 3 and chromaticity value 4, respectively. These four first chromaticity values are sorted in order from large to small as follows: chromaticity value 2>chromaticity value 3>chromaticity value 1>chromaticity value 4, then the horizontal difference value corresponding to the first initial pixel is =chromaticity value 2-chromaticity value 4.
[0153] For example, in Figure 5 In the figure, the first chromaticity values of the four pixels in the first column are chromaticity value 1, chromaticity value 5, chromaticity value 9 and chromaticity value 13 respectively. These four first chromaticity values are sorted from large to small as follows: chromaticity value 9>chromaticity value 13>chromaticity value 5>chromaticity value 1. Then the vertical difference value corresponding to the first initial pixel is =chromaticity value 9-chromaticity value 1.
[0154] S402: Determine a first chrominance difference value based on the horizontal difference value and / or the vertical difference value.
[0155] Optionally, the first chromaticity difference value may be a horizontal difference value; or, the first chromaticity difference value may be a vertical difference value; or, the first chromaticity difference value may be a chromaticity difference value calculated based on the horizontal difference value and the vertical difference value.
[0156] For example, the first chromaticity difference value may satisfy the following formula:
[0157]
[0158] The image processing method provided by the embodiment of the present application can determine the first chromaticity difference value of each initial pixel in the first chromaticity image, so as to subsequently determine the target chromaticity difference value of the first chromaticity image based on the first chromaticity difference value.
[0159] Figure 6 Schematic diagram of the image processing method provided in the embodiment of the present application Figure 3 . See Figure 6 , the method may include:
[0160] S601: Acquire an initial image.
[0161] It should be noted that the specific execution process of S601 can refer to the specific execution process of S201, which will not be repeated here.
[0162] S602: Determine the format of the initial image.
[0163] The format of the original image can be a target format or a non-target format.
[0164] The target format can be YUV format, where Y represents brightness and U and V represent chrominance.
[0165] The non-target format may be an RGB format, where R represents red, G represents green, and B represents blue.
[0166] S603: When the format of the initial image is a non-target format, perform format conversion processing on the initial image to obtain an initial image in a target format.
[0167] The format conversion processing method or tool in the related art may be used to perform format conversion processing on the initial image, and the embodiment of the present application does not limit the specific type of the format conversion processing method or tool.
[0168] S604: Split the initial image into an initial luminance image and an initial chrominance image.
[0169] S605 , performing brightness super-resolution processing on the initial brightness image to obtain a target brightness image.
[0170] S606 . Determine a target chromaticity difference value corresponding to each initial pixel in the initial chromaticity image, and obtain a plurality of target chromaticity difference values.
[0171] It should be noted that the specific execution process of S604 to S606 can refer to the specific execution process of S201 to S203, which will not be described in detail here.
[0172] In the following, in combination with S607 to S615, the process of determining the target chromaticity image is described in detail.
[0173] S607 . Determine a plurality of insertion pixels and an insertion position of each insertion pixel in the initial image according to the initial size and the target size of the initial chromaticity image.
[0174] S608: Determine a target interpolation algorithm from among multiple preset interpolation algorithms.
[0175] It should be noted that the specific execution process of S607 and S608 can refer to the specific execution process of S204, which will not be described in detail here.
[0176] S609 , determining a target initial pixel corresponding to the inserted pixel from a plurality of initial pixels according to the target interpolation algorithm and the insertion position of the inserted pixel.
[0177] The number of target initial pixels may be one or more.
[0178] It is understandable that when interpolation processing is performed based on different interpolation algorithms, the number of target initial pixels corresponding to the inserted pixel is different. For example, when the target interpolation algorithm is the nearest neighbor interpolation algorithm, the target initial pixel corresponding to the inserted pixel may be 1. When the target interpolation algorithm is the bilinear interpolation algorithm, the process includes two interpolation processes: a horizontal interpolation process and a vertical interpolation process. In each interpolation process (horizontal interpolation process or vertical interpolation process), the inserted pixel may correspond to two target initial pixels.
[0179] When the insertion position of the inserted pixel is different, the target initial pixel corresponding to the inserted pixel is different. Figure 3 In the example, the target interpolation algorithm is the nearest neighbor interpolation algorithm. If the inserted pixel is B3 and the position of the inserted pixel B3 is closest to the initial pixel A1, the initial pixel A1 is determined as the target initial pixel corresponding to the inserted pixel B3; if the inserted pixel is B10 and the position of the inserted pixel B10 is closest to the initial pixel A4, the initial pixel A4 is determined as the target initial pixel corresponding to the inserted pixel B10.
[0180] S610 : Determine a target chromaticity difference value corresponding to a target initial pixel among a plurality of target chromaticity difference values.
[0181] Based on the correspondence between each initial pixel and the target chromaticity difference value, the target chromaticity difference value corresponding to each target initial pixel may be queried from a plurality of target chromaticity difference values.
[0182] The target interpolation coefficient corresponding to the target initial pixel can be determined according to the target chromaticity difference value corresponding to the target initial pixel, the initial size, the target size, the target interpolation algorithm and the insertion position of the insertion pixel, referring to and executing the following S611 to S615:
[0183] S611 . Determine a target first weighting coefficient corresponding to the target initial pixel according to the target chromaticity difference value corresponding to the target initial pixel and a mapping relationship.
[0184] The mapping relationship includes a plurality of chromaticity difference values and a first weighting coefficient corresponding to each chromaticity difference value. It should be noted that the mapping relationship has the following rule: the larger the chromaticity difference value, the smaller the first weighting coefficient.
[0185] Optionally, the mapping relationship may be presented as a piecewise linear curve. Figure 7 , the piecewise mapping curve is schematically illustrated.
[0186] Figure 7 A schematic diagram of a piecewise linear curve provided in an embodiment of the present application. Figure 7 In this piecewise linear curve, the horizontal axis represents the chromaticity difference value, and the vertical axis represents the first weighting coefficient. As the chromaticity difference value increases, the first weighting coefficient gradually decreases.
[0187] For example, compared Figure 7 In the Q1 point (chromaticity difference value 1, first weighting coefficient 1) and Q2 point (chromaticity difference value 2, first weighting coefficient 2), the chromaticity difference value 2 is greater than the chromaticity difference value 1, but the first weighting coefficient 2 is less than the first weighting coefficient 1.
[0188] S612: Determine a first interpolation coefficient and a second interpolation coefficient corresponding to the target initial pixel according to the initial size, the target size, the target interpolation algorithm, and the insertion position of the insertion pixel.
[0189] Optionally, the first interpolation coefficient and the second interpolation coefficient can be determined in the following manner: determine the target filter according to the target interpolation algorithm and the target blur, and generate the second interpolation coefficient based on the target filter according to the initial size, target size and insertion position; calculate the first interpolation coefficient based on the target interpolation algorithm according to the initial size, target size and insertion position.
[0190] For example, the target interpolation algorithm may be a bicubic interpolation algorithm. When interpolation processing is performed based on the bicubic interpolation algorithm, each inserted pixel needs to correspond to 16 target initial pixels. The 16 target initial pixels closest to the inserted pixel can be determined based on the insertion position corresponding to each inserted pixel, and based on the coordinate positions of the 16 target initial pixels and the insertion position of the inserted pixel, the interpolation coefficient calculation method of the bicubic interpolation algorithm in the related technology is used to calculate the first interpolation coefficient corresponding to each target initial pixel. The embodiment of the present application does not limit the interpolation coefficient calculation method of the bicubic interpolation algorithm.
[0191] The target number of target initial pixels corresponding to the interpolated pixels may be determined based on the target interpolation algorithm, and the number of taps of the target filter may be set according to the target number. For example, the target interpolation algorithm may be a bicubic interpolation algorithm, and the target number of target initial pixels corresponding to the interpolated pixels is 4, so 4 taps need to be set for the target filter.
[0192] Based on the target ambiguity input by the user, a target filter that meets the target ambiguity can be selected from multiple preset filters. For example, the target filter can be a Gaussian resampling filter.
[0193] S613: Determine a target interpolation coefficient based on the target first weighting coefficient, the first interpolation coefficient, and the second interpolation coefficient.
[0194] In one implementation, the second weighting coefficient can be determined based on the target first weighting coefficient and the maximum weighting coefficient; the first interpolation coefficient is weighted based on the target first weighting coefficient to obtain the weighted first interpolation coefficient; the second interpolation coefficient is weighted based on the second weighting coefficient to obtain the weighted second interpolation coefficient; the weighted first interpolation coefficient and the weighted second interpolation coefficient are added to obtain the target interpolation coefficient.
[0195] The second weighting coefficient may be a difference between the maximum weighting coefficient and the first weighting coefficient. The maximum weighting coefficient may be 1, and the first weighting coefficient and the second weighting coefficient may be any value between 0 and 1.
[0196] For example, the interpolation coefficient corresponds to 4 target initial pixels, and the target interpolation coefficient corresponding to each target initial pixel is shown in Table 1.
[0197] Table 1
[0198]
[0199] S614: Determine a target brightness according to a target interpolation coefficient corresponding to the target initial pixel and an initial brightness of the target initial pixel.
[0200] For example, the inserted pixel is the inserted pixel 1 in Table 1, and the target brightness calculation process is shown in Table 2.
[0201] Table 2
[0202]
[0203] S615 , generating a target chromaticity image based on the initial chromaticity image, the target chromaticity of each inserted pixel, and the insertion position.
[0204] Optionally, a plurality of insertion pixels may be inserted into the initial chromaticity image according to the insertion position of each insertion pixel and the target chromaticity to obtain the target chromaticity image.
[0205] S616: Combine the target brightness image and the target chromaticity image to obtain a target image.
[0206] It should be noted that the specific execution process of S616 can refer to the specific execution process of S205, which will not be repeated here.
[0207] The image processing method provided by the embodiment of the present application takes into account both brightness and chromaticity processing during image processing. Specifically, the initial image is split into an initial chromaticity image and an initial brightness image; the initial brightness image is subjected to brightness super-resolution processing to obtain a target brightness image; for the initial chromaticity image, the target initial pixels corresponding to each inserted pixel are determined based on the target interpolation algorithm, and different interpolation methods are used to determine the two sets of interpolation coefficients corresponding to the target initial pixels; and the target chromaticity difference value of each target initial pixel is determined, and the target first weighting coefficient is determined based on the target chromaticity difference value; the two sets of interpolation coefficients corresponding to the target initial pixel can be adaptively weighted based on the target first weighting coefficient, which is beneficial to reducing the difference between chromaticity and brightness, and can alleviate the jagged problem of the edge of the color object caused by the excessive brightness and chromaticity difference values during image interpolation, and can also remove the horizontal and vertical drawing problems caused by the excessive interpolation ratio in the color flat area, which is beneficial to improving the image processing effect.
[0208] Figure 8 This is a schematic diagram of the image processing method provided in the embodiment of the present application. Figure 8The image processing device receives an initial image, the format of the initial image is a non-target format (IMG format), and converts the format of the initial image into a target format (YUV format); splits the initial image to obtain an initial chromaticity image and an initial luminance image; performs luminance super-resolution processing on the initial luminance image to obtain a target luminance image; determines a target chromaticity difference value of each initial pixel in the initial chromaticity image, and determines a target first weighting coefficient corresponding to each initial pixel based on the target chromaticity difference value; determines a plurality of insertion pixels based on an initial size and a target size of the initial chromaticity image, and an insertion position of each insertion pixel in the initial chromaticity image; determines a target initial pixel corresponding to each insertion pixel based on the insertion position of each insertion pixel and a target interpolation algorithm; determines a target filter based on the target interpolation algorithm and a target fuzziness. filter, and determine the first interpolation coefficient of the target initial pixel corresponding to each inserted pixel based on the target filter according to the initial size, target size and insertion position; determine the second interpolation coefficient of the target initial pixel corresponding to each inserted pixel based on the target interpolation algorithm according to the initial size, target size and insertion position; determine the target brightness of each inserted pixel based on the target first weighting coefficient corresponding to each initial pixel and the first interpolation coefficient and the second interpolation coefficient of the target initial pixel corresponding to each inserted pixel; interpolate multiple inserted pixels in the initial chromaticity image based on the target brightness and insertion position of each inserted pixel to obtain a target chromaticity image; combine the target chromaticity image and the target brightness image to obtain a target image; convert the format of the target image from the target format to the format required by the receiving end. For example, if the target format is YUV format and the format required by the receiving end 1 is IMG format, the target image is converted from YUV format to IMG format.
[0209] The image processing method provided in the embodiment of the present application takes into account both brightness and chromaticity processing during image processing, and performs interpolation processing on the initial chromaticity image based on the target chromaticity difference value corresponding to each initial pixel, which is beneficial to reducing the difference between chromaticity and brightness, thereby effectively alleviating the aliasing and color drawing problems of the target image caused by the large deviation between the chromaticity and brightness of the target image, and is beneficial to improving the image processing effect.
[0210] Fig. 9 This is a schematic diagram of the structure of an image processing device provided in an embodiment of the present application. The image processing device may be a chip or a chip module. Fig. 9 , the image processing device 10 may include:
[0211] An acquisition module 11 is used to acquire an initial image;
[0212] A splitting module 12, used for splitting the initial image into an initial brightness image and an initial chrominance image;
[0213] A super-resolution processing module 13 is used to perform a brightness super-resolution process on the initial brightness image to obtain a target brightness image;
[0214] A determination module 14 is used to determine a target chromaticity difference value corresponding to each initial pixel in the initial chromaticity image, and obtain a plurality of target chromaticity difference values;
[0215] An interpolation processing module 15 is used to perform interpolation processing on the initial chromaticity image based on the multiple target chromaticity difference values to obtain a target chromaticity image;
[0216] The combination processing module 16 is used to perform combination processing on the target brightness image and the target chrominance image to obtain a target image.
[0217] In a possible implementation manner, the interpolation processing module 15 is specifically used for:
[0218] Determining a plurality of insertion pixels and an insertion position of each insertion pixel in the initial chrominance image according to an initial size and a target size of the initial chrominance image;
[0219] Determine a target interpolation algorithm among multiple preset interpolation algorithms;
[0220] Determining a target chromaticity of each inserted pixel according to the target interpolation algorithm, the initial size, the target size, the insertion position of each inserted pixel, and the plurality of target chromaticity difference values;
[0221] The target chromaticity image is generated based on the initial chromaticity image, the target chromaticity of each inserted pixel, and the insertion position.
[0222] In a possible implementation manner, for any interpolated pixel, the interpolation processing module 15 is further configured to:
[0223] Determining a target initial pixel corresponding to the interpolation pixel from among the plurality of initial pixels according to the target interpolation algorithm and the interpolation position of the interpolation pixel;
[0224] Determine, among the plurality of target chromaticity difference values, a target chromaticity difference value corresponding to the target initial pixel;
[0225] Determine a target interpolation coefficient corresponding to the target initial pixel according to the target chromaticity difference value corresponding to the target initial pixel, the initial size, the target size, the target interpolation algorithm, and the insertion position of the insertion pixel;
[0226] The target brightness is determined according to a target interpolation coefficient corresponding to the target initial pixel and an initial brightness of the target initial pixel.
[0227] In a possible implementation manner, the interpolation processing module 15 is further configured to:
[0228] Determine a target first weighting coefficient corresponding to the target initial pixel according to a target chromaticity difference value corresponding to the target initial pixel and a mapping relationship, wherein the mapping relationship includes a plurality of chromaticity difference values and a first weighting coefficient corresponding to each chromaticity difference value;
[0229] Determine a first interpolation coefficient and a second interpolation coefficient corresponding to the target initial pixel according to the initial size, the target size, the target interpolation algorithm and the insertion position of the insertion pixel;
[0230] The target interpolation coefficient is determined based on the target first weighting coefficient, the first interpolation coefficient, and the second interpolation coefficient.
[0231] In a possible implementation manner, the interpolation processing module 15 is further configured to:
[0232] Determine a target filter according to the target interpolation algorithm and the target ambiguity, and generate the first interpolation coefficient based on the target filter according to the initial size, the target size and the insertion position;
[0233] The second interpolation coefficient is calculated based on the target interpolation algorithm according to the initial size, the target size and the insertion position.
[0234] In a possible implementation manner, the interpolation processing module 15 is further configured to:
[0235] Determining a second weighting coefficient according to the target first weighting coefficient and the maximum weighting coefficient;
[0236] Performing weighted processing on the first interpolation coefficient based on the target first weighted coefficient to obtain a weighted first interpolation coefficient;
[0237] performing weighted processing on the second interpolation coefficient based on the second weighted coefficient to obtain a weighted second interpolation coefficient;
[0238] The weighted first interpolation coefficient and the weighted second interpolation coefficient are added to obtain the target interpolation coefficient.
[0239] In a possible implementation manner, the initial chromaticity image includes a first chromaticity image and a second chromaticity image. For any initial pixel, the determining module 14 is specifically configured to:
[0240] In the first chromaticity image, determining a first chromaticity difference value corresponding to the initial pixel;
[0241] In the second chromaticity image, determining a second chromaticity difference value corresponding to the initial pixel;
[0242] A target chromaticity difference value corresponding to the initial pixel is determined according to the first chromaticity difference value and the second chromaticity difference value.
[0243] In a possible implementation manner, the determining module 14 is further configured to:
[0244] In the first chrominance image, determining a horizontal difference value and / or a vertical difference value corresponding to the initial pixel;
[0245] Based on the horizontal difference value and / or the vertical difference value, the first chrominance difference value is determined.
[0246] The image processing device provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.
[0247] Fig.10 This is a schematic diagram of the structure of the image processing device provided in the embodiment of the present application. Fig.10 The image processing device 20 may include: a memory 21 and a processor 22. Exemplarily, the memory 21 and the processor 22 are interconnected via a bus 23.
[0248] The memory 21 is used to store program instructions;
[0249] The processor 22 is used to execute the program instructions stored in the memory, so as to enable the image processing device 20 to execute the method shown in the above method embodiment.
[0250] It is understood that the image processing device may include at least one processor and a memory in communication with the at least one processor. 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 so that the at least one processor can execute the method shown in the above embodiment.
[0251] The image processing device provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.
[0252] An embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the above-mentioned image processing method.
[0253] The embodiment of the present application may also provide a computer program product, including a computer program, which can implement the above-mentioned image processing method when executed by a processor.
[0254] All or part of the steps of the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a readable memory. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned memory (storage medium) includes: read-only memory (ROM), random access memory (RAM), flash memory, hard disk, solid state drive, magnetic tape, floppy disk, optical disc and any combination thereof.
[0255] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0256] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0257] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0258] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
[0259] In the present application, the term "include" and its variations may refer to non-restrictive inclusion; the term "or" and its variations may refer to "and / or". The terms "first", "second", etc. in the present application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. In the present application, "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previously associated objects are in an "or" relationship.
Claims
1. An image processing method, characterized in that: The method comprises: Acquire an initial image, and split the initial image into an initial brightness image and an initial chrominance image; Performing brightness super-resolution processing on the initial brightness image to obtain a target brightness image; Determine a target chromaticity difference value corresponding to each initial pixel in a plurality of initial pixels of the initial chromaticity image to obtain a plurality of target chromaticity difference values; Performing interpolation processing on the initial chromaticity image based on the multiple target chromaticity difference values to obtain a target chromaticity image; The target brightness image and the target chrominance image are combined to obtain a target image.
2. The method according to claim 1, characterized in that The interpolation process is performed on the initial chromaticity image based on the multiple target chromaticity difference values to obtain a target chromaticity image, comprising: Determining a plurality of insertion pixels and an insertion position of each insertion pixel in the initial chrominance image according to an initial size and a target size of the initial chrominance image; Determine a target interpolation algorithm among multiple preset interpolation algorithms; Determining a target chromaticity of each inserted pixel according to the target interpolation algorithm, the initial size, the target size, the insertion position of each inserted pixel, and the plurality of target chromaticity difference values; The target chromaticity image is generated based on the initial chromaticity image, the target chromaticity of each inserted pixel, and the insertion position.
3. The method according to claim 2, characterized in that For any inserted pixel, determining the target chromaticity of the inserted pixel according to the target interpolation algorithm, the initial size, the target size, the insertion position of the inserted pixel and the multiple target chromaticity difference values includes: Determining a target initial pixel corresponding to the interpolation pixel from among the plurality of initial pixels according to the target interpolation algorithm and the interpolation position of the interpolation pixel; Determine, among the plurality of target chromaticity difference values, a target chromaticity difference value corresponding to the target initial pixel; Determine a target interpolation coefficient corresponding to the target initial pixel according to the target chromaticity difference value corresponding to the target initial pixel, the initial size, the target size, the target interpolation algorithm, and the insertion position of the insertion pixel; The target brightness is determined according to a target interpolation coefficient corresponding to the target initial pixel and an initial brightness of the target initial pixel.
4. The method according to claim 3, characterized in that The determining, according to the target chromaticity difference value corresponding to the target initial pixel, the initial size, the target size, the target interpolation algorithm, and the insertion position of the insertion pixel, a target interpolation coefficient corresponding to the target initial pixel comprises: Determining a target first weighting coefficient corresponding to the target initial pixel according to a target chromaticity difference value corresponding to the target initial pixel and a mapping relationship, wherein the mapping relationship includes a plurality of chromaticity difference values and a first weighting coefficient corresponding to each chromaticity difference value; Determine a first interpolation coefficient and a second interpolation coefficient corresponding to the target initial pixel according to the initial size, the target size, the target interpolation algorithm and the insertion position of the insertion pixel; The target interpolation coefficient is determined based on the target first weighting coefficient, the first interpolation coefficient, and the second interpolation coefficient.
5. The method according to claim 4, characterized in that The step of determining the first interpolation coefficient and the second interpolation coefficient corresponding to the target initial pixel according to the initial size, the target size, the target interpolation algorithm and the insertion position of the insertion pixel comprises: Determine a target filter according to the target interpolation algorithm and the target ambiguity, and generate the first interpolation coefficient based on the target filter according to the initial size, the target size and the insertion position; The second interpolation coefficient is calculated based on the target interpolation algorithm according to the initial size, the target size and the insertion position.
6. The method according to claim 4 or 5, characterized in that: The determining the target interpolation coefficient based on the target first weighting coefficient, the first interpolation coefficient and the second interpolation coefficient comprises: Determining a second weighting coefficient according to the target first weighting coefficient and the maximum weighting coefficient; Performing weighted processing on the first interpolation coefficient based on the target first weighted coefficient to obtain a weighted first interpolation coefficient; performing weighted processing on the second interpolation coefficient based on the second weighted coefficient to obtain a weighted second interpolation coefficient; The weighted first interpolation coefficient and the weighted second interpolation coefficient are added to obtain the target interpolation coefficient.
7. The method according to any one of claims 1 to 6, characterized in that: The initial chrominance image includes a first chrominance image and a second chrominance image; For any initial pixel, determining a target chromaticity difference value corresponding to the initial pixel includes: In the first chromaticity image, determining a first chromaticity difference value corresponding to the initial pixel; In the second chromaticity image, determining a second chromaticity difference value corresponding to the initial pixel; A target chromaticity difference value corresponding to the initial pixel is determined according to the first chromaticity difference value and the second chromaticity difference value.
8. The method according to claim 7, characterized in that Determining, in the first chromaticity image, a first chromaticity difference value corresponding to the initial pixel includes: In the first chrominance image, determining a horizontal difference value and / or a vertical difference value corresponding to the initial pixel; Based on the horizontal difference value and / or the vertical difference value, the first chrominance difference value is determined.
9. An image processing device, characterized in that: include: An acquisition module, used for acquiring an initial image; A splitting module, used for splitting the initial image into an initial brightness image and an initial chrominance image; A super-resolution processing module, used for performing a brightness super-resolution process on the initial brightness image to obtain a target brightness image; A determination module, configured to determine a target chromaticity difference value corresponding to each initial pixel in a plurality of initial pixels of the initial chromaticity image, to obtain a plurality of target chromaticity difference values; An interpolation processing module, configured to perform interpolation processing on the initial chromaticity image based on the multiple target chromaticity difference values to obtain a target chromaticity image; The combination processing module is used to perform combination processing on the target brightness image and the target chromaticity image to obtain a target image.
10. An image processing 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 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 8 when executed by a processor.
12. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 8 when being executed by a processor.
