WO2021013139A1 - Image processing method and device - Google Patents

Image processing method and device Download PDF

Info

Publication number
WO2021013139A1
WO2021013139A1 PCT/CN2020/103150 CN2020103150W WO2021013139A1 WO 2021013139 A1 WO2021013139 A1 WO 2021013139A1 CN 2020103150 W CN2020103150 W CN 2020103150W WO 2021013139 A1 WO2021013139 A1 WO 2021013139A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
blur kernel
resolution
blur
sampling
Prior art date
Application number
PCT/CN2020/103150
Other languages
French (fr)
Chinese (zh)
Inventor
任冬伟
左旺孟
秦超
陈帅
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021013139A1 publication Critical patent/WO2021013139A1/en

Links

Images

Classifications

    • G06T5/70
    • G06T5/73
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20024Filtering details
    • G06T2207/20028Bilateral filtering

Definitions

  • the number of picture pixels generally reaches more than 10M.
  • the camera of an electronic device is in an unstable state, for example, handshaking or dark light conditions, it is easy to take a blurred picture, which affects the quality of the picture, and brings great inconvenience to the recognition and analysis of the content of the image information.
  • the traditional deblurring technology can better realize the deblurring of the image and obtain a deblurred image with better quality.
  • the amount of calculation based on the traditional deblurring method is very large, the deblurring speed is very slow and time-consuming.
  • deblurring technology based on deep learning has developed rapidly.
  • the training set when training the deblurring model in the deep learning deblurring method is a blurred image synthesized by the algorithm, it is not a real image.
  • the training model is used to obtain The deblurring image will have distortion, and the deblurring algorithm based on deep learning takes too much time to deblur high-resolution images, which affects the real-time deblurring.
  • This application provides an image processing method and device, which can quickly deblur real high-resolution images without distortion and improve image quality.
  • an image processing method including: acquiring a first image, which is a high-resolution blurred image; down-sampling the first image to obtain a second image; and according to the second image Determine a first blur kernel; obtain a third image according to the first blur kernel, where the third image is a deblurred image with the same resolution as the first image.
  • the obtained high-resolution blurred image is down-sampled to obtain a low-resolution blurred image
  • the first blur kernel is estimated based on the obtained low-resolution blurred image
  • the obtained first blur kernel is compared with the original obtained High-resolution blurred image Deblurred images with the same resolution, thereby achieving improved image quality while reducing the time-consuming deblurring.
  • determining the first blur kernel according to the second image includes: acquiring an edge map of the second image; determining at least one first region of the edge map , Wherein each first region in the at least one first region is an edge salient region of the edge map; the first blur kernel is determined according to the at least one first region.
  • the edge detection algorithm is used to obtain the edge image of the second image, and then one or more regions containing the salient edge are intercepted to estimate the first blur kernel.
  • the blur kernel of the second image is estimated according to the iterative adaptive prior model of the gradient domain as shown in the following formula:
  • the parameters p and ⁇ are fuzzy and estimated iterative optimization parameters.
  • the first fuzzy kernel k can be obtained.
  • an anisotropic total variation (TV) model in order to obtain a more ideal restoration effect, can be used to make the estimated first blur kernel more accurate. Thereby, a more accurate first blur kernel is obtained.
  • TV anisotropic total variation
  • any existing edge detection algorithm such as Sobel algorithm, Canny algorithm, Laplacian algorithm, etc.
  • Sobel algorithm Canny algorithm
  • Laplacian algorithm etc.
  • the above-mentioned formula is only an exemplary description, and the embodiment of the present application does not specifically limit the method for estimating the first blur kernel.
  • obtaining a third image according to the first blur kernel includes: performing non-blind deblurring on the second image according to the first blur kernel to obtain a fourth image ; Up-sampling the fourth image to obtain the third image.
  • the second image is deblurred according to the first blur kernel to obtain a fourth image, where the fourth image is a deblurred image with the same resolution as the second image.
  • the estimated first fuzzy kernel inevitably still has a certain error.
  • a bilateral filter can be used to process the deblurred fourth image, and the response value of the bilateral filter can be subtracted, so that the ringing effect can be effectively suppressed.
  • the influence of the estimation error of the first blur kernel on the restoration result is reduced, thereby obtaining a more ideal clear image.
  • a deblurred image (fourth image) with the same resolution as the second image is obtained.
  • the obtained fourth image needs to be up-sampled corresponding to the multiple of the down-sampling, so as to obtain the same resolution as the first image
  • the image after deblurring (third image) is obtained.
  • upsampling the obtained fourth image corresponding to the multiple of the downsampling should be understood as: if the second image obtained by downsampling the first image is 1/N of the size of the first image, then Four images should be interpolated by N times to obtain the third image, where N can be any positive integer.
  • the embodiment of the present application does not make any limitation on the specific interpolation process of upsampling, and any interpolation algorithm in existing algorithms can be used, such as nearest neighbor interpolation, bilinear quadratic interpolation, bicubic interpolation, etc.
  • the acquired high-resolution blurred image is down-sampled to obtain a low-resolution blurred image
  • the first blur kernel is estimated according to the obtained low-resolution blurred image
  • the down-sampled low resolution is calculated according to the estimated first blur kernel.
  • the blur kernel estimation method reduces the distortion of the result of the deblurring method based on deep learning, and improves the image quality while reducing the time-consuming deblurring.
  • the obtaining a third image according to the first blur kernel further includes: up-sampling the first blur kernel to obtain a second blur kernel;
  • the second blur kernel performs non-blind deblurring on the first image to obtain the third image.
  • the first blur kernel can be up-sampled to obtain the second blur kernel. Since the first blur kernel is relatively small compared to the deblurred image, the algorithm complexity of upsampling the first blur kernel is much lower than the algorithm complexity of upsampling the fourth image to obtain the third image, which greatly simplifies the upper The sampling process reduces the time-consuming process of deblurring.
  • upsampling corresponding to the multiple of downsampling should be understood as: if the second image obtained by downsampling the first image is 1/N of the size of the first image, then the first blur kernel should be performed N times the interpolation to obtain the second fuzzy kernel, where N can be any positive integer.
  • the embodiment of the present application does not make any limitation on the specific interpolation process of upsampling, and any interpolation algorithm in existing algorithms can be used, such as nearest neighbor interpolation, bilinear quadratic interpolation, bicubic interpolation, etc.
  • the obtained high-resolution blurred image is down-sampled to obtain a low-resolution blurred image
  • the first blur kernel is estimated based on the obtained low-resolution blurred image
  • the first blur kernel is up-sampled to obtain the second blur
  • the originally acquired high-resolution blurred image is deblurred to obtain a deblurred image with the same resolution as the original blurred image, thereby achieving rapid deblurring of the high-resolution blurred image.
  • the first blur kernel is smaller than the fourth image, directly up-sampling the second blur kernel can reduce the complexity of the up-sampling process, thereby reducing the time-consuming deblurring.
  • the image distortion caused by upsampling can be reduced, so that the image quality can be improved while reducing the time-consuming deblurring.
  • determining the first blur kernel based on the second image includes: performing denoising processing on the second image to obtain a fifth image, which is compared with The second image has the same resolution; the first blur kernel is determined according to the fifth image.
  • the noise interference caused by the camera is reduced, and the image distortion is reduced, and then the first blur kernel is estimated based on the denoised fifth image to reduce the first blur
  • the error of the kernel estimation is thereby reduced based on the distortion of the deblurred image obtained by the first blur kernel.
  • the method further includes: performing denoising processing on the third image to obtain a sixth image, the sixth image having the same resolution as the third image.
  • denoising processing may be performed on the obtained third image, thereby reducing image distortion.
  • an image processing apparatus configured to execute the foregoing first aspect or the method in any possible implementation of the first aspect.
  • the device may include a module for executing the method in the first aspect or any possible implementation of the first aspect.
  • an image processing apparatus in a third aspect, includes a memory and a processor, the memory is used to store instructions, and the processor is used to execute instructions stored in the memory and perform processing on the images stored in the memory. Execution of the instructions enables the processor to execute the first aspect or the method in any possible implementation manner of the first aspect.
  • a computer-readable storage medium is provided, and instructions are stored in the computer-readable storage medium, and when the instructions are run on a computer, the computer executes the first aspect or any possible aspect of the first aspect. The method in the implementation mode.
  • a computer program product containing instructions is provided.
  • the computer program product runs on a computer, the computer executes the method in the first aspect or any possible implementation of the first aspect.
  • Fig. 1 shows a schematic flowchart of an image processing method provided by an embodiment of the present application
  • FIG. 2 shows a schematic flowchart of another image processing method provided by an embodiment of the present application
  • FIG. 3 shows the processing result of an image processing method provided by an embodiment of the present application
  • FIG. 4 shows a schematic flowchart of yet another image processing method provided by an embodiment of the present application
  • FIG. 5 shows the processing result of another image processing method provided by an embodiment of the present application
  • Fig. 6 shows a schematic block diagram of an image processing apparatus provided by an embodiment of the present application.
  • Fig. 7 shows a schematic block diagram of another image processing apparatus provided by an embodiment of the present application.
  • FIG. 1 shows a schematic flowchart of an image processing method 100 provided by an embodiment of the present application. It should be understood that FIG. 1 shows the steps or operations of the image processing method, but these steps or operations are only examples, and the embodiment of the present application may also perform other operations or variations of each operation in FIG. 1. In addition, the various steps in FIG. 1 may be performed in a different order from that presented in FIG. 1, and it is possible that not all operations in FIG. 1 are to be performed.
  • the first image is a high-resolution blurred image.
  • the first image is obtained by shooting with an electronic device, where the electronic device may be a smart phone, a camera, a tablet computer, etc. with a high-resolution camera, and the embodiment of the present application does not limit the method of obtaining the first image.
  • the acquired first image is a high-resolution blurred image and the image is relatively large, if the first image is directly de-blurred, the amount of calculation will be too large and the de-blurring will take a long time. Therefore, in order to reduce the complexity of the deblurring process and reduce the time consumption, the first image may be down-sampled to obtain the second image, and the second image may be deblurred.
  • the first image when down-sampling the first image, can be down-sampled to 1/2 of the first image, that is, the pixel points of the obtained second image are half of the pixel points of the first image.
  • the first image may be down-sampled to 1/3 of the first image, that is, the pixels of the second image obtained are 1/3 of the pixels of the first image, and the specific sampling multiple is that in this embodiment of the application. It is not limited.
  • the second image in order to reduce the noise interference of the camera, after the second image is obtained, the second image can be denoised first to obtain a low-resolution blurred image with less interference (ie, the fifth image ).
  • the second image may be based on a denoising model of a convolutional neural network (CNN), or a denoising model in a traditional method, which is not limited in the embodiment of the present application.
  • CNN convolutional neural network
  • the low-resolution second image is obtained.
  • the second image can be deblurred.
  • image deblurring is divided into blind image deblurring (BID) and non-blind image deblurring (NBID).
  • blind image deblurring means that only the image itself is blurred when the blur kernel is unknown.
  • non-blind image deblurring means that the blur kernel is known and only the process of image restoration is required.
  • a non-blind image deblurring method is adopted.
  • the edge detection algorithm is used to obtain the edge image of the second image, and then one or more regions containing the salient edge are intercepted to estimate the first blur kernel.
  • the blur kernel of the second image is estimated:
  • the parameters p and ⁇ are fuzzy and estimated iterative optimization parameters.
  • the first fuzzy kernel k can be obtained.
  • an anisotropic total variation (TV) model in order to obtain a more ideal restoration effect, can be used to make the estimated first blur kernel more accurate. Thereby, a more accurate first blur kernel is obtained.
  • TV anisotropic total variation
  • any existing edge detection algorithm such as Sobel algorithm, Canny algorithm, Laplacian algorithm, etc.
  • Sobel algorithm Canny algorithm
  • Laplacian algorithm etc.
  • formula (1) is only an exemplary description, and the embodiment of the present application does not specifically limit the method for estimating the first fuzzy kernel.
  • S140 Obtain a third image according to the first blur kernel.
  • a third image can be obtained based on the first blur kernel, where the third image is a deblurred image with the same resolution as the first image.
  • FIG. 2 shows a schematic flowchart of an image processing method 200 provided by an embodiment of the present application. It should be understood that FIG. 2 shows the steps or operations of the image processing method, but these steps or operations are only examples, and the embodiment of the present application may also perform other operations or variations of each operation in FIG. 2. In addition, the various steps in FIG. 2 may be performed in a different order from that presented in FIG. 2, and it is possible that not all operations in FIG. 2 are to be performed.
  • S220 Down-sampling the first image to obtain a second image.
  • step S210 to step S230 are the same as step S110 to step S130.
  • step S110 to step S130 please refer to step S110 to step S130, which will not be repeated here for brevity.
  • the third image is a deblurred image with the same resolution as the first image.
  • a low-resolution blurred image is obtained by down-sampling a high-resolution blurred image, and the first blur kernel is estimated based on the low-resolution blurred image, and deblurring is performed according to the estimated first blur kernel.
  • deblurring is performed according to the estimated first blur kernel.
  • S240 Deblur the second image according to the estimated first blur check to obtain a fourth image.
  • step S230 after the first blur kernel is estimated, the second image is deblurred according to the first blur check to obtain a fourth image, where the fourth image is a deblurred image with the same resolution as the second image.
  • the estimated first fuzzy kernel inevitably still has a certain error.
  • a bilateral filter can be used to process the deblurred fourth image, and the response value of the bilateral filter can be subtracted, so that the ringing effect can be effectively suppressed.
  • the influence of the estimation error of the first blur kernel on the restoration result is reduced, thereby obtaining a more ideal clear image.
  • a deblurred image (fourth image) with the same resolution as the second image is obtained.
  • up-sampling the obtained fourth image corresponding to the multiple of the down-sampling in step S220 should be understood as: if the second image obtained by down-sampling the first image in step S220 is 1/N of the first image If the size is small, in S240, the fourth image should be interpolated by N times to obtain the third image, where N can be any positive integer.
  • the embodiment of the present application does not make any limitation on the specific interpolation process of upsampling, and any interpolation algorithm in existing algorithms can be used, such as nearest neighbor interpolation, bilinear quadratic interpolation, bicubic interpolation, etc.
  • the method 200 may further include S260, performing denoising processing on the third image to obtain the sixth image.
  • the third image may be denoised to obtain a sixth image with the same resolution as the third image.
  • it may be based on a denoising model of a convolutional neural network (CNN), or a denoising model in a traditional method, which is not limited in the embodiment of the present application.
  • CNN convolutional neural network
  • the acquired high-resolution blurred image is down-sampled to obtain a low-resolution blurred image
  • the first blur kernel is estimated according to the obtained low-resolution blurred image
  • the down-sampled low resolution is calculated according to the estimated first blur kernel.
  • the blur kernel estimation method reduces the distortion of the result of the deblurring method based on deep learning, and improves the image quality while reducing the time-consuming deblurring.
  • FIG. 3 shows the result of the method 200 processing.
  • Figure 3(a) is the acquired high-resolution blurred image (ie the first image)
  • Figure 3(b) is the low-resolution blurred image (ie the first image) after downsampling the high-resolution blurred image.
  • Two images where the number of pixels in the second image is 1/2 of the number of pixels in the first image.
  • Fig. 3(c) is the first blur kernel estimated according to the second image
  • Fig. 3(d) is the deblurred image with the same resolution as the second image obtained after deblurring the second image according to the first blur check.
  • Figure 3(e) is a deblurred image (that is, the third image) obtained after up-sampling Figure 3(d) with the same resolution as the originally acquired first image. It can be seen from Fig. 3 that after deblurring, the image quality of Fig. 3(e) is improved compared to Fig. 3(a).
  • FIG. 4 shows another image processing method 300 provided by an embodiment of the present application. It should be understood that FIG. 4 shows the steps or operations of the image processing method, but these steps or operations are only examples, and the embodiment of the present application may also perform other operations or variations of each operation in FIG. 4. In addition, the various steps in FIG. 4 may be performed in a different order from that presented in FIG. 4, and it is possible that not all operations in FIG. 4 are to be performed.
  • S320 Down-sampling the first image to obtain a second image.
  • S330 Determine a first blur kernel according to the second image.
  • step S310 to step S330 are the same as step S110 to step S130.
  • step S110 to step S130 please refer to the description of S110 to S130, which will not be repeated here for brevity.
  • S340 Up-sampling the first blur kernel to obtain a second blur kernel.
  • the first blur kernel is obtained.
  • the first blur kernel can be up-sampled to obtain the second blur kernel. Since the first blur kernel is relatively small compared to the deblurred image, the algorithm complexity of upsampling the first blur kernel is much lower than the algorithm complexity of the third image obtained by upsampling the fourth image in S150, which is greatly simplified The up-sampling process reduces the time-consuming process of the entire de-blurring process.
  • step S320 up-sampling corresponding to the multiple of down-sampling in step S320 should be performed in step S340.
  • step S340 should perform up-sampling corresponding to the multiple of down-sampling in step S320" should be understood as: if the second image obtained by down-sampling the first image in step S320 is 1/N of the size of the first image , Then in S340, the first fuzzy kernel should be interpolated by N times to obtain the second fuzzy kernel, where N can be any positive integer.
  • the embodiment of the present application does not make any limitation on the specific interpolation process of upsampling, and any interpolation algorithm in existing algorithms can be used, such as nearest neighbor interpolation, bilinear quadratic interpolation, bicubic interpolation, etc.
  • S350 Deblur the first image according to the second blur check to obtain a third image.
  • step S340 after the second blur kernel is obtained by up-sampling the first blur kernel, the first image is deblurred according to the second blur kernel to obtain a third image, where the third image is the same as the first acquired first image.
  • the estimated first blur kernel inevitably still has a certain error.
  • the first blur kernel is up-sampled to obtain the second blur kernel, it will also Introduce a part of the error.
  • a bilateral filter can be used to process the deblurred third image and subtract the response value of the bilateral filter, which can effectively suppress The ringing effect reduces the influence of the estimation error of the second blur kernel on the restoration result, thereby obtaining a more ideal clear image.
  • the method 300 may further include S360, performing denoising processing on the third image to obtain the sixth image.
  • the third image may be denoised to obtain a sixth image with the same resolution as the third image.
  • it may be based on a denoising model of a convolutional neural network (CNN), or a denoising model in a traditional method, which is not limited in the embodiment of the present application.
  • CNN convolutional neural network
  • the obtained high-resolution blurred image is down-sampled to obtain a low-resolution blurred image
  • the first blur kernel is estimated based on the obtained low-resolution blurred image
  • the first blur kernel is up-sampled to obtain the second blur
  • the originally acquired high-resolution blurred image is deblurred to obtain a deblurred image with the same resolution as the original blurred image, thereby achieving rapid deblurring of the high-resolution blurred image.
  • the first blur kernel is smaller than the fourth image, directly up-sampling the second blur kernel can reduce the complexity of the up-sampling process, thereby reducing the time-consuming deblurring.
  • the image distortion caused by upsampling can be reduced, so that the image quality can be improved while reducing the time-consuming deblurring.
  • FIG. 5 shows the result of the method 300 processing.
  • Figure 5(a) is the acquired high-resolution blurred image (i.e. the first image)
  • Figure 5(b) is the low-resolution blurred image (i.e. the first image) after downsampling the high-resolution blurred image.
  • Two images where the number of pixels in the second image is 1/2 of the number of pixels in the first image.
  • Fig. 5(c) is the first blur kernel estimated from the second image
  • Fig. 5(d) is the second blur kernel obtained after upsampling the first blur kernel
  • Fig. 5(e) is the check according to the second blur
  • Fig. 5(a) The deblurred image after deblurring (ie the third image). It can be seen from Figure 5 that after deblurring, the image quality of Figure 5(e) is improved compared to Figure 5(a).
  • FIG. 6 shows a schematic block diagram of an image processing apparatus 500 provided by an embodiment of the present application.
  • the image processing apparatus includes an acquisition unit 510 and a processing unit 520.
  • the acquiring unit 510 is configured to acquire a first image, where the first image is a high-resolution blurred image.
  • the processing unit 520 is configured to down-sample the first image to obtain the second image.
  • the processing unit 520 is further configured to determine the first blur kernel according to the second image.
  • the processing unit 520 is further configured to obtain a third image according to the first blur kernel, where the third image is a deblurred image with the same resolution as the first image.
  • the acquiring unit 510 is specifically configured to acquire an edge map of the second image.
  • the processing unit 520 is specifically configured to: determine at least one first region of the edge map, wherein each first region in the at least one first region is a prominent edge region of the edge map.
  • the processing unit 520 is specifically configured to: determine the first blur kernel according to the at least one first region.
  • processing unit 520 is further specifically configured to:
  • processing unit 520 is further specifically configured to:
  • the third image is obtained by unblindly deblurring the first image according to the second blur kernel.
  • processing unit 520 is further specifically configured to:
  • the first blur kernel is determined according to the fifth image.
  • the processing unit 520 is further specifically configured to: perform denoising processing on the third image to obtain a sixth image, where the sixth image has the same resolution as the third image.
  • image processing apparatus 500 provided in the embodiment of the present application is used to implement any method in the foregoing method embodiments. For specific details, refer to the foregoing method, and details are not described herein again.
  • the acquiring unit 510 may be implemented by a communication interface
  • the processing unit 520 may be implemented by a processor.
  • the image processing apparatus 600 may include a processor 610, a memory 620, and a communication interface 630.
  • the memory 620 may be used to store codes executed by the processor 610, and the processor 610 may be used to process data or programs.
  • the steps of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 610 or instructions in the form of software.
  • the steps of the method disclosed in the embodiments of the present invention may be directly embodied as being executed and completed by a hardware processor, or executed and completed by a combination of hardware and software modules in the processor.
  • the software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers.
  • the storage medium is located in the memory 620, and the processor 610 reads the information in the memory 620, and completes the steps of the foregoing method in combination with its hardware. In order to avoid repetition, it will not be described in detail here.
  • the device 500 shown in FIG. 6 or the device 600 shown in FIG. 7 can implement each process of the image processing method corresponding to the foregoing method embodiment. Specifically, the device 500 or the device 600 can refer to the above description, in order to avoid repetition , I won’t repeat it here.
  • the embodiment of the present application also provides a computer-readable medium for storing a computer program, and the computer program includes instructions for executing the corresponding method in the foregoing method embodiment.
  • the embodiments of the present application also provide a computer program product, the computer program product comprising: computer program code, so that the image processing apparatus executes the corresponding method in any of the foregoing method embodiments.
  • the size of the sequence number of the above-mentioned processes does not mean the order of execution.
  • the execution order of each process should be determined by its function and internal logic, and should not be implemented in this application.
  • the implementation process of the example constitutes any limitation.
  • the foregoing embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination.
  • the above-mentioned embodiments may be implemented in the form of a computer program product in whole or in part.
  • the computer program product includes one or more computer instructions.
  • the computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions can be transmitted from a website, computer, server, or data center through a (Such as infrared, wireless, microwave, etc.) to another website site, computer, server or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more sets of available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium.
  • the semiconductor medium may be a solid state drive.
  • the disclosed system, device, and method may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or It can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • each unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of this application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code .

