Image de-interlacing method and device for super-resolution reconstruction

By identifying and adjusting pixel interleaving information, the online computing problem of image compression and super-resolution reconstruction in video encoding and decoding is solved, the effect of reducing data reading bandwidth and computational complexity is achieved, and efficient image processing in the video encoding and decoding process is achieved. .

CN113610705BActive Publication Date: 2024-10-15ALLWINNER TECH CO LTD
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202110698509.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-23
Publication Date
2024-10-15
Estimated Expiration
2041-06-23

AI Technical Summary

Technical Problem

During the video encoding and decoding process, image compression and super-resolution reconstruction are difficult to implement online operations, resulting in increased data reading bandwidth and computational workload, which cannot achieve the goal of saving bandwidth. The cache commonly used in the existing technology cannot effectively solve the pixel interleaving problem. .

Method used

By determining the reconstruction base image and the super-resolution reconstruction amplification coefficient, the pixel interleaving information in the target reconstructed image is identified, and the mapping coordinates of the reconstructed base image are adjusted based on this information to realize the downward shift of the pixel macroblock, thereby reducing the data reading bandwidth. and the amount of operations.

Benefits of technology

It effectively reduces the data reading bandwidth and computational workload during super-resolution reconstruction, enabling online image decompression and super-resolution reconstruction, and solving the problem of increased data bandwidth and computational workload caused by pixel interleaving.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113610705B_ABST
    Figure CN113610705B_ABST
Patent Text Reader

Abstract

The present invention discloses an image de-interlacing method and device for super-resolution reconstruction, the method comprising: determining a reconstruction base image and a super-resolution reconstruction magnification factor; determining pixel interlacing information in a target reconstructed image; the target reconstructed image is the image corresponding to the reconstruction base image after reconstruction; according to the pixel interlacing information and the super-resolution reconstruction magnification factor, determining the reconstruction displacement information corresponding to the reconstructed base image; the reconstruction displacement information is used to indicate the distance by which the mapping coordinates of the image macroblocks with pixel interlacing in the target reconstructed image are shifted downward when the reconstructed base image is super-reconstructed. It can be seen that the present invention can adjust the position of the mapping coordinates during image reconstruction according to the reconstructed pixel interlacing situation in the image, thereby effectively reducing the data reading bandwidth requirements and the amount of calculation when the super-resolution reconstruction is finally performed, and further enabling online image decompression and super-resolution reconstruction to be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to an image de-interlacing method and device for super-resolution reconstruction. Background Art

[0002] In order to achieve higher-quality video transmission, the common method in the industry is to combine image super-resolution reconstruction technology to reduce bandwidth and memory pressure. For example, the common "fake 4K cameras" on the market obtain low-resolution images from the camera, or first downsample the high-resolution images obtained by the camera to save resources, and only before encoding, perform image super-resolution reconstruction to obtain high-resolution 4K images, and finally encode and record the 4K images. At the same time, the low-resolution images in the process are compressed in combination with image compression technology to achieve the purpose of maximizing bandwidth and memory savings.

[0003] However, for scenarios such as video encoding and decoding that require block-by-block processing, image compression and super-resolution reconstruction are difficult to implement online operations. In the prior art, the two modules are usually two independent processes, first decompressing to obtain the entire image, and then performing super-resolution reconstruction. It is precisely for this reason that the purpose of image compression cannot be achieved, so in chip-level video image processing solutions, image compression and super-resolution reconstruction are usually not used in cascade at the same time. In scenarios such as video encoding that require block-by-block output, it is difficult to achieve online decompression and super-resolution reconstruction for the following reasons:

[0004] In the process of image super-resolution reconstruction, each pixel of the enlarged image needs to be mapped to the original image according to the magnification to obtain the corresponding sub-pixel position, and then the integer pixels in the neighborhood of the position are taken and interpolated to obtain the pixel value of the sub-pixel position as the final pixel value of the super-resolution image.

[0005] However, for commonly used compression algorithms, compressed macroblocks are usually related to each other, that is, it is impossible to achieve independent decoding of macroblocks, and the decoding of any macroblock needs to refer to its domain information. For such scenarios, scaling technology is usually not applicable. Because when pixel interleaving occurs, adjacent image blocks are mapped to the same integer pixel row. At this time, since the integer pixels corresponding to the sub-pixel row have been included in the decoding process of the previous macroblock, when calculating the reconstructed image of the next mapping block, two compressed macroblocks need to be decoded as input at the same time, which means that the bandwidth for reading data will double, and the amount of calculation will also double, which is contrary to the goal of saving bandwidth that is expected to be achieved by introducing compression.

[0006] In the prior art, a common approach in hardware design for this type of interleaving problem is to use a buffer to cache the interleaved data. However, since the input data is in units of compressed macroblocks, and the interleaving situation is affected by the macroblock size and the scaling factor, it is difficult to determine the size of the buffer. In the worst case, all pixel rows need to be cached, and such a cost is unacceptable for hardware design. It can be seen that there are defects in the prior art that need to be solved urgently. Summary of the invention

[0007] The technical problem to be solved by the present invention is to provide an image deinterlacing method and device for super-resolution reconstruction, which can adjust the position of mapping coordinates during image reconstruction according to the interlacing of reconstructed pixels in the image, thereby effectively reducing the data reading bandwidth requirements and the amount of calculation during the final super-resolution reconstruction, thereby enabling online image decompression and super-resolution reconstruction to be realized.

[0008] In order to solve the above technical problems, the first aspect of the present invention discloses an image de-interlacing method for super-resolution reconstruction, the method comprising:

[0009] Determine the reconstruction base image and the super-resolution reconstruction magnification factor;

[0010] Determine pixel interleaving information in a target reconstructed image; the pixel interleaving information is used to indicate that there are at least two image blocks in the target reconstructed image whose reconstructed pixels are mapped to the same pixel row of the reconstructed basic image; the target reconstructed image is an image corresponding to the reconstructed basic image;

[0011] According to the pixel interleaving information and the super-resolution reconstruction magnification factor, reconstruction displacement information corresponding to the reconstructed basic image is determined; the reconstruction displacement information is used to indicate the distance by which the mapping coordinates of the image macroblocks with pixel interleaving in the target reconstructed image are offset downward when the reconstructed basic image is subjected to super-resolution reconstruction.

[0012] As an optional implementation, in the first aspect of the present invention, the super-resolution reconstruction magnification factor is greater than a preset reconstruction magnification factor corresponding to the reconstructed basic image.

[0013] As an optional implementation, in the first aspect of the present invention, determining the reconstruction displacement information corresponding to the reconstructed basic image according to the pixel interleaving information and the super-resolution reconstruction magnification factor includes:

[0014] For any reconstructed corresponding image block in the target reconstructed image, determine the original mapping coordinates corresponding to the reconstructed corresponding image block, and judge whether there are interleaved pixels between the reconstructed corresponding image block and a previous reconstructed corresponding image block; the previous reconstructed corresponding image block is a reconstructed corresponding image block that is one order before the reconstructed corresponding image block in the reconstruction order;

[0015] When the judgment result is no, the original mapping coordinates are not changed;

[0016] When the judgment result is yes, the mapping coordinate offset information is determined; the mapping coordinate offset information is used to indicate the downward offset distance of the original mapping coordinates of the reconstructed corresponding image block and all subsequent reconstructed corresponding image blocks.

[0017] As an optional embodiment, in the first aspect of the present invention, the interleaved pixels exist in the target compressed image, and when performing super-resolution reconstruction, they are simultaneously mapped to the pixel rows of the current decompressed corresponding image block and the previously decompressed corresponding image block.

[0018] As an optional implementation, in the first aspect of the present invention, determining the original mapping coordinates corresponding to the reconstructed corresponding image block includes:

[0019] Determine the pixel coordinates in the reconstructed corresponding image block;

[0020] According to the super-resolution reconstruction magnification factor, mapping the pixel coordinates to the reconstructed basic image to obtain corresponding sub-pixel coordinates in the reconstructed basic image;

[0021] The sub-pixel coordinates are determined as original mapping coordinates.

[0022] As an optional implementation, in the first aspect of the present invention, determining the mapping coordinate offset information includes:

[0023] Determine the integer coordinates of the reconstructed base image that are below the interlaced pixel and are closest to the interlaced pixel;

[0024] Mapping coordinate offset information is determined according to the distance between the integer coordinates and the interleaved pixels.

[0025] As an optional implementation, in the first aspect of the present invention, after determining the mapping coordinate offset information, the method further includes:

[0026] According to the mapping coordinate offset information and the original mapping coordinates, new original mapping coordinates of all subsequent reconstructed corresponding image blocks of the reconstructed corresponding image are determined.

[0027] A second aspect of an embodiment of the present invention discloses an image de-interlacing device for super-resolution reconstruction, the device comprising:

[0028] A coefficient determination module, used to determine the reconstruction base image and the super-resolution reconstruction magnification coefficient;

[0029] An interlacing determination module is used to determine pixel interlacing information in a target reconstructed image; the pixel interlacing information is used to indicate that there are at least two image blocks in the target reconstructed image whose reconstructed pixels are mapped to the same pixel row of the reconstructed basic image; the target reconstructed image is an image corresponding to the reconstructed basic image;

[0030] The displacement determination module is used to determine the reconstruction displacement information corresponding to the reconstructed basic image according to the pixel interlacing information and the super-resolution reconstruction magnification coefficient; the reconstruction displacement information is used to indicate the distance by which the mapping coordinates of the image macroblocks with pixel interlacing in the target reconstructed image are shifted downward when the reconstructed basic image is subjected to super-resolution reconstruction.

[0031] As an optional implementation, in the second aspect of the present invention, the super-resolution reconstruction magnification factor is greater than a preset reconstruction magnification factor corresponding to the reconstructed basic image.

[0032] As an optional implementation, in the second aspect of the present invention, the displacement determination module includes:

[0033] a judgment unit, configured to determine, for any reconstructed corresponding image block in the target reconstructed image, the original mapping coordinates corresponding to the reconstructed corresponding image block, and to judge whether there are interleaved pixels between the reconstructed corresponding image block and a previous reconstructed corresponding image block; the previous reconstructed corresponding image block is a reconstructed corresponding image block that is one order before the reconstructed corresponding image block in the reconstruction sequence;

[0034] A determination unit is used for not making changes to the original mapping coordinates when the judgment result is no, and for determining mapping coordinate offset information when the judgment result is yes; the mapping coordinate offset information is used to indicate a downward offset distance of the original mapping coordinates of the reconstructed corresponding image block and all subsequent reconstructed corresponding image blocks.

[0035] As an optional embodiment, in the second aspect of the present invention, the interleaved pixels exist in the target compressed image, and when performing super-resolution reconstruction, they are simultaneously mapped to the pixel rows of the current decompressed corresponding image block and the previously decompressed corresponding image block.

[0036] As an optional implementation, in the second aspect of the present invention, the specific manner in which the judgment unit determines the original mapping coordinates corresponding to the reconstructed corresponding image block includes:

[0037] Determine the pixel coordinates in the reconstructed corresponding image block;

[0038] According to the super-resolution reconstruction magnification factor, mapping the pixel coordinates to the reconstructed basic image to obtain corresponding sub-pixel coordinates in the reconstructed basic image;

[0039] The sub-pixel coordinates are determined as original mapping coordinates.

[0040] As an optional implementation, in the second aspect of the present invention, the specific manner in which the determining unit determines the mapping coordinate offset information includes:

[0041] Determine the integer coordinates of the reconstructed base image that are below the interlaced pixel and are closest to the interlaced pixel;

[0042] Mapping coordinate offset information is determined according to the distance between the integer coordinates and the interleaved pixels.

[0043] As an optional embodiment, in the second aspect of the present invention, after the determination unit determines the mapping coordinate offset information, it is also used to determine the new original mapping coordinates of all subsequent reconstructed corresponding image blocks of the reconstructed corresponding image based on the mapping coordinate offset information and the original mapping coordinates.

[0044] The third aspect of the present invention discloses another image de-interlacing device for super-resolution reconstruction, the device comprising:

[0045] A memory storing executable program code;

[0046] a processor coupled to the memory;

[0047] The processor calls the executable program code stored in the memory to execute part or all of the steps in the image de-interlacing method for super-resolution reconstruction disclosed in the first aspect of the present invention.

[0048] The fourth aspect of the present invention discloses a computer storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute some or all of the steps in the image deinterlacing method for super-resolution reconstruction disclosed in the first aspect of the present invention.

[0049] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0050] In an embodiment of the present invention, a method and device for image deinterlacing for super-resolution reconstruction are disclosed, the method comprising: determining a reconstructed base image and a super-resolution reconstruction magnification factor; determining pixel interlacing information in a target reconstructed image; the pixel interlacing information is used to indicate that there are at least two image blocks in the target reconstructed image that have reconstructed pixels mapped to the same pixel row of the reconstructed base image; the target reconstructed image is the image corresponding to the reconstructed base image after reconstruction; according to the pixel interlacing information and the super-resolution reconstruction magnification factor, determining the reconstruction displacement information corresponding to the reconstructed base image; the reconstruction displacement information is used to indicate the distance by which the mapping coordinates of the image macroblocks with pixel interlacing in the target reconstructed image are shifted downward when the reconstructed base image is super-reconstructed. It can be seen that the embodiment of the present invention can adjust the position of the mapping coordinates during image reconstruction according to the reconstructed pixel interlacing situation in the image, thereby effectively reducing the data reading bandwidth requirements and the amount of calculation when the super-resolution reconstruction is finally performed, and thus enabling online image decompression and super-resolution reconstruction to be realized. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0052] Figure 1 The present invention discloses a flowchart of an image de-interlacing method for super-resolution reconstruction.

[0053] Figure 2 It is a flowchart of another image de-interlacing method for super-resolution reconstruction disclosed in an embodiment of the present invention.

[0054] Figure 3 It is a structural schematic diagram of an image de-interlacing device for super-resolution reconstruction disclosed in an embodiment of the present invention.

[0055] Figure 4 It is a schematic diagram of the structure of another image de-interlacing device for super-resolution reconstruction disclosed in an embodiment of the present invention.

[0056] Figure 5 It is a structural schematic diagram of another image de-interlacing device for super-resolution reconstruction disclosed in an embodiment of the present invention.

[0057] Figure 6 It is a schematic diagram of pixel interleaving in image reconstruction disclosed in an embodiment of the present invention;

[0058] Figure 7It is a schematic diagram of a specific implementation scheme of an image de-interlacing method disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0059] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0060] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or equipment that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or equipment.

[0061] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0062] First, before further describing the embodiments disclosed in the present invention, the technical details of pixel interleaving in reconstruction involved in the present invention are explained. Figure 6 In a specific technical scenario, the target reconstructed image with a final output macroblock size of 16x16 is required. Assuming the scaling factor is 1.25, the macroblock height of the mapped reconstructed base image is actually 12.8, where the reconstructed base image is the decompressed image of the target compressed image. Figure 6It can be seen that when image blocks 1 and 2 in the target reconstructed image are mapped to mapping blocks 1 and 2 in the reconstructed basic image, some of the mapped pixels in mapping blocks 1 and 2 are simultaneously in the sub-pixel row labeled 13 of the reconstructed basic image. At this time, since the decoding process of mapping block 1 already includes the integer pixels corresponding to the sub-pixel row, when calculating the reconstructed image of mapping block 2, it is necessary to simultaneously decode two compressed image macroblocks (that is, the image blocks in the target compressed image corresponding to mapping blocks 1 and 2, respectively) as input, which means that the bandwidth for reading data will double, and the amount of computation will also double, which is problematic.

[0063] In order to solve the above problems, the present invention discloses an image de-interlacing method and device for super-resolution reconstruction, which can adjust the position of the mapping coordinates during image reconstruction according to the interlacing of the reconstructed pixels in the image, thereby effectively reducing the data reading bandwidth requirements and the amount of calculation during the final super-resolution reconstruction, thereby enabling online image decompression and super-resolution reconstruction to be realized. The following are detailed descriptions.

[0064] Embodiment 1

[0065] See also Figure 1 , Figure 1 1 is a flow chart of an image de-interlacing method for super-resolution reconstruction disclosed in an embodiment of the present invention. Figure 1 The described image de-interlacing method for super-resolution reconstruction is applied to an image processing system / image processing device / image processing server (wherein the image processing server includes a local image processing server or a cloud image processing server). Figure 1 As shown, the image de-interlacing method for super-resolution reconstruction may include the following operations:

[0066] 101. Determine the reconstruction base image and the super-resolution reconstruction magnification factor.

[0067] In an embodiment of the present invention, the reconstructed base image may be a low-resolution image to be super-reconstructed, which may be an image obtained by decompressing a target compressed image. Optionally, the super-reconstruction magnification factor may be a magnification factor corresponding to the reconstructed base image. Preferably, the super-reconstruction magnification factor is greater than a preset reconstruction magnification factor corresponding to the reconstructed base image, wherein the preset reconstruction magnification factor may be the minimum magnification factor required when the reconstructed base image is reconstructed into a target reconstructed image. By setting it in this way, the reconstructed base image can be reconstructed into an image with a higher resolution, so as to reserve space for subsequent operations of moving the mapping coordinates downward, so that subsequent operations will not affect the resolution of the image finally reconstructed.

[0068] 102. Determine pixel interleaving information in a target reconstructed image.

[0069] In the embodiment of the present invention, the target reconstructed image is the image corresponding to the reconstructed base image, and optionally, the pixel interleaving information is used to indicate that there are at least two image blocks in the target reconstructed image whose reconstructed pixels are mapped to the same pixel row of the reconstructed base image. As can be seen from the above description, this type of pixel interleaving information will cause the decompression process of super-resolution reconstruction to have the problems of high bandwidth cost and low efficiency, so corresponding solutions need to be implemented.

[0070] 103. Determine reconstruction displacement information corresponding to the reconstructed basic image according to the pixel interleaving information and the super-resolution reconstruction magnification factor.

[0071] In an embodiment of the present invention, the reconstruction displacement information is used to indicate the distance by which the mapping coordinates of image macroblocks with interleaved pixels in the target reconstructed image are offset downward when super-resolution reconstruction is performed on the reconstructed base image. By doing so, when there is pixel interleaving information, it means that adjacent reconstructed macroblocks are mapped to interleaved pixels, thereby offsetting the mapping coordinates of the image macroblocks downward to ignore the interleaved pixels, which is beneficial for subsequent reconstruction without having to be guided by the interleaved pixels for secondary decompression as in the prior art.

[0072] It can be seen that the above-mentioned embodiments of the invention can adjust the position of the mapping coordinates during image reconstruction according to the interleaving of the reconstructed pixels in the image, thereby effectively reducing the data reading bandwidth requirements and the amount of computation during the final super-resolution reconstruction, thereby enabling online image decompression and super-resolution reconstruction to be achieved.

[0073] As an optional implementation, in step 103, determining the reconstruction displacement information corresponding to the reconstructed basic image according to the pixel interleaving information and the super-resolution reconstruction magnification factor includes:

[0074] For any reconstructed corresponding image block in the target reconstructed image, determine the original mapping coordinates corresponding to the reconstructed corresponding image block, and judge whether there are interleaved pixels between the reconstructed corresponding image block and the previous reconstructed corresponding image block;

[0075] When the judgment result is no, the original mapping coordinates are not changed;

[0076] When the judgment result is yes, the mapping coordinate offset information is determined.

[0077] In the embodiment of the present invention, the interleaved pixels exist in the decompressed image of the target compressed image, and are simultaneously mapped to the pixel rows of the current decompressed corresponding image block and the previous decompressed corresponding image block during super-resolution reconstruction.

[0078] In the embodiment of the present invention, the mapping coordinate offset information is used to indicate the downward offset distance of the original mapping coordinates of the reconstructed corresponding image block and all subsequent reconstructed corresponding image blocks. By doing so, when there is pixel interleaving information, it means that the adjacent reconstructed macroblocks are mapped to interleaved pixels, so that the mapping coordinates of the image macroblocks are offset downward to ignore the interleaved pixels, which is beneficial for subsequent reconstruction without having to be guided by the interleaved pixels for secondary decompression as in the prior art.

[0079] In the embodiment of the present invention, the last reconstructed corresponding image block is a reconstructed corresponding image block that is one order before the reconstructed corresponding image block in the reconstruction sequence.

[0080] It can be seen that through this optional implementation, when it is determined whether there are interleaved pixels between the reconstructed corresponding image block and the previously reconstructed corresponding image block, the mapping coordinate offset information can be determined, thereby effectively reducing the data reading bandwidth requirements and the amount of computation required for the final super-resolution reconstruction, thereby enabling online image decompression and super-resolution reconstruction to be achieved.

[0081] As an optional implementation manner, in the above step, determining the original mapping coordinates corresponding to the reconstructed corresponding image block includes:

[0082] Determine the pixel coordinates in the reconstructed corresponding image block;

[0083] According to the super-resolution reconstruction magnification factor, the pixel coordinates are mapped to the reconstructed basic image to obtain the corresponding sub-pixel coordinates in the reconstructed basic image;

[0084] The sub-pixel coordinates are determined as the original mapping coordinates.

[0085] It can be seen that through this optional implementation, the pixel coordinates in the reconstructed corresponding image block can be mapped to the reconstructed basic image according to the super-resolution reconstruction magnification factor to obtain the corresponding sub-pixel coordinates in the reconstructed basic image, so as to obtain the accurate original mapping coordinates, and then the final mapping coordinate offset information can effectively reduce the data reading bandwidth requirements and computational complexity during the final super-resolution reconstruction, so that online image decompression and super-resolution reconstruction can be realized.

[0086] As an optional implementation manner, in the above step, determining the mapping coordinate offset information includes:

[0087] Determine the integer coordinates of the reconstructed base image that are below the interlaced pixel and closest to the interlaced pixel;