Abstract

The present application provides an image processing method and device, capable of quickly deblurring a real high-resolution image without distortion and improving the image quality. The image processing method comprises: obtaining a first image, wherein the first image is a high-resolution blurred image; performing down-sampling on the first image to obtain a second image; determining a first blurring kernel according to the second image; and obtaining a third image according to the first blurring kernel, the third image being a deblurred image having the same resolution as the first image.

Description

图像处理的方法和装置Image processing method and device
本申请要求于2019年07月23日提交中国专利局、申请号为201910666379.2、申请名称为“图像处理的方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on July 23, 2019, with the application number of 201910666379.2. The application title is "Image Processing Method and Apparatus", the entire content of which is incorporated into this application by reference.
背景技术Background technique
随着电子设备的摄像头的分辨率越来越高,照片像素数普遍达到10M以上。当电子设备的摄像头处于不稳定的状态,例如,手抖或暗光条件,容易拍出模糊照片,影响图片质量,对识别和分析图像信息的内容带来很大的不便。As the resolution of the camera of an electronic device becomes higher and higher, the number of picture pixels generally reaches more than 10M. When the camera of an electronic device is in an unstable state, for example, handshaking or dark light conditions, it is easy to take a blurred picture, which affects the quality of the picture, and brings great inconvenience to the recognition and analysis of the content of the image information.
传统去模糊技术,能够较好的实现图像的去模糊,得到质量较好的去模糊图像。但随着图片分辨率的增大,基于传统去模糊方法计算量很大,去模糊速度很慢,耗时较大。随着深度学习技术的兴起,基于深度学习去模糊技术迅速发展。但由于基于深度学习的去迷糊方法中在训练去模糊模型时的训练集为算法合成的模糊图,并不是真实的图像,当去模糊的图像与训练集中的图像不同时,基于训练模型得到的去模糊图像会存在失真,而且基于深度学习的去模糊算法在对高分辨率图像进行去模糊时,耗时过大,影响去模糊的实时性。The traditional deblurring technology can better realize the deblurring of the image and obtain a deblurred image with better quality. However, as the resolution of the picture increases, the amount of calculation based on the traditional deblurring method is very large, the deblurring speed is very slow and time-consuming. With the rise of deep learning technology, deblurring technology based on deep learning has developed rapidly. However, since the training set when training the deblurring model in the deep learning deblurring method is a blurred image synthesized by the algorithm, it is not a real image. When the deblurred image is different from the image in the training set, the training model is used to obtain The deblurring image will have distortion, and the deblurring algorithm based on deep learning takes too much time to deblur high-resolution images, which affects the real-time deblurring.
因此,如何对真实的高分辨率图像不失真的快速去模糊,提高图像质量成为我们亟待解决的问题。Therefore, how to quickly deblur real high-resolution images without distortion and improve image quality has become an urgent problem to be solved.
发明内容Summary of the invention
本申请提供了一种图像处理的方法和装置,能够对真实的高分辨率图像不失真的快速去模糊,提高图像质量。This application provides an image processing method and device, which can quickly deblur real high-resolution images without distortion and improve image quality.
第一方面,提供了一种图像处理的方法,包括:获取第一图像,该第一图像为高分辨率的模糊图像;对该第一图像进行下采样得到第二图像;根据该第二图像确定第一模糊核;根据该第一模糊核得到第三图像,其中,该第三图像为与该第一图像分辨率相同的去模糊图像。In a first aspect, an image processing method is provided, including: acquiring a first image, which is a high-resolution blurred image; down-sampling the first image to obtain a second image; and according to the second image Determine a first blur kernel; obtain a third image according to the first blur kernel, where the third image is a deblurred image with the same resolution as the first image.
上述技术方案中,对获取的高分辨率模糊图像进行下采样得到低分辨率模糊图像,根据得到的低分辨率模糊图像估计第一模糊核,并根据得到的第一模糊核得到与原始获取的高分辨率模糊图像分辨率相同的去模糊图像,从而实现在减小去模糊耗时的同时提高了图像质量。In the above technical solution, the obtained high-resolution blurred image is down-sampled to obtain a low-resolution blurred image, the first blur kernel is estimated based on the obtained low-resolution blurred image, and the obtained first blur kernel is compared with the original obtained High-resolution blurred image Deblurred images with the same resolution, thereby achieving improved image quality while reducing the time-consuming deblurring.
结合第一方面,在第一方面的某些可能的实现方式中,根据该第二图像确定第一模糊核,包括:获取该第二图像的边缘图;确定该边缘图的至少一个第一区域,其中,该至少一个第一区域中的每一个第一区域为该边缘图的边缘显著区域;根据该至少一个第一区域确定该第一模糊核。With reference to the first aspect, in some possible implementations of the first aspect, determining the first blur kernel according to the second image includes: acquiring an edge map of the second image; determining at least one first region of the edge map , Wherein each first region in the at least one first region is an edge salient region of the edge map; the first blur kernel is determined according to the at least one first region.
先利用边缘检测算法求取第二图像的边缘图像,然后截取包含显著性边缘的一块或多 块区域估计第一模糊核。例如,根据下式所示的梯度域的迭代自适应先验模型来估计第二图像的模糊核:First, the edge detection algorithm is used to obtain the edge image of the second image, and then one or more regions containing the salient edge are intercepted to estimate the first blur kernel. For example, the blur kernel of the second image is estimated according to the iterative adaptive prior model of the gradient domain as shown in the following formula:
Figure PCTCN2020103150-appb-000001
Figure PCTCN2020103150-appb-000001
Figure PCTCN2020103150-appb-000002
Figure PCTCN2020103150-appb-000002
其中,
Figure PCTCN2020103150-appb-000003
为清晰图像X的梯度图,参数p和λ是模糊和估计的迭代优化参数,通过迭代优化,即可得到第一模糊核k。
among them,
Figure PCTCN2020103150-appb-000003
To clear the gradient map of the image X, the parameters p and λ are fuzzy and estimated iterative optimization parameters. Through iterative optimization, the first fuzzy kernel k can be obtained.
在一些可能的实现方式中,为了获得更加理想的复原效果,可以采用各项异性的全变分(total vation,TV)模型,使得估计出的第一模糊核更加准确。从而获得更加准确的第一模糊核。In some possible implementations, in order to obtain a more ideal restoration effect, an anisotropic total variation (TV) model can be used to make the estimated first blur kernel more accurate. Thereby, a more accurate first blur kernel is obtained.
应说明,上述在估计第一模糊核的过程中,在获取第二图像边缘时,可以采用任何现有算法中的边缘检测算法,例如,Sobel算法、Canny算法以及Laplacian算法等,本申请实施例对于具体算法并不作任何限定,只要能够获得较为准确的边缘图像即可。It should be noted that in the foregoing process of estimating the first blur kernel, when acquiring the edge of the second image, any existing edge detection algorithm, such as Sobel algorithm, Canny algorithm, Laplacian algorithm, etc., can be used. The embodiments of the present application There are no restrictions on the specific algorithm, as long as a more accurate edge image can be obtained.
另外,在估计第一模糊核时,上述所示的公式仅仅为示例性说明,本申请实施例对于估计第一模糊核的方法不作具体限定。In addition, when estimating the first blur kernel, the above-mentioned formula is only an exemplary description, and the embodiment of the present application does not specifically limit the method for estimating the first blur kernel.
结合第一方面,在第一方面的某些可能的实现方式中,根据该第一模糊核得到第三图像,包括:根据该第一模糊核对该第二图像进行非盲去模糊得到第四图像;对该第四图像进行上采样得到该第三图像。With reference to the first aspect, in some possible implementations of the first aspect, obtaining a third image according to the first blur kernel includes: performing non-blind deblurring on the second image according to the first blur kernel to obtain a fourth image ; Up-sampling the fourth image to obtain the third image.
估计出第一模糊核后,根据该第一模糊核对第二图像进行去模糊处理,得到第四图像,其中,第四图像为与第二图像分辨率相同的去模糊图像。After the first blur kernel is estimated, the second image is deblurred according to the first blur kernel to obtain a fourth image, where the fourth image is a deblurred image with the same resolution as the second image.
在一些可能的实现方式中,虽然经过一些列后续处理,但估计出的第一模糊核不可避免的仍然存在一定的误差。为了减小第一模糊核估计误差带来的振铃效应,可以采用双边滤波器对去模糊后的第四图像进行处理,并减去双边滤波器的响应值,从而可以有效抑制振铃效应,减小第一模糊核估计误差对复原结果的影响,从而得到较为理想的清晰化图像。In some possible implementation manners, even after a series of subsequent processing, the estimated first fuzzy kernel inevitably still has a certain error. In order to reduce the ringing effect caused by the estimation error of the first blur kernel, a bilateral filter can be used to process the deblurred fourth image, and the response value of the bilateral filter can be subtracted, so that the ringing effect can be effectively suppressed. The influence of the estimation error of the first blur kernel on the restoration result is reduced, thereby obtaining a more ideal clear image.
根据估计出的第一模糊核对低分辨率的模糊图像(第二图像)进行去模糊处理后,得到与该第二图像分辨率相同的去模糊后图像(第四图像)。为了得到与原始采集的高分辨率模糊图像(第一图像)相同分辨率的图像,需要对获得的第四图像进行与下采样的倍数相应的上采样,从而得到与第一图像分辨率相同的去模糊后图像(第三图像)。After deblurring the low-resolution blurred image (second image) according to the estimated first blur check, a deblurred image (fourth image) with the same resolution as the second image is obtained. In order to obtain an image with the same resolution as the originally acquired high-resolution blurred image (the first image), the obtained fourth image needs to be up-sampled corresponding to the multiple of the down-sampling, so as to obtain the same resolution as the first image The image after deblurring (third image).
其中,“对获得的第四图像进行与下采样的倍数相应的上采样”应理解为:如果对第一图像下采样得到的第二图像为第一图像的1/N大小时,则对第四图像应该进行N倍插值得到第三图像,其中,N可以为任意正整数。Among them, "upsampling the obtained fourth image corresponding to the multiple of the downsampling" should be understood as: if the second image obtained by downsampling the first image is 1/N of the size of the first image, then Four images should be interpolated by N times to obtain the third image, where N can be any positive integer.
另外,本申请实施例对上采样的具体插值过程不作任何限定,可以采用现有算法中任意一种插值算法,例如最邻近插值、双线性二次插值、双立方插值等。In addition, the embodiment of the present application does not make any limitation on the specific interpolation process of upsampling, and any interpolation algorithm in existing algorithms can be used, such as nearest neighbor interpolation, bilinear quadratic interpolation, bicubic interpolation, etc.
上述技术方案中,对获取的高分辨率模糊图像进行下采样得到低分辨率模糊图像,根据得到的低分辨率模糊图像估计第一模糊核,根据估计的第一模糊核对下采样后的低分辨率模糊图像进行去模糊处理,最后对得到的低分辨率去模糊图像进行上采样得到与初始的模糊图像分辨率相同的去模糊图像,从而实现对高分辨率模糊图像快速的去模糊,另外通过模糊核估计的方法减小了基于深度学习的去模糊方法的结果的失真,在减小去模糊耗时的同时提高了图像质量。In the above technical solution, the acquired high-resolution blurred image is down-sampled to obtain a low-resolution blurred image, the first blur kernel is estimated according to the obtained low-resolution blurred image, and the down-sampled low resolution is calculated according to the estimated first blur kernel. Deblurring the high-resolution blurred image, and finally up-sampling the obtained low-resolution deblurred image to obtain a deblurred image with the same resolution as the initial blurred image, thereby achieving rapid deblurring of the high-resolution blurred image. The blur kernel estimation method reduces the distortion of the result of the deblurring method based on deep learning, and improves the image quality while reducing the time-consuming deblurring.
结合第一方面,在第一方面的某些可能的实现方式中,该根据该第一模糊核得到第三图像,还包括:对该第一模糊核进行上采样得到第二模糊核;根据该第二模糊核对该第一图像进行非盲去模糊得到该第三图像。With reference to the first aspect, in some possible implementations of the first aspect, the obtaining a third image according to the first blur kernel further includes: up-sampling the first blur kernel to obtain a second blur kernel; The second blur kernel performs non-blind deblurring on the first image to obtain the third image.
为了进一步减小去模糊的耗时,可以对第一模糊核进行上采样得到第二模糊核。由于第一模糊核相对于去模糊图像很小,因此,对第一模糊核进行上采样的算法复杂度比对第四图像上采样得到第三图像的算法复杂度要低很多,大大简化了上采样的过程,减小了整个去模糊过程的耗时。In order to further reduce the time-consuming deblurring, the first blur kernel can be up-sampled to obtain the second blur kernel. Since the first blur kernel is relatively small compared to the deblurred image, the algorithm complexity of upsampling the first blur kernel is much lower than the algorithm complexity of upsampling the fourth image to obtain the third image, which greatly simplifies the upper The sampling process reduces the time-consuming process of deblurring.
应理解,为了最终得到与第一图像分辨率相同的去模糊图像(即第三图像),应当进行与下采样的倍数相应的上采样。It should be understood that in order to finally obtain a deblurred image with the same resolution as the first image (that is, the third image), up-sampling corresponding to the multiple of the down-sampling should be performed.
其中,“应当进行与下采样的倍数相应的上采样”应理解为:如果对第一图像下采样得到的第二图像为第一图像的1/N大小时,则对第一模糊核应该进行N倍插值得到第二模糊核,其中,N可以为任意正整数。Among them, "upsampling corresponding to the multiple of downsampling" should be understood as: if the second image obtained by downsampling the first image is 1/N of the size of the first image, then the first blur kernel should be performed N times the interpolation to obtain the second fuzzy kernel, where N can be any positive integer.
另外,本申请实施例对上采样的具体插值过程不作任何限定,可以采用现有算法中任意一种插值算法,例如最邻近插值、双线性二次插值、双立方插值等。In addition, the embodiment of the present application does not make any limitation on the specific interpolation process of upsampling, and any interpolation algorithm in existing algorithms can be used, such as nearest neighbor interpolation, bilinear quadratic interpolation, bicubic interpolation, etc.
上述技术方案中,对获取的高分辨率模糊图像进行下采样得到低分辨率模糊图像,根据得到的低分辨率模糊图像估计第一模糊核,并对第一模糊核进行上采样得到第二模糊核,根据得到的第二模糊核对原始获取的高分辨率模糊图像进行去模糊处理得到与初始的模糊图像分辨率相同的去模糊图像,从而实现对高分辨率模糊图像快速的去模糊。由于第一模糊核相对于第四图像较小,所以直接对第二模糊核进行上采样,可以降低上采样过程的复杂度,从而减小去模糊的耗时。另外通过直接在高分辨率的模糊图像上进行去模糊处理可以减小由于上采样带来的图像失真,从而实现在减小去模糊耗时的同时提高了图像质量。In the above technical solution, the obtained high-resolution blurred image is down-sampled to obtain a low-resolution blurred image, the first blur kernel is estimated based on the obtained low-resolution blurred image, and the first blur kernel is up-sampled to obtain the second blur According to the obtained second blur check, the originally acquired high-resolution blurred image is deblurred to obtain a deblurred image with the same resolution as the original blurred image, thereby achieving rapid deblurring of the high-resolution blurred image. Since the first blur kernel is smaller than the fourth image, directly up-sampling the second blur kernel can reduce the complexity of the up-sampling process, thereby reducing the time-consuming deblurring. In addition, by directly performing deblurring processing on the high-resolution blurred image, the image distortion caused by upsampling can be reduced, so that the image quality can be improved while reducing the time-consuming deblurring.
结合第一方面,在第一方面的某些可能的实现方式中,根据该第二图像确定第一模糊核,包括:对该第二图像进行去噪处理得到第五图像,该第五图像与该第二图像分辨率相同;根据该第五图像确定该第一模糊核。With reference to the first aspect, in some possible implementations of the first aspect, determining the first blur kernel based on the second image includes: performing denoising processing on the second image to obtain a fifth image, which is compared with The second image has the same resolution; the first blur kernel is determined according to the fifth image.
通过对下采样后的第二图像进行去噪处理,从而减小了摄像头带来的噪声干扰,减小图像失真,再根据去噪后的第五图像估计第一模糊核,减小第一模糊核估计的误差,从而减小基于第一模糊核得到的去模糊图像的失真。By denoising the down-sampled second image, the noise interference caused by the camera is reduced, and the image distortion is reduced, and then the first blur kernel is estimated based on the denoised fifth image to reduce the first blur The error of the kernel estimation is thereby reduced based on the distortion of the deblurred image obtained by the first blur kernel.
结合第一方面,在第一方面的某些可能的实现方式中,该方法还包括:对该第三图像进行去噪处理得到第六图像,该第六图像与该第三图像分辨率相同。With reference to the first aspect, in some possible implementations of the first aspect, the method further includes: performing denoising processing on the third image to obtain a sixth image, the sixth image having the same resolution as the third image.
可选地,在一些可能的实现方式中,为了避免噪声对去模糊结果的干扰,可以对获得的第三图像进行去噪处理,从而减小图像失真。Optionally, in some possible implementation manners, in order to avoid noise interference to the deblurring result, denoising processing may be performed on the obtained third image, thereby reducing image distortion.
第二方面,提供了一种图像处理的装置,所述装置用于执行上述第一方面或第一方面的任一可能的实现方式中的方法。具体地,所述装置可以包括用于执行第一方面或第一方面的任一可能的实现方式中的方法的模块。In a second aspect, an image processing apparatus is provided, and the apparatus is configured to execute the foregoing first aspect or the method in any possible implementation of the first aspect. Specifically, the device may include a module for executing the method in the first aspect or any possible implementation of the first aspect.
第三方面,提供一种图像处理的装置,所述装置包括存储器和处理器,所述存储器用于存储指令,所述处理器用于执行所述存储器存储的指令,并且对所述存储器中存储的指令的执行使得所述处理器执行第一方面或第一方面的任一可能的实现方式中的方法。In a third aspect, an image processing apparatus is provided. The apparatus includes a memory and a processor, the memory is used to store instructions, and the processor is used to execute instructions stored in the memory and perform processing on the images stored in the memory. Execution of the instructions enables the processor to execute the first aspect or the method in any possible implementation manner of the first aspect.
第四方面,提供一种计算机可读存储介质,所述计算机可读存储介质中存储有指令, 当所述指令在计算机上运行时,使得计算机执行第一方面或第一方面的任一可能的实现方式中的方法。In a fourth aspect, a computer-readable storage medium is provided, and instructions are stored in the computer-readable storage medium, and when the instructions are run on a computer, the computer executes the first aspect or any possible aspect of the first aspect. The method in the implementation mode.
第五方面,提供一种包含指令的计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行第一方面或第一方面的任一可能的实现方式中的方法。In a fifth aspect, a computer program product containing instructions is provided. When the computer program product runs on a computer, the computer executes the method in the first aspect or any possible implementation of the first aspect.
附图说明Description of the drawings
图1示出了本申请实施例提供的一种图像处理的方法的示意性流程图;Fig. 1 shows a schematic flowchart of an image processing method provided by an embodiment of the present application;
图2示出了本申请实施例提供的另一种图像处理的方法的示意性流程图;FIG. 2 shows a schematic flowchart of another image processing method provided by an embodiment of the present application;
图3示出了本申请实施例提供的一种图像处理的方法的处理结果;FIG. 3 shows the processing result of an image processing method provided by an embodiment of the present application;
图4示出了本申请实施例提供的又一种图像处理的方法的示意性流程图;FIG. 4 shows a schematic flowchart of yet another image processing method provided by an embodiment of the present application;
图5示出了本申请实施例提供的又一种图像处理的方法的处理结果;FIG. 5 shows the processing result of another image processing method provided by an embodiment of the present application;
图6示出了本申请实施例提供的一种图像处理的装置的示意性框图;Fig. 6 shows a schematic block diagram of an image processing apparatus provided by an embodiment of the present application;
图7示出了本申请实施例提供的另一种图像处理的装置的示意性框图。Fig. 7 shows a schematic block diagram of another image processing apparatus provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图,对本申请中的技术方案进行描述。The technical solution in this application will be described below in conjunction with the drawings.
图1示出了本申请实施例提供的图像处理的方法100的示意性流程图。应理解,图1示出了图像处理的方法的步骤或操作,但这些步骤或操作仅是示例,本申请实施例还可以执行其他操作或者图1中的各个操作的变形。此外,图1中的各个步骤可以按照与图1呈现的不同的顺序来执行,并且有可能并非要执行图1中的全部操作。FIG. 1 shows a schematic flowchart of an image processing method 100 provided by an embodiment of the present application. It should be understood that FIG. 1 shows the steps or operations of the image processing method, but these steps or operations are only examples, and the embodiment of the present application may also perform other operations or variations of each operation in FIG. 1. In addition, the various steps in FIG. 1 may be performed in a different order from that presented in FIG. 1, and it is possible that not all operations in FIG. 1 are to be performed.
S110,获取第一图像。S110: Acquire a first image.
该第一图像为高分辨率的模糊图像。例如,通过电子设备拍摄得到该第一图像,其中,该电子设备可以为具有高分辨率摄像头的智能手机、照相机、平板电脑等,本申请实施例对获取第一图像的方式不作任何限定。The first image is a high-resolution blurred image. For example, the first image is obtained by shooting with an electronic device, where the electronic device may be a smart phone, a camera, a tablet computer, etc. with a high-resolution camera, and the embodiment of the present application does not limit the method of obtaining the first image.
S120,对第一图像进行下采样得到第二图像。S120, down-sampling the first image to obtain a second image.
由于获取的第一图像为高分辨率的模糊图像,图像较大,如果直接对第一图像进行去迷糊处理,会导致计算量过大,去模糊的耗时较大。因此,为了降低去模糊过程的复杂度,减小耗时,可以先对第一图像进行下采样,得到第二图像,对第二图像进行去模糊处理。Since the acquired first image is a high-resolution blurred image and the image is relatively large, if the first image is directly de-blurred, the amount of calculation will be too large and the de-blurring will take a long time. Therefore, in order to reduce the complexity of the deblurring process and reduce the time consumption, the first image may be down-sampled to obtain the second image, and the second image may be deblurred.
其中,在对第一图像进行下采样时,可以将第一图像下采样为第一图像的1/2,即得到的第二图像的像素点为第一图像的像素点的一半。或者,可以将第一图像下采样为第一图像的1/3,即得到的第二图像的像素点为第一图像的像素点的1/3,具体的采样倍数,本申请实施例对此并不作限定。Wherein, when down-sampling the first image, the first image can be down-sampled to 1/2 of the first image, that is, the pixel points of the obtained second image are half of the pixel points of the first image. Alternatively, the first image may be down-sampled to 1/3 of the first image, that is, the pixels of the second image obtained are 1/3 of the pixels of the first image, and the specific sampling multiple is that in this embodiment of the application. It is not limited.
在一些可选的实施方式中,为了减小摄像头的噪声干扰,在得到第二图像后,可以先对第二图像进行去噪处理,得到干扰较小的低分辨率模糊图像(即第五图像)。例如,可以基于卷积神经网络(convolutional neural network,CNN)的去噪模型,或者传统方法中的去噪模型,本申请实施例对此并不作限定。In some optional implementations, in order to reduce the noise interference of the camera, after the second image is obtained, the second image can be denoised first to obtain a low-resolution blurred image with less interference (ie, the fifth image ). For example, it may be based on a denoising model of a convolutional neural network (CNN), or a denoising model in a traditional method, which is not limited in the embodiment of the present application.
在另外一些可选的实施方式中,也可以直接对获取的第一图像进行去噪声处理,从而减小第一图像中的噪声干扰。In other optional implementation manners, it is also possible to directly perform denoising processing on the acquired first image, thereby reducing noise interference in the first image.
S130,根据该第二图像确定第一模糊核。S130: Determine a first blur kernel according to the second image.
通过对高分辨率的模糊图像,即第一图像,下采样后得到低分辨率的第二图像,为了减小去模糊处理的耗时,可以对第二图像进行去模糊处理。By down-sampling the high-resolution blurred image, that is, the first image, the low-resolution second image is obtained. In order to reduce the time-consuming deblurring process, the second image can be deblurred.
现有技术中,按照模糊核是否已知,将图像去模糊分为盲的图像去模糊(blind image deblurring,BID)和非盲的图像去模糊(non-blind image deblurring,NBID)两类。其中,盲的图像去模糊是指在模糊核未知的情况下,只有模糊图像本身。而非盲的图像去模糊指模糊核已知,只需要进行图像复原的过程。本申请实施例中为了不失真的获得去模糊后的清晰图像,采用非盲的图像去模糊方法。In the prior art, according to whether the blur kernel is known, image deblurring is divided into blind image deblurring (BID) and non-blind image deblurring (NBID). Among them, blind image deblurring means that only the image itself is blurred when the blur kernel is unknown. But non-blind image deblurring means that the blur kernel is known and only the process of image restoration is required. In the embodiments of the present application, in order to obtain a clear image after deblurring without distortion, a non-blind image deblurring method is adopted.
首先根据需要去模糊的图像,即第二图像估计第一模糊核。先利用边缘检测算法求取第二图像的边缘图像,然后截取包含显著性边缘的一块或多块区域估计第一模糊核。例如,根据式(1)所示的梯度域的迭代自适应先验模型来估计第二图像的模糊核:First, estimate the first blur kernel according to the image that needs to be deblurred, that is, the second image. First, the edge detection algorithm is used to obtain the edge image of the second image, and then one or more regions containing the salient edge are intercepted to estimate the first blur kernel. For example, according to the iterative adaptive prior model of the gradient domain shown in formula (1), the blur kernel of the second image is estimated:
Figure PCTCN2020103150-appb-000004
Figure PCTCN2020103150-appb-000004
Figure PCTCN2020103150-appb-000005
Figure PCTCN2020103150-appb-000005
式(1)中,
Figure PCTCN2020103150-appb-000006
为清晰图像X的梯度图,参数p和λ是模糊和估计的迭代优化参数,通过迭代优化,即可得到第一模糊核k。
In formula (1),
Figure PCTCN2020103150-appb-000006
To clear the gradient map of the image X, the parameters p and λ are fuzzy and estimated iterative optimization parameters. Through iterative optimization, the first fuzzy kernel k can be obtained.
在一些可能的实现方式中,为了获得更加理想的复原效果,可以采用各项异性的全变分(total vation,TV)模型,使得估计出的第一模糊核更加准确。从而获得更加准确的第一模糊核。In some possible implementations, in order to obtain a more ideal restoration effect, an anisotropic total variation (TV) model can be used to make the estimated first blur kernel more accurate. Thereby, a more accurate first blur kernel is obtained.
应说明,上述在估计第一模糊核的过程中,在获取第二图像边缘时,可以采用任何现有算法中的边缘检测算法,例如,Sobel算法、Canny算法以及Laplacian算法等,本申请实施例对于具体算法并不作任何限定,只要能够获得较为准确的边缘图像即可。It should be noted that in the foregoing process of estimating the first blur kernel, when acquiring the edge of the second image, any existing edge detection algorithm, such as Sobel algorithm, Canny algorithm, Laplacian algorithm, etc., can be used. The embodiments of the present application There are no restrictions on the specific algorithm, as long as a more accurate edge image can be obtained.
另外,在估计第一模糊核时,式(1)所示的公式仅仅为示例性说明,本申请实施例对于估计第一模糊核的方法不作具体限定。In addition, when estimating the first fuzzy kernel, the formula shown in formula (1) is only an exemplary description, and the embodiment of the present application does not specifically limit the method for estimating the first fuzzy kernel.
S140,根据第一模糊核得到第三图像。S140: Obtain a third image according to the first blur kernel.
在估计得到第一模糊核后,可以根据该第一模糊核得到第三图像,其中,该第三图像为与第一图像分辨率相同的去模糊图像。After the first blur kernel is estimated, a third image can be obtained based on the first blur kernel, where the third image is a deblurred image with the same resolution as the first image.
图2示出了本申请实施例提供的图像处理的方法200的示意性流程图。应理解,图2示出了图像处理的方法的步骤或操作,但这些步骤或操作仅是示例,本申请实施例还可以执行其他操作或者图2中的各个操作的变形。此外,图2中的各个步骤可以按照与图2呈现的不同的顺序来执行,并且有可能并非要执行图2中的全部操作。FIG. 2 shows a schematic flowchart of an image processing method 200 provided by an embodiment of the present application. It should be understood that FIG. 2 shows the steps or operations of the image processing method, but these steps or operations are only examples, and the embodiment of the present application may also perform other operations or variations of each operation in FIG. 2. In addition, the various steps in FIG. 2 may be performed in a different order from that presented in FIG. 2, and it is possible that not all operations in FIG. 2 are to be performed.
S210,获取第一图像。S210: Acquire a first image.
S220,对第一图像进行下采样得到第二图像。S220: Down-sampling the first image to obtain a second image.
S230,根据该第二图像确定第一模糊核。S230: Determine a first blur kernel according to the second image.
其中,步骤S210至步骤S230与步骤S110至步骤S130相同,详细描述可以参考步骤S110至步骤S130,此处为了简洁不再赘述。Among them, step S210 to step S230 are the same as step S110 to step S130. For detailed description, please refer to step S110 to step S130, which will not be repeated here for brevity.
其中,第三图像为与第一图像分辨率相同的去模糊图像。Wherein, the third image is a deblurred image with the same resolution as the first image.
上述技术方案中,通过对高分辨率的模糊图像进行下采样得到低分辨率的模糊图像,并根据该低分辨率的模糊图像估计第一模糊核,根据估计出的第一模糊核进行去模糊处理,得到与原始获取的高分辨模糊图像分辨率相同的去模糊图像,从而实现在减小去模糊 耗时的同时提高了图像质量。In the above technical solution, a low-resolution blurred image is obtained by down-sampling a high-resolution blurred image, and the first blur kernel is estimated based on the low-resolution blurred image, and deblurring is performed according to the estimated first blur kernel. Through processing, a deblurred image with the same resolution as the originally acquired high-resolution blurred image is obtained, thereby achieving improved image quality while reducing the time-consuming deblurring.
S240,根据估计出的第一模糊核对第二图像进行去模糊得到第四图像。S240: Deblur the second image according to the estimated first blur check to obtain a fourth image.
经过步骤S230,估计出第一模糊核后,根据该第一模糊核对第二图像进行去模糊处理,得到第四图像,其中,第四图像为与第二图像分辨率相同的去模糊图像。After step S230, after the first blur kernel is estimated, the second image is deblurred according to the first blur check to obtain a fourth image, where the fourth image is a deblurred image with the same resolution as the second image.
在一些可能的实现方式中,虽然经过一些列后续处理,但估计出的第一模糊核不可避免的仍然存在一定的误差。为了减小第一模糊核估计误差带来的振铃效应,可以采用双边滤波器对去模糊后的第四图像进行处理,并减去双边滤波器的响应值,从而可以有效抑制振铃效应,减小第一模糊核估计误差对复原结果的影响,从而得到较为理想的清晰化图像。In some possible implementation manners, even after a series of subsequent processing, the estimated first fuzzy kernel inevitably still has a certain error. In order to reduce the ringing effect caused by the estimation error of the first blur kernel, a bilateral filter can be used to process the deblurred fourth image, and the response value of the bilateral filter can be subtracted, so that the ringing effect can be effectively suppressed. The influence of the estimation error of the first blur kernel on the restoration result is reduced, thereby obtaining a more ideal clear image.
S250,对第四图像进行上采样得到第三图像。S250: Up-sampling the fourth image to obtain a third image.
根据估计出的第一模糊核对低分辨率的模糊图像(第二图像)进行去模糊处理后,得到与该第二图像分辨率相同的去模糊后图像(第四图像)。为了得到与原始采集的高分辨率模糊图像(第一图像)相同分辨率的图像,需要对获得的第四图像进行与步骤S220中下采样的倍数相应的上采样,从而得到与第一图像分辨率相同的去模糊后图像(第三图像)。After deblurring the low-resolution blurred image (second image) according to the estimated first blur check, a deblurred image (fourth image) with the same resolution as the second image is obtained. In order to obtain an image with the same resolution as the originally acquired high-resolution blurred image (first image), it is necessary to perform up-sampling on the obtained fourth image corresponding to the multiple of the down-sampling in step S220, so as to obtain a resolution from the first image. The deblurred image with the same rate (third image).
其中,“对获得的第四图像进行与步骤S220中下采样的倍数相应的上采样”应理解为:如果步骤S220中对第一图像下采样得到的第二图像为第一图像的1/N大小时,则在S240中,对第四图像应该进行N倍插值得到第三图像,其中,N可以为任意正整数。Wherein, "up-sampling the obtained fourth image corresponding to the multiple of the down-sampling in step S220" should be understood as: if the second image obtained by down-sampling the first image in step S220 is 1/N of the first image If the size is small, in S240, the fourth image should be interpolated by N times to obtain the third image, where N can be any positive integer.
另外,本申请实施例对上采样的具体插值过程不作任何限定,可以采用现有算法中任意一种插值算法,例如最邻近插值、双线性二次插值、双立方插值等。In addition, the embodiment of the present application does not make any limitation on the specific interpolation process of upsampling, and any interpolation algorithm in existing algorithms can be used, such as nearest neighbor interpolation, bilinear quadratic interpolation, bicubic interpolation, etc.
在一些可能的实现方式中,方法200还可以包括S260,对第三图像进行去噪处理得到第六图像。In some possible implementation manners, the method 200 may further include S260, performing denoising processing on the third image to obtain the sixth image.
为了减小由于上采样引入的噪声干扰,使得得到的第三图像更加准确,可以对第三图像进行去噪处理得到与第三图像分辨率相同的第六图像。例如,可以基于卷积神经网络(convolutional neural network,CNN)的去噪模型,或者传统方法中的去噪模型,本申请实施例对此并不作限定。In order to reduce noise interference caused by upsampling and make the obtained third image more accurate, the third image may be denoised to obtain a sixth image with the same resolution as the third image. For example, it may be based on a denoising model of a convolutional neural network (CNN), or a denoising model in a traditional method, which is not limited in the embodiment of the present application.
上述技术方案中,对获取的高分辨率模糊图像进行下采样得到低分辨率模糊图像,根据得到的低分辨率模糊图像估计第一模糊核,根据估计的第一模糊核对下采样后的低分辨率模糊图像进行去模糊处理,最后对得到的低分辨率去模糊图像进行上采样得到与初始的模糊图像分辨率相同的去模糊图像,从而实现对高分辨率模糊图像快速的去模糊,另外通过模糊核估计的方法减小了基于深度学习的去模糊方法的结果的失真,在减小去模糊耗时的同时提高了图像质量。In the above technical solution, the acquired high-resolution blurred image is down-sampled to obtain a low-resolution blurred image, the first blur kernel is estimated according to the obtained low-resolution blurred image, and the down-sampled low resolution is calculated according to the estimated first blur kernel. Deblurring the high-resolution blurred image, and finally up-sampling the obtained low-resolution deblurred image to obtain a deblurred image with the same resolution as the initial blurred image, thereby achieving rapid deblurring of the high-resolution blurred image. The blur kernel estimation method reduces the distortion of the result of the deblurring method based on deep learning, and improves the image quality while reducing the time-consuming deblurring.
图3示出了方法200处理结果。如图3所示,图3(a)为获取的高分辨率模糊图像(即第一图像),图3(b)为对高分辨率迷糊图像下采样后的低分辨率模糊图像(即第二图像),其中,第二图像的像素点个数为第一图像的像素点个数的1/2。图3(c)为根据第二图像估计的第一模糊核,图3(d)为根据第一模糊核对第二图像去模糊后得到的与第二图像分辨率相同的去模糊图像(即第四图像),图3(e)为对图3(d)上采样后得到的与原始获取的第一图像分辨率相同的去模糊图像(即第三图像)。从图3中可以看出,经过去模糊处理后,图3(e)相对于图3(a)中的图像质量得到了提高。FIG. 3 shows the result of the method 200 processing. As shown in Figure 3, Figure 3(a) is the acquired high-resolution blurred image (ie the first image), and Figure 3(b) is the low-resolution blurred image (ie the first image) after downsampling the high-resolution blurred image. Two images), where the number of pixels in the second image is 1/2 of the number of pixels in the first image. Fig. 3(c) is the first blur kernel estimated according to the second image, and Fig. 3(d) is the deblurred image with the same resolution as the second image obtained after deblurring the second image according to the first blur check. Four images), Figure 3(e) is a deblurred image (that is, the third image) obtained after up-sampling Figure 3(d) with the same resolution as the originally acquired first image. It can be seen from Fig. 3 that after deblurring, the image quality of Fig. 3(e) is improved compared to Fig. 3(a).
图4示出了本申请实施例提供的另一种图像处理的方法300。应理解,图4示出了图像处理的方法的步骤或操作,但这些步骤或操作仅是示例,本申请实施例还可以执行其他 操作或者图4中的各个操作的变形。此外,图4中的各个步骤可以按照与图4呈现的不同的顺序来执行,并且有可能并非要执行图4中的全部操作。FIG. 4 shows another image processing method 300 provided by an embodiment of the present application. It should be understood that FIG. 4 shows the steps or operations of the image processing method, but these steps or operations are only examples, and the embodiment of the present application may also perform other operations or variations of each operation in FIG. 4. In addition, the various steps in FIG. 4 may be performed in a different order from that presented in FIG. 4, and it is possible that not all operations in FIG. 4 are to be performed.
S310,获取第一图像。S310: Acquire a first image.
S320,对第一图像进行下采样得到第二图像。S320: Down-sampling the first image to obtain a second image.
S330,根据该第二图像确定第一模糊核。S330: Determine a first blur kernel according to the second image.
其中,步骤S310至步骤S330与步骤S110至步骤S130相同,具体可参考S110至S130的描述,此处为了简洁不再赘述。Among them, step S310 to step S330 are the same as step S110 to step S130. For details, please refer to the description of S110 to S130, which will not be repeated here for brevity.
S340,对第一模糊核进行上采样得到第二模糊核。S340: Up-sampling the first blur kernel to obtain a second blur kernel.
经过步骤S330后,得到了第一模糊核。为了进一步减小去模糊的耗时,可以对第一模糊核进行上采样得到第二模糊核。由于第一模糊核相对于去模糊图像很小,因此,对第一模糊核进行上采样的算法复杂度比S150中对第四图像上采样得到第三图像的算法复杂度要低很多,大大简化了上采样的过程,减小了整个去模糊过程的耗时。After step S330, the first blur kernel is obtained. In order to further reduce the time-consuming deblurring, the first blur kernel can be up-sampled to obtain the second blur kernel. Since the first blur kernel is relatively small compared to the deblurred image, the algorithm complexity of upsampling the first blur kernel is much lower than the algorithm complexity of the third image obtained by upsampling the fourth image in S150, which is greatly simplified The up-sampling process reduces the time-consuming process of the entire de-blurring process.
应理解,为了最终得到与第一图像分辨率相同的去模糊图像(即第三图像),步骤S340中应当进行与步骤S320中下采样的倍数相应的上采样。It should be understood that, in order to finally obtain a deblurred image with the same resolution as the first image (that is, the third image), up-sampling corresponding to the multiple of down-sampling in step S320 should be performed in step S340.
其中,“步骤S340中应当进行与步骤S320中下采样的倍数相应的上采样”应理解为:如果步骤S320中对第一图像下采样得到的第二图像为第一图像的1/N大小时,则在S340中,对第一模糊核应该进行N倍插值得到第二模糊核,其中,N可以为任意正整数。Among them, "step S340 should perform up-sampling corresponding to the multiple of down-sampling in step S320" should be understood as: if the second image obtained by down-sampling the first image in step S320 is 1/N of the size of the first image , Then in S340, the first fuzzy kernel should be interpolated by N times to obtain the second fuzzy kernel, where N can be any positive integer.
另外,本申请实施例对上采样的具体插值过程不作任何限定,可以采用现有算法中任意一种插值算法,例如最邻近插值、双线性二次插值、双立方插值等。In addition, the embodiment of the present application does not make any limitation on the specific interpolation process of upsampling, and any interpolation algorithm in existing algorithms can be used, such as nearest neighbor interpolation, bilinear quadratic interpolation, bicubic interpolation, etc.
S350,根据第二模糊核对第一图像进行去模糊得到第三图像。S350: Deblur the first image according to the second blur check to obtain a third image.
经过步骤S340,通过对第一模糊核进行上采样得到第二模糊核后,根据该第二模糊核对第一图像进行去模糊处理,得到第三图像,其中,第三图像为与初始获取的第一图像分辨率相同的去模糊图像。After step S340, after the second blur kernel is obtained by up-sampling the first blur kernel, the first image is deblurred according to the second blur kernel to obtain a third image, where the third image is the same as the first acquired first image. A deblurred image with the same image resolution.
在一些可能的实现方式中,虽然经过一些列后续处理,但估计出的第一模糊核不可避免的仍然存在一定的误差,在对第一模糊核进行上采样得到第二模糊核时,也会引入一部分误差,为了减小第二模糊核估计误差带来的振铃效应,可以采用双边滤波器对去模糊后的第三图像进行处理,并减去双边滤波器的响应值,从而可以有效抑制振铃效应,减小第二模糊核估计误差对复原结果的影响,从而得到较为理想的清晰化图像。In some possible implementations, even after a series of subsequent processing, the estimated first blur kernel inevitably still has a certain error. When the first blur kernel is up-sampled to obtain the second blur kernel, it will also Introduce a part of the error. In order to reduce the ringing effect caused by the estimation error of the second blur kernel, a bilateral filter can be used to process the deblurred third image and subtract the response value of the bilateral filter, which can effectively suppress The ringing effect reduces the influence of the estimation error of the second blur kernel on the restoration result, thereby obtaining a more ideal clear image.
在一些可能的实现方式中,方法300还可以包括S360,对第三图像进行去噪处理得到第六图像。In some possible implementation manners, the method 300 may further include S360, performing denoising processing on the third image to obtain the sixth image.
为了减小由于上采样引入的噪声干扰,使得得到的第三图像更加准确,可以对第三图像进行去噪处理得到与第三图像分辨率相同的第六图像。例如,可以基于卷积神经网络(convolutional neural network,CNN)的去噪模型,或者传统方法中的去噪模型,本申请实施例对此并不作限定。In order to reduce noise interference caused by upsampling and make the obtained third image more accurate, the third image may be denoised to obtain a sixth image with the same resolution as the third image. For example, it may be based on a denoising model of a convolutional neural network (CNN), or a denoising model in a traditional method, which is not limited in the embodiment of the present application.
上述技术方案中,对获取的高分辨率模糊图像进行下采样得到低分辨率模糊图像,根据得到的低分辨率模糊图像估计第一模糊核,并对第一模糊核进行上采样得到第二模糊核,根据得到的第二模糊核对原始获取的高分辨率模糊图像进行去模糊处理得到与初始的模糊图像分辨率相同的去模糊图像,从而实现对高分辨率模糊图像快速的去模糊。由于第一模糊核相对于第四图像较小,所以直接对第二模糊核进行上采样,可以降低上采样过程 的复杂度,从而减小去模糊的耗时。另外通过直接在高分辨率的模糊图像上进行去模糊处理可以减小由于上采样带来的图像失真,从而实现在减小去模糊耗时的同时提高了图像质量。In the above technical solution, the obtained high-resolution blurred image is down-sampled to obtain a low-resolution blurred image, the first blur kernel is estimated based on the obtained low-resolution blurred image, and the first blur kernel is up-sampled to obtain the second blur According to the obtained second blur check, the originally acquired high-resolution blurred image is deblurred to obtain a deblurred image with the same resolution as the original blurred image, thereby achieving rapid deblurring of the high-resolution blurred image. Since the first blur kernel is smaller than the fourth image, directly up-sampling the second blur kernel can reduce the complexity of the up-sampling process, thereby reducing the time-consuming deblurring. In addition, by directly performing deblurring processing on the high-resolution blurred image, the image distortion caused by upsampling can be reduced, so that the image quality can be improved while reducing the time-consuming deblurring.
图5示出了方法300处理结果。如图5所示,图5(a)为获取的高分辨率模糊图像(即第一图像),图5(b)为对高分辨率迷糊图像下采样后的低分辨率模糊图像(即第二图像),其中,第二图像的像素点个数为第一图像的像素点个数的1/2。图5(c)为根据第二图像估计的第一模糊核,图5(d)为对第一模糊核进行上采样后得到的第二模糊核,图5(e)为根据第二模糊核对图5(a)进行去模糊处理后的去模糊图像(即第三图像)。从图5中可以看出,经过去模糊处理后,图5(e)相对于图5(a)中的图像质量得到了提高。FIG. 5 shows the result of the method 300 processing. As shown in Figure 5, Figure 5(a) is the acquired high-resolution blurred image (i.e. the first image), and Figure 5(b) is the low-resolution blurred image (i.e. the first image) after downsampling the high-resolution blurred image. Two images), where the number of pixels in the second image is 1/2 of the number of pixels in the first image. Fig. 5(c) is the first blur kernel estimated from the second image, Fig. 5(d) is the second blur kernel obtained after upsampling the first blur kernel, and Fig. 5(e) is the check according to the second blur Fig. 5(a) The deblurred image after deblurring (ie the third image). It can be seen from Figure 5 that after deblurring, the image quality of Figure 5(e) is improved compared to Figure 5(a).
上文中结合图1至图5,详细描述了根据本申请实施例的图像处理的方法,下面将结合图6至图7详细描述根据本申请实施例的图像处理的装置。The image processing method according to the embodiment of the present application is described in detail above with reference to FIGS. 1 to 5, and the image processing apparatus according to the embodiment of the present application will be described in detail below in conjunction with FIG. 6 to FIG. 7.
图6示出了本申请实施例提供的图像处理的装置500的示意性框图。该图像处理的装置包括获取单元510和处理单元520。FIG. 6 shows a schematic block diagram of an image processing apparatus 500 provided by an embodiment of the present application. The image processing apparatus includes an acquisition unit 510 and a processing unit 520.
获取单元510,用于获取第一图像,其中,该第一图像为高分辨率的模糊图像。The acquiring unit 510 is configured to acquire a first image, where the first image is a high-resolution blurred image.
处理单元520,用于对第一图像进行下采样得到第二图像。The processing unit 520 is configured to down-sample the first image to obtain the second image.
该处理单元520,还用于根据该第二图像确定第一模糊核。The processing unit 520 is further configured to determine the first blur kernel according to the second image.
该处理单元520,还用于根据第一模糊核得到第三图像,其中,第三图像为与第一图像分辨率相同的去模糊图像。The processing unit 520 is further configured to obtain a third image according to the first blur kernel, where the third image is a deblurred image with the same resolution as the first image.
可选地,获取单元510具体用于:获取第二图像的边缘图。Optionally, the acquiring unit 510 is specifically configured to acquire an edge map of the second image.
可选地,处理单元520具体用于:确定该边缘图的至少一个第一区域,其中,该至少一个第一区域中的每一个第一区域为该边缘图的边缘显著区域。Optionally, the processing unit 520 is specifically configured to: determine at least one first region of the edge map, wherein each first region in the at least one first region is a prominent edge region of the edge map.
可选地,处理单元520具体用于:根据该至少一个第一区域确定第一模糊核。Optionally, the processing unit 520 is specifically configured to: determine the first blur kernel according to the at least one first region.
可选地,处理单元520还具体用于:Optionally, the processing unit 520 is further specifically configured to:
根据该第一模糊核对该第二图像进行非盲去模糊得到第四图像;Perform non-blind deblurring on the second image according to the first blur kernel to obtain a fourth image;
对该第四图像进行上采样得到该第三图像。Up-sampling the fourth image to obtain the third image.
可选地,处理单元520还具体用于:Optionally, the processing unit 520 is further specifically configured to:
对该第一模糊核进行上采样得到第二模糊核;Up-sampling the first blur kernel to obtain a second blur kernel;
根据该第二模糊核对该第一图像进行非盲去模糊得到该第三图像。The third image is obtained by unblindly deblurring the first image according to the second blur kernel.
可选地,处理单元520还具体用于:Optionally, the processing unit 520 is further specifically configured to:
对该第二图像进行去噪处理得到第五图像,该第五图像与该第二图像分辨率相同;Performing denoising processing on the second image to obtain a fifth image with the same resolution as the second image;
根据该第五图像确定该第一模糊核。The first blur kernel is determined according to the fifth image.
可选地,处理单元520还具体用于:对该第三图像进行去噪处理得到第六图像,该第六图像与该第三图像分辨率相同。Optionally, the processing unit 520 is further specifically configured to: perform denoising processing on the third image to obtain a sixth image, where the sixth image has the same resolution as the third image.
应理解,本申请实施例提供的图像处理的装置500用于实施上述方法实施例中的任一方法,具体细节可参见上述方法,此处不再赘述。It should be understood that the image processing apparatus 500 provided in the embodiment of the present application is used to implement any method in the foregoing method embodiments. For specific details, refer to the foregoing method, and details are not described herein again.
应注意,本申请实施例中,获取单元510可以由通信接口实现,处理单元520可以由处理器实现。如图7所示,图像处理的装置600可以包括处理器610、存储器620和通信接口630。其中,存储器620可以用于存储处理器610执行的代码等,处理器610可以用于对数据或程序进行处理。It should be noted that in this embodiment of the present application, the acquiring unit 510 may be implemented by a communication interface, and the processing unit 520 may be implemented by a processor. As shown in FIG. 7, the image processing apparatus 600 may include a processor 610, a memory 620, and a communication interface 630. The memory 620 may be used to store codes executed by the processor 610, and the processor 610 may be used to process data or programs.
在实现过程中,上述方法的各步骤可以通过处理器610中的硬件的集成逻辑电路或者软件形式的指令完成。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器620,处理器610读取存储器620中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。In the implementation process, the steps of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 610 or instructions in the form of software. The steps of the method disclosed in the embodiments of the present invention may be directly embodied as being executed and completed by a hardware processor, or executed and completed by a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers. The storage medium is located in the memory 620, and the processor 610 reads the information in the memory 620, and completes the steps of the foregoing method in combination with its hardware. In order to avoid repetition, it will not be described in detail here.
图6所示的装置500或图7所示的装置600能够实现前述方法实施例对应的图像处理的方法的各个过程,具体的,该装置500或装置600可以参见上文中的描述,为避免重复,这里不再赘述。The device 500 shown in FIG. 6 or the device 600 shown in FIG. 7 can implement each process of the image processing method corresponding to the foregoing method embodiment. Specifically, the device 500 or the device 600 can refer to the above description, in order to avoid repetition , I won’t repeat it here.
本申请实施例还提供了一种计算机可读介质,用于存储计算机程序,该计算机程序包括用于执行上述方法实施例中对应的方法的指令。The embodiment of the present application also provides a computer-readable medium for storing a computer program, and the computer program includes instructions for executing the corresponding method in the foregoing method embodiment.
本申请实施例还提供了一种计算机程序产品,所述计算机程序产品包括:计算机程序代码,使得该图像处理的装置执行上述任方法实施例中对应的方法。The embodiments of the present application also provide a computer program product, the computer program product comprising: computer program code, so that the image processing apparatus executes the corresponding method in any of the foregoing method embodiments.
本申请中的各个实施例可以独立的使用,也可以进行联合的使用,这里不做限定。The various embodiments in this application can be used independently or in combination, which is not limited here.
应理解,本申请实施例中出现的第一、第二等描述,仅作示意与区分描述对象之用,没有次序之分,也不表示本申请实施例中对设备个数的特别限定,不能构成对本申请实施例的任何限制。It should be understood that the first, second, etc. descriptions appearing in the embodiments of this application are only for illustration and to distinguish the description objects, and there is no order, nor does it mean that the number of devices in the embodiments of this application is particularly limited. It constitutes any limitation to the embodiments of the present application.
还应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should also be understood that in the various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not be implemented in this application. The implementation process of the example constitutes any limitation.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。A person of ordinary skill in the art may be aware that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, the specific working process of the above-described system, device, and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
上述实施例,可以全部或部分地通过软件、硬件、固件或其他任意组合来实现。当使用软件实现时,上述实施例可以全部或部分地以计算机程序产品的形式实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载或执行该计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。该计算机可以为通用计算机、专用计算机、计算机网络、或者其他可编程装置。该计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,该计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。该计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集合的服务器、数据中心等数据存储设备。该可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质。半导体介质可以是固态硬盘。The foregoing embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, the above-mentioned embodiments may be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. When the computer program instructions are loaded or executed on the computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server, or data center through a (Such as infrared, wireless, microwave, etc.) to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more sets of available media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium may be a solid state drive.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及 算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。A person of ordinary skill in the art may be aware that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed in this document can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, the specific working process of the above-described system, device, and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device, and method may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or It can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, the functional units in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solution of this application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code .
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific implementations of this application, but the protection scope of this application is not limited to this. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application. Should be covered within the scope of protection of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (14)

  1. 一种图像处理的方法,其特征在于,包括:An image processing method, characterized in that it comprises:
    获取第一图像,所述第一图像为高分辨率的模糊图像;Acquiring a first image, the first image being a high-resolution blurred image;
    对所述第一图像进行下采样得到第二图像;Down-sampling the first image to obtain a second image;
    根据所述第二图像确定第一模糊核;Determining a first blur kernel according to the second image;
    根据所述第一模糊核得到第三图像,其中,所述第三图像为与所述第一图像分辨率相同的去模糊图像。A third image is obtained according to the first blur kernel, where the third image is a deblurred image with the same resolution as the first image.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述第二图像确定第一模糊核,包括:The method according to claim 1, wherein the determining a first blur kernel according to the second image comprises:
    获取所述第二图像的边缘图;Acquiring an edge map of the second image;
    确定所述边缘图的至少一个第一区域,其中,所述至少一个第一区域中的每一个第一区域为所述边缘图的边缘显著区域;Determining at least one first region of the edge map, wherein each first region in the at least one first region is a prominent edge region of the edge map;
    根据所述至少一个第一区域确定所述第一模糊核。The first blur kernel is determined according to the at least one first region.
  3. 根据权利要求1或2所述的方法,其特征在于,所述根据所述第一模糊核得到第三图像,包括:The method according to claim 1 or 2, wherein the obtaining a third image according to the first blur kernel comprises:
    根据所述第一模糊核对所述第二图像进行非盲去模糊得到第四图像;Perform non-blind deblurring on the second image according to the first blur check to obtain a fourth image;
    对所述第四图像进行上采样得到所述第三图像。Up-sampling the fourth image to obtain the third image.
  4. 根据权利要求1或2所述的方法,其特征在于,所述根据所述第一模糊核得到第三图像,还包括:The method of claim 1 or 2, wherein the obtaining a third image according to the first blur kernel further comprises:
    对所述第一模糊核进行上采样得到第二模糊核;Up-sampling the first blur kernel to obtain a second blur kernel;
    根据所述第二模糊核对所述第一图像进行非盲去模糊得到所述第三图像。Perform non-blind deblurring of the first image according to the second blur check to obtain the third image.
  5. 根据权利要求1至4中任一项所述的方法,其特征在于,所述根据所述第二图像确定第一模糊核,包括:The method according to any one of claims 1 to 4, wherein the determining a first blur kernel according to the second image comprises:
    对所述第二图像进行去噪处理得到第五图像,所述第五图像与所述第二图像分辨率相同;Performing denoising processing on the second image to obtain a fifth image, where the fifth image has the same resolution as the second image;
    根据所述第五图像确定所述第一模糊核。The first blur kernel is determined according to the fifth image.
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 5, wherein the method further comprises:
    对所述第三图像进行去噪处理得到第六图像,所述第六图像与所述第三图像分辨率相同。Performing denoising processing on the third image to obtain a sixth image, the sixth image having the same resolution as the third image.
  7. 一种图像处理的装置,其特征在于,包括:An image processing device, characterized in that it comprises:
    获取单元,用于获取第一图像,所述第一图像为高分辨率的模糊图像;An acquiring unit, configured to acquire a first image, the first image being a high-resolution blurred image;
    处理单元,用于对所述第一图像进行下采样得到第二图像;A processing unit, configured to down-sample the first image to obtain a second image;
    所述处理单元,还用于根据所述第二图像确定第一模糊核;The processing unit is further configured to determine a first blur kernel according to the second image;
    所述处理单元,还用于根据所述第一模糊核得到第三图像,其中,所述第三图像为与所述第一图像分辨率相同的去模糊图像。The processing unit is further configured to obtain a third image according to the first blur kernel, where the third image is a deblurred image with the same resolution as the first image.
  8. 根据权利要求7所述的装置,其特征在于,所述获取单元具体用于:The device according to claim 7, wherein the acquiring unit is specifically configured to:
    获取所述第二图像的边缘图;Acquiring an edge map of the second image;
    所述处理单元具体用于:确定所述边缘图的至少一个第一区域,其中,所述至少一个第一区域中的每一个第一区域为所述边缘图的边缘显著区域;The processing unit is specifically configured to: determine at least one first region of the edge map, wherein each first region in the at least one first region is a prominent edge region of the edge map;
    所述处理单元还具体用于:根据所述至少一个第一区域确定所述第一模糊核。The processing unit is further specifically configured to determine the first blur kernel according to the at least one first region.
  9. 根据权利要求7或8所述的装置,其特征在于,所述处理单元还具体用于:The device according to claim 7 or 8, wherein the processing unit is further specifically configured to:
    根据所述第一模糊核对所述第二图像进行非盲去模糊得到第四图像;Perform non-blind deblurring on the second image according to the first blur check to obtain a fourth image;
    对所述第四图像进行上采样得到所述第三图像。Up-sampling the fourth image to obtain the third image.
  10. 根据权利要求7或8所述的装置,其特征在于,所述处理单元还具体用于:The device according to claim 7 or 8, wherein the processing unit is further specifically configured to:
    对所述第一模糊核进行上采样得到第二模糊核;Up-sampling the first blur kernel to obtain a second blur kernel;
    根据所述第二模糊核对所述第一图像进行非盲去模糊得到所述第三图像。Perform non-blind deblurring of the first image according to the second blur check to obtain the third image.
  11. 根据权利要求7至10中任一项所述的装置,其特征在于,所述处理单元还具体用于:The device according to any one of claims 7 to 10, wherein the processing unit is further specifically configured to:
    对所述第二图像进行去噪处理得到第五图像,所述第五图像与所述第二图像分辨率相同;Performing denoising processing on the second image to obtain a fifth image, where the fifth image has the same resolution as the second image;
    根据所述第五图像确定所述第一模糊核。The first blur kernel is determined according to the fifth image.
  12. 根据权利要求7至11中任一项所述的装置,其特征在于,所述处理单元还具体用于:The device according to any one of claims 7 to 11, wherein the processing unit is further specifically configured to:
    对所述第三图像进行去噪处理得到第六图像,所述第六图像与所述第三图像分辨率相同。Performing denoising processing on the third image to obtain a sixth image, the sixth image having the same resolution as the third image.
  13. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,当该计算机程序在处理器上运行时,使得所述处理器执行权利要求1至6中任一项所述的方法中的步骤。A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, and when the computer program runs on a processor, the processor executes any one of claims 1 to 6 The steps in the method described in item.
  14. 一种计算机程序产品,其特征在于,所述计算机程序产品包括用于执行权利要求1至6中任一项所述的方法的指令。A computer program product, wherein the computer program product includes instructions for executing the method according to any one of claims 1 to 6.
PCT/CN2020/103150 2019-07-23 2020-07-21 Image processing method and device WO2021013139A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910666379.2A CN110503611A (en) 2019-07-23 2019-07-23 The method and apparatus of image procossing
CN201910666379.2 2019-07-23

Publications (1)

Publication Number Publication Date
WO2021013139A1 true WO2021013139A1 (en) 2021-01-28

Family

ID=68586704

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/103150 WO2021013139A1 (en) 2019-07-23 2020-07-21 Image processing method and device

Country Status (2)

Country Link
CN (1) CN110503611A (en)
WO (1) WO2021013139A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110503611A (en) * 2019-07-23 2019-11-26 华为技术有限公司 The method and apparatus of image procossing
CN113689341A (en) * 2020-05-18 2021-11-23 京东方科技集团股份有限公司 Image processing method and training method of image processing model

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110110601A1 (en) * 2008-09-24 2011-05-12 Li Hong Method and device for image deblurring using joint bilateral filtering
US20140348441A1 (en) * 2012-03-29 2014-11-27 Nikon Corporation Algorithm for minimizing latent sharp image cost function and point spread function with a spatial mask in a fidelity term
CN105809642A (en) * 2016-03-11 2016-07-27 中山大学 Natural image blind motion blur elimination method based on L0 regularization
CN106204445A (en) * 2016-06-30 2016-12-07 北京大学 Image/video super-resolution method based on structure tensor total variation
CN110503611A (en) * 2019-07-23 2019-11-26 华为技术有限公司 The method and apparatus of image procossing

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103514582A (en) * 2012-06-27 2014-01-15 郑州大学 Visual saliency-based image deblurring method
US9692939B2 (en) * 2013-05-29 2017-06-27 Yeda Research And Development Co. Ltd. Device, system, and method of blind deblurring and blind super-resolution utilizing internal patch recurrence
WO2016183716A1 (en) * 2015-05-15 2016-11-24 北京大学深圳研究生院 Method and system for image deblurring
CN105913392A (en) * 2016-04-08 2016-08-31 西安电子科技大学昆山创新研究院 Degraded image overall quality improving method in complex environment
CN107784631B (en) * 2016-08-24 2020-05-05 深圳市豪恩安全科技有限公司 Image deblurring method and device
CN108629741B (en) * 2018-03-26 2020-06-16 中南大学 Fuzzy kernel estimation method based on L0 and L1 regular terms

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110110601A1 (en) * 2008-09-24 2011-05-12 Li Hong Method and device for image deblurring using joint bilateral filtering
US20140348441A1 (en) * 2012-03-29 2014-11-27 Nikon Corporation Algorithm for minimizing latent sharp image cost function and point spread function with a spatial mask in a fidelity term
CN105809642A (en) * 2016-03-11 2016-07-27 中山大学 Natural image blind motion blur elimination method based on L0 regularization
CN106204445A (en) * 2016-06-30 2016-12-07 北京大学 Image/video super-resolution method based on structure tensor total variation
CN110503611A (en) * 2019-07-23 2019-11-26 华为技术有限公司 The method and apparatus of image procossing