[0088] The mapping coordinate offset information is determined based on the distance between the integer coordinates and the interleaved pixels.

[0089] It can be seen that the mapping coordinate offset information determined by this optional implementation can make the original mapping coordinates of the reconstructed corresponding image block and all subsequent reconstructed corresponding image blocks shift downward to the nearest integer coordinates, so that interleaved pixels can be effectively avoided during subsequent reconstruction, so as to reduce the data reading bandwidth requirements and computational complexity during the final super-resolution reconstruction, thereby achieving online image decompression and super-resolution reconstruction.

[0090] As an optional implementation, after determining the mapping coordinate offset information, the method further includes:

[0091] According to the mapping coordinate offset information and the original mapping coordinates, new original mapping coordinates of all subsequent reconstructed corresponding image blocks of the reconstructed corresponding image are determined.

[0092] It can be seen that through this optional implementation, the new original mapping coordinates of all subsequent reconstructed corresponding image blocks of the reconstructed corresponding image can be determined according to the mapping coordinate offset information, so that when the interleaved pixel information is judged multiple times, the mapping coordinates of all subsequent reconstructed corresponding image blocks can be offset backwards, so that the interleaved pixels can be effectively avoided during subsequent reconstruction, so as to reduce the data reading bandwidth requirements and computational complexity during the final super-resolution reconstruction, thereby realizing online image decompression and super-resolution reconstruction.

[0093] Combine the following Figure 6 The pixel interleaving situation shown is used to illustrate a specific implementation scheme of the method disclosed in this embodiment. For details, please refer to Figure 7 This solution is improved from the image super-resolution reconstruction end, and adopts a de-macroblock interleaving algorithm to perform de-interleaving operations at the interleaving point to ensure that all macroblocks are highly consistent. It includes the following steps:

[0094] 1. Set the actual reconstruction magnification to a value larger than the preset magnification. For example, when the preset magnification is 1.5 times, the actual magnification factor can be set to 1.6 times;

[0095] 2. Perform super-resolution reconstruction of the image according to the actual magnification factor;

[0096] 3. Judgment: If the pixels in two adjacent image blocks are mapped back to the original image, the corresponding macroblocks are interlaced (i.e., the sub-pixels of the original image mapped to the last row of pixels in the upper image block are located in the same sub-pixel row as the sub-pixels of the original image mapped to the first row of pixels in the lower image block), then calculate the offset D from the lower sub-pixel position to the next integer position. For the pixels in the first row of the interlaced image block and all rows below it, the mapping position is shifted as a whole according to the offset D, such as Figure 7As shown. That is, after the original mapping coordinates are calculated according to the original mapping relationship, the offset D is added to the y coordinate. This is equivalent to correcting the initial phase of all pixels after the interleaved row when they are restored by interpolation.

[0097] 4. When interleaving occurs again, the offset is accumulated, and then all pixels after the interleaved row are shifted as a whole according to the new offset as in step 3, that is, the initial phases of all pixels after the interleaved row are corrected again.

[0098] Embodiment 2

[0099] See also Figure 2 , Figure 2 FIG. 1 is a flow chart of another image de-interlacing method for super-resolution reconstruction disclosed in an embodiment of the present invention. Figure 2 The described image de-interlacing method for super-resolution reconstruction is applied to an image processing system / image processing device / image processing server (wherein the image processing server includes a local image processing server or a cloud image processing server). Figure 2 As shown, the image de-interlacing method for super-resolution reconstruction may include the following operations:

[0100] 201. Determine a reconstruction base image and a super-resolution reconstruction magnification factor.

[0101] 202. Determine pixel interleaving information in a target reconstructed image.

[0102] 203. Determine reconstruction displacement information corresponding to the reconstructed basic image according to the pixel interleaving information and the super-resolution reconstruction magnification coefficient.

[0103] In the embodiment of the present invention, for the relevant description of steps 201-203, please refer to the detailed description of steps 101-103 in the first embodiment, and the embodiment of the present invention will not be repeated.

[0104] 204. Based on the reconstructed displacement information and the super-resolution reconstruction magnification factor, super-resolution reconstruction is performed on the reconstructed basic image to obtain a target reconstructed image.

[0105] In the embodiment of the present invention, super-resolution reconstruction refers to super-resolution reconstruction, which can be implemented using a neural network algorithm, and the present invention does not limit this.

[0106] It can be seen that the above-mentioned embodiments of the invention can perform super-resolution reconstruction on the reconstructed basic image based on the reconstruction displacement information and the super-resolution reconstruction magnification factor to obtain the target reconstructed image, thereby effectively reducing the data reading bandwidth requirements and the amount of computation during the final super-resolution reconstruction, and further enabling online image decompression and super-resolution reconstruction to be realized.

[0107] In an optional implementation, in the above step 204, based on the reconstruction displacement information and the super-resolution reconstruction magnification factor, super-resolution reconstruction is performed on the reconstructed basic image to obtain the target reconstructed image, including:

[0108] Performing a super-resolution reconstruction operation on the reconstructed base image, and determining, for each reconstructed macroblock in the reconstructed base image, a corresponding final mapping coordinate of a current reconstructed macroblock of the reconstructed base image;

[0109] According to the final mapping coordinates and the super-resolution reconstruction magnification factor, the current reconstructed macroblock is super-reconstructed.

[0110] In the embodiment of the present invention, the final mapping coordinates are coordinates obtained by correcting the original mapping coordinates according to the mapping coordinate offset information obtained by the method in the first embodiment.