Also Published As

Publication number Publication date
CN110503611A (en) 2019-11-26

Similar Documents

Publication Publication Date Title
JP5543605B2 (en) Blur image correction using spatial image prior probability
US8379120B2 (en) Image deblurring using a combined differential image
JP6469678B2 (en) System and method for correcting image artifacts
US9142009B2 (en) Patch-based, locally content-adaptive image and video sharpening
US9692939B2 (en) Device, system, and method of blind deblurring and blind super-resolution utilizing internal patch recurrence
US8203615B2 (en) Image deblurring using panchromatic pixels
CN108694705B (en) Multi-frame image registration and fusion denoising method
US8649628B2 (en) Adaptive PSF estimation technique using a sharp preview and a blurred image
US20110115934A1 (en) Increasing image resolution using combined differential image
JP2015225665A (en) Image noise removal method and image noise removal device
CN112602088B (en) Method, system and computer readable medium for improving quality of low light images
WO2017100971A1 (en) Deblurring method and device for out-of-focus blurred image
US20140133775A1 (en) De-Noising Image Content Using Directional Filters for Image De-Blurring
WO2021013139A1 (en) Image processing method and device
US11615510B2 (en) Kernel-aware super resolution
Zhang et al. Improved image deblurring based on salient-region segmentation
Cao et al. Single image motion deblurring with reduced ringing effects using variational Bayesian estimation
WO2024001538A1 (en) Scratch detection method and apparatus, electronic device, and readable storage medium
Hou et al. Image deconvolution with multi-stage convex relaxation and its perceptual evaluation
CN115082352A (en) Method and device for generating full-focus image
CN115760660A (en) Two-dimensional code imaging and identifying method based on multi-frame fusion, electronic device and medium
US20230069654A1 (en) Method and device for processing image, method for training image processing model, and storage medium
RU2383924C2 (en) Method for adaptive increase of sharpness of digital photographs during printing
CN113674144A (en) Image processing method, terminal equipment and readable storage medium
Hu et al. Noise-robust video super-resolution using an adaptive spatial-temporal filter

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20843760

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20843760

Country of ref document: EP

Kind code of ref document: A1