[0111] It can be seen that through this optional implementation, for each reconstructed macroblock in the reconstructed base image, super-resolution reconstruction can be performed on the current reconstructed macroblock according to the final mapping coordinates and the super-resolution reconstruction magnification factor, thereby effectively reducing the data reading bandwidth requirements and the amount of computation required for the final super-resolution reconstruction, thereby enabling online image decompression and super-resolution reconstruction to be achieved.

[0112] Embodiment 3

[0113] See also Figure 3 , Figure 3 : is a schematic diagram of the structure of an image de-interlacing device for super-resolution reconstruction disclosed in an embodiment of the present invention. Figure 3 The image deinterlacing device for super-resolution reconstruction is applied to an image processing system / image processing device / image processing server (wherein the image processing server includes a local image processing server or a cloud image processing server). Figure 3 As shown, the image de-interlacing device for super-resolution reconstruction may include:

[0114] The coefficient determination module 301 is used to determine the reconstruction base image and the super-resolution reconstruction magnification coefficient.

[0115] In an embodiment of the present invention, the reconstructed base image may be a low-resolution image to be super-reconstructed, which may be an image obtained by decompressing a target compressed image. Optionally, the super-reconstruction magnification factor may be a magnification factor corresponding to the reconstructed base image. Preferably, the super-reconstruction magnification factor is greater than a preset reconstruction magnification factor corresponding to the reconstructed base image, wherein the preset reconstruction magnification factor may be the minimum magnification factor required when the reconstructed base image is reconstructed into a target reconstructed image. By setting it in this way, the reconstructed base image can be reconstructed into an image with a higher resolution, so as to reserve space for subsequent operations of moving the mapping coordinates downward, so that subsequent operations will not affect the resolution of the image finally reconstructed.

[0116] The interlacing determination module 302 is used to determine pixel interlacing information in the target reconstructed image.

[0117] In the embodiment of the present invention, the target reconstructed image is the image corresponding to the reconstructed base image, and optionally, the pixel interleaving information is used to indicate that there are at least two image blocks in the target reconstructed image whose reconstructed pixels are mapped to the same pixel row of the reconstructed base image. As can be seen from the above description, this type of pixel interleaving information will cause the decompression process of super-resolution reconstruction to have the problems of high bandwidth cost and low efficiency, so corresponding solutions need to be implemented.

[0118] The displacement determination module 303 is used to determine the reconstruction displacement information corresponding to the reconstructed basic image according to the pixel interleaving information and the super-resolution reconstruction magnification factor.

[0119] In an embodiment of the present invention, the reconstruction displacement information is used to indicate the distance by which the mapping coordinates of image macroblocks with interleaved pixels in the target reconstructed image are offset downward when super-resolution reconstruction is performed on the reconstructed base image. By doing so, when there is pixel interleaving information, it means that adjacent reconstructed macroblocks are mapped to interleaved pixels, thereby offsetting the mapping coordinates of the image macroblocks downward to ignore the interleaved pixels, which is beneficial for subsequent reconstruction without having to be guided by the interleaved pixels for secondary decompression as in the prior art.

[0120] It can be seen that the above-mentioned embodiments of the invention can adjust the position of the mapping coordinates during image reconstruction according to the interleaving of the reconstructed pixels in the image, thereby effectively reducing the data reading bandwidth requirements and the amount of computation during the final super-resolution reconstruction, thereby enabling online image decompression and super-resolution reconstruction to be achieved.

[0121] As an optional implementation, Figure 4 As shown, the displacement determination module 303 includes:

[0122] The judging unit 3031 is used to determine the original mapping coordinates corresponding to any reconstructed corresponding image block in the target reconstructed image, and to judge whether there are interleaved pixels between the reconstructed corresponding image block and the previous reconstructed corresponding image block;

[0123] The determination unit 3032 is used for not changing the original mapping coordinates when the determination result is no, and for determining the mapping coordinate offset information when the determination result is yes.

[0124] In the embodiment of the present invention, the interleaved pixels exist in the decompressed image of the target compressed image, and are simultaneously mapped to the pixel rows of the current decompressed corresponding image block and the previous decompressed corresponding image block during super-resolution reconstruction.

[0125] In the embodiment of the present invention, the mapping coordinate offset information is used to indicate the downward offset distance of the original mapping coordinates of the reconstructed corresponding image block and all subsequent reconstructed corresponding image blocks. By doing so, when there is pixel interleaving information, it means that the adjacent reconstructed macroblocks are mapped to interleaved pixels, so that the mapping coordinates of the image macroblocks are offset downward to ignore the interleaved pixels, which is beneficial for subsequent reconstruction without having to be guided by the interleaved pixels for secondary decompression as in the prior art.

[0126] In the embodiment of the present invention, the last reconstructed corresponding image block is a reconstructed corresponding image block that is one order before the reconstructed corresponding image block in the reconstruction sequence.

[0127] It can be seen that through this optional implementation, when it is determined whether there are interleaved pixels between the reconstructed corresponding image block and the previously reconstructed corresponding image block, the mapping coordinate offset information can be determined, thereby effectively reducing the data reading bandwidth requirements and the amount of computation required for the final super-resolution reconstruction, thereby enabling online image decompression and super-resolution reconstruction to be achieved.

[0128] As an optional implementation manner, the specific manner in which the judgment unit 3031 determines the original mapping coordinates corresponding to the reconstructed corresponding image block includes:

[0129] Determine the pixel coordinates in the reconstructed corresponding image block;

[0130] According to the super-resolution reconstruction magnification factor, the pixel coordinates are mapped to the reconstructed basic image to obtain the corresponding sub-pixel coordinates in the reconstructed basic image;

[0131] Determine the sub-pixel coordinates as the original mapping coordinates.

[0132] It can be seen that through this optional implementation, the pixel coordinates in the reconstructed corresponding image block can be mapped to the reconstructed basic image according to the super-resolution reconstruction magnification factor to obtain the corresponding sub-pixel coordinates in the reconstructed basic image, so as to obtain the accurate original mapping coordinates, and then the final mapping coordinate offset information can effectively reduce the data reading bandwidth requirements and computational complexity during the final super-resolution reconstruction, so that online image decompression and super-resolution reconstruction can be realized.

[0133] As an optional implementation, the specific manner in which the determining unit 3032 determines the mapping coordinate offset information includes:

[0134] Determine the integer coordinates of the reconstructed base image that are below the interlaced pixel and closest to the interlaced pixel;

[0135] The mapping coordinate offset information is determined based on the distance between the integer coordinates and the interleaved pixels.

[0136] It can be seen that the mapping coordinate offset information determined by this optional implementation can make the original mapping coordinates of the reconstructed corresponding image block and all subsequent reconstructed corresponding image blocks shift downward to the nearest integer coordinates, so that interleaved pixels can be effectively avoided during subsequent reconstruction, so as to reduce the data reading bandwidth requirements and computational complexity during the final super-resolution reconstruction, thereby achieving online image decompression and super-resolution reconstruction.

[0137] As an optional implementation, after determining the mapping coordinate offset information, the determining unit 3032 is further configured to determine new original mapping coordinates of all subsequent reconstructed corresponding image blocks of the reconstructed corresponding image according to the mapping coordinate offset information and the original mapping coordinates.

[0138] It can be seen that through this optional implementation, the new original mapping coordinates of all subsequent reconstructed corresponding image blocks of the reconstructed corresponding image can be determined according to the mapping coordinate offset information, so that when the interleaved pixel information is judged multiple times, the mapping coordinates of all subsequent reconstructed corresponding image blocks can be offset backwards, so that the interleaved pixels can be effectively avoided during subsequent reconstruction, so as to reduce the data reading bandwidth requirements and computational complexity during the final super-resolution reconstruction, thereby realizing online image decompression and super-resolution reconstruction.

[0139] As an optional implementation, Figure 4 As shown, the device also includes:

[0140] The reconstruction module 304 is used to perform super-resolution reconstruction on the reconstructed basic image based on the reconstruction displacement information and the super-resolution reconstruction magnification factor to obtain a target reconstructed image.

[0141] In the embodiment of the present invention, super-resolution reconstruction refers to super-resolution reconstruction, which can be implemented using a neural network algorithm, and the present invention does not limit this.

[0142] It can be seen that the above-mentioned embodiments of the invention can perform super-resolution reconstruction on the reconstructed basic image based on the reconstruction displacement information and the super-resolution reconstruction magnification factor to obtain the target reconstructed image, thereby effectively reducing the data reading bandwidth requirements and the amount of computation during the final super-resolution reconstruction, and further enabling online image decompression and super-resolution reconstruction to be realized.

[0143] In an optional implementation, the reconstruction module 304 performs super-resolution reconstruction on the reconstructed basic image based on the reconstruction displacement information and the super-resolution reconstruction magnification coefficient to obtain the target reconstructed image in a specific manner including:

[0144] Performing a super-resolution reconstruction operation on the reconstructed base image, and determining, for each reconstructed macroblock in the reconstructed base image, a corresponding final mapping coordinate of a current reconstructed macroblock of the reconstructed base image;

[0145] According to the final mapping coordinates and the super-resolution reconstruction magnification factor, the current reconstructed macroblock is super-reconstructed.

[0146] In the embodiment of the present invention, the final mapping coordinates are coordinates obtained by correcting the original mapping coordinates according to the mapping coordinate offset information obtained by the method in the first embodiment.

[0147] It can be seen that through this optional implementation, for each reconstructed macroblock in the reconstructed base image, super-resolution reconstruction can be performed on the current reconstructed macroblock according to the final mapping coordinates and the super-resolution reconstruction magnification factor, thereby effectively reducing the data reading bandwidth requirements and the amount of computation required for the final super-resolution reconstruction, thereby enabling online image decompression and super-resolution reconstruction to be achieved.

[0148] Embodiment 4

[0149] See also Figure 5 , Figure 5 It is another image de-interlacing device for super-resolution reconstruction disclosed in an embodiment of the present invention. Figure 5 The image deinterlacing device for super-resolution reconstruction is applied to an image processing system / image processing device / image processing server (wherein the image processing server includes a local image processing server or a cloud image processing server). Figure 5 As shown, the image de-interlacing device for super-resolution reconstruction may include:

[0150] A memory 401 storing executable program codes;

[0151] a processor 402 coupled to the memory 401;

[0152] The processor 402 calls the executable program code stored in the memory 401 to execute the steps of the image de-interlacing method for super-resolution reconstruction described in the first or second embodiment.

[0153] Embodiment 5

[0154] An embodiment of the present invention discloses a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program enables a computer to execute the steps of the image de-interlacing method for super-resolution reconstruction described in the first or second embodiment.

[0155] Embodiment 6

[0156] An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program can enable a computer to execute the steps of the image deinterlacing method for super-resolution reconstruction described in embodiment one or embodiment two.

[0157] The device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.

[0158] Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or partly contributed to the prior art in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, a magnetic disk storage, a magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0159] Finally, it should be noted that the image de-interlacing method and device for super-resolution reconstruction disclosed in the embodiments of the present invention are only preferred embodiments of the present invention, and are only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, it should be understood by those skilled in the art that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. An image de-interlacing method for super-resolution reconstruction, characterized in that: The method comprises: Determine the reconstruction base image and the super-resolution reconstruction magnification factor; Determine pixel interleaving information in a target reconstructed image; the pixel interleaving information is used to indicate that there are at least two image blocks in the target reconstructed image whose reconstructed pixels are mapped to the same pixel row of the reconstructed basic image; the target reconstructed image is an image corresponding to the reconstructed basic image; Determine the reconstruction displacement information corresponding to the reconstructed basic image according to the pixel interleaving information and the super-resolution reconstruction magnification coefficient; the reconstruction displacement information is used to indicate the distance by which the mapping coordinates of the image macroblocks in which the pixels of the target reconstructed image are interleaved when the reconstructed basic image is super-reconstructed; The step of determining the reconstruction displacement information corresponding to the reconstructed basic image according to the pixel interleaving information and the super-resolution reconstruction magnification factor includes: For any reconstructed corresponding image block in the target reconstructed image, determine the original mapping coordinates corresponding to the reconstructed corresponding image block, and judge whether there are interleaved pixels between the reconstructed corresponding image block and a previous reconstructed corresponding image block; the previous reconstructed corresponding image block is a reconstructed corresponding image block that is one order before the reconstructed corresponding image block in the reconstruction order; When the judgment result is no, the original mapping coordinates are not changed; When the judgment result is yes, the mapping coordinate offset information is determined; the mapping coordinate offset information is used to indicate the downward offset distance of the original mapping coordinates of the reconstructed corresponding image block and all subsequent reconstructed corresponding image blocks.

2. The image de-interlacing method for super-resolution reconstruction according to claim 1, characterized in that: The super-resolution reconstruction magnification factor is greater than a preset reconstruction magnification factor corresponding to the reconstructed basic image.

3. The image de-interlacing method for super-resolution reconstruction according to claim 2, characterized in that: The interlaced pixels exist in the target compressed image and are simultaneously mapped to the pixel rows of the current decompressed corresponding image block and the last decompressed corresponding image block during super-resolution reconstruction.

4. The image de-interlacing method for super-resolution reconstruction according to claim 2, characterized in that: The determining of the original mapping coordinates corresponding to the reconstructed corresponding image block comprises: Determine the pixel coordinates in the reconstructed corresponding image block; According to the super-resolution reconstruction magnification factor, mapping the pixel coordinates to the reconstructed basic image to obtain corresponding sub-pixel coordinates in the reconstructed basic image; The sub-pixel coordinates are determined as original mapping coordinates.

5. The image de-interlacing method for super-resolution reconstruction according to claim 2, characterized in that: The determining of mapping coordinate offset information includes: Determine the integer coordinates of the reconstructed base image that are below the interlaced pixel and are closest to the interlaced pixel; Mapping coordinate offset information is determined according to the distance between the integer coordinates and the interleaved pixels.

6. The image de-interlacing method for super-resolution reconstruction according to claim 2, characterized in that: After determining the mapping coordinate offset information, the method further includes: According to the mapping coordinate offset information and the original mapping coordinates, new original mapping coordinates of all subsequent reconstructed corresponding image blocks of the reconstructed corresponding image are determined.

7. An image de-interlacing device for super-resolution reconstruction, characterized in that: The device comprises: A coefficient determination module, used to determine the reconstruction base image and the super-resolution reconstruction magnification coefficient; An interlacing determination module is used to determine pixel interlacing information in a target reconstructed image; the pixel interlacing information is used to indicate that there are at least two image blocks in the target reconstructed image whose reconstructed pixels are mapped to the same pixel row of the reconstructed basic image; the target reconstructed image is an image corresponding to the reconstructed basic image; A displacement determination module, used to determine the reconstruction displacement information corresponding to the reconstructed basic image according to the pixel interleaving information and the super-resolution reconstruction magnification factor; the reconstruction displacement information is used to indicate the distance by which the mapping coordinates of the image macroblocks with pixel interleaving in the target reconstructed image are shifted downward when the reconstructed basic image is subjected to super-resolution reconstruction; Wherein, the displacement determination module comprises: a judgment unit, configured to determine, for any reconstructed corresponding image block in the target reconstructed image, the original mapping coordinates corresponding to the reconstructed corresponding image block, and to judge whether there are interleaved pixels between the reconstructed corresponding image block and a previous reconstructed corresponding image block; the previous reconstructed corresponding image block is a reconstructed corresponding image block that is one order before the reconstructed corresponding image block in the reconstruction sequence; A determination unit is used for not making changes to the original mapping coordinates when the judgment result is no, and for determining mapping coordinate offset information when the judgment result is yes; the mapping coordinate offset information is used to indicate a downward offset distance of the original mapping coordinates of the reconstructed corresponding image block and all subsequent reconstructed corresponding image blocks.

8. An image de-interlacing device for super-resolution reconstruction, characterized in that: The device comprises: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the image de-interlacing method for super-resolution reconstruction according to any one of claims 1-6.

9. A computer storage medium, characterized in that The computer storage medium stores computer instructions, and when the computer instructions are called, they are used to execute the image de-interlacing method for super-resolution reconstruction according to any one of claims 1-6.

Citation Information

Patent Citations

  • Method for mapping image address in memory

    CN101031052A

  • Stereo image objective quality evaluation method

    CN103745457A

  • Multi-frame super-resolution image reconstruction method and system

    CN106204440A

  • Method for reading image compression data, and inverse distortion method comprising the same

    CN108171662A

  • Image super-resolution reconstruction algorithm based on CNN interpolation

    CN111861881A