[go: up one dir, main page]

CN115701131A - A method, device and readable storage medium for removing image artifacts - Google Patents

A method, device and readable storage medium for removing image artifacts Download PDF

Info

Publication number
CN115701131A
CN115701131A CN202110804274.6A CN202110804274A CN115701131A CN 115701131 A CN115701131 A CN 115701131A CN 202110804274 A CN202110804274 A CN 202110804274A CN 115701131 A CN115701131 A CN 115701131A
Authority
CN
China
Prior art keywords
reference frame
frame image
pixel
probability
map
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202110804274.6A
Other languages
Chinese (zh)
Inventor
焦文菲
王朋
曾纪琛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Beijing Xiaomi Pinecone Electronic Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Beijing Xiaomi Pinecone Electronic Co Ltd
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 Beijing Xiaomi Mobile Software Co Ltd, Beijing Xiaomi Pinecone Electronic Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202110804274.6A priority Critical patent/CN115701131A/en
Publication of CN115701131A publication Critical patent/CN115701131A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)

Abstract

本公开提供一种去除图像伪影的方法、装置及可读存储介质,应用于图像处理领域,此方法包括:获取摄像头采集的N个长曝光图像;根据摄像头的噪声方差系数和N个长曝光图像计算每个非参考帧图像中各像素点的位于伪影区域的概率;根据每个非参考帧图像中各像素点的位于伪影区域的概率计算相应非参考帧图像中相应像素点的权重;根据N‑1非参考帧图像中每个像素点的权重合成所述N个长曝光图像的加权图像。本公开中,针对不同的摄像头的性能设置摄像头相应的噪声方差系数,使用相应的噪声方差系数计算每个非参考帧图像中各像素点位于伪影区域的概率,从而有效去除合成后的图像中的伪影区域,提升图片的画质效果。

Figure 202110804274

The disclosure provides a method, device, and readable storage medium for removing image artifacts, which are applied in the field of image processing. The method includes: acquiring N long-exposure images collected by a camera; The image calculates the probability of each pixel in each non-reference frame image being located in the artifact area; calculates the weight of the corresponding pixel in the corresponding non-reference frame image according to the probability of each pixel in each non-reference frame image being located in the artifact area ; Synthesizing weighted images of the N long exposure images according to the weight of each pixel in the N-1 non-reference frame images. In this disclosure, the corresponding noise variance coefficient of the camera is set according to the performance of different cameras, and the corresponding noise variance coefficient is used to calculate the probability that each pixel in each non-reference frame image is located in the artifact area, thereby effectively removing the noise in the synthesized image. Artifact areas to improve image quality.

Figure 202110804274

Description

一种去除图像伪影的方法、装置及可读存储介质A method, device and readable storage medium for removing image artifacts

技术领域technical field

本公开涉及图像处理技术领域,尤其涉及一种去除图像伪影的方法、装置及可读存储介质。The present disclosure relates to the technical field of image processing, and in particular to a method, device and readable storage medium for removing image artifacts.

背景技术Background technique

相机高动态范围影像的合成技术中,将多帧亮度相同的长曝光图像合成为一个图像,以提升画质效果、增加细节和降低噪声。但长曝光的方式更容易产生相机抖动,从而使得被拍摄物在画面中产生位移、模糊等,且无法通过图像配准来修正,这些图像直接参与融合会在合成后的图像中产生伪影。In the high dynamic range image synthesis technology of the camera, multiple frames of long-exposure images with the same brightness are synthesized into one image to improve image quality, increase details and reduce noise. However, the long-exposure method is more prone to camera shake, which causes displacement and blurring of the subject in the picture, and cannot be corrected by image registration. These images directly participating in fusion will produce artifacts in the synthesized image.

通过图像差值检测伪影区域的方法中,首先在所有帧中选取最清晰的帧作为参考帧,利用参考帧对其它帧进行配准,计算其它帧与参考帧的差值,通过设定一个阈值来筛选出伪影区域,差值大于此阈值则认为是伪影区域,此区域不参与后续的图像融合,从而在一定程度上缓解伪影。In the method of detecting artifact regions through image differences, first select the clearest frame among all frames as a reference frame, use the reference frame to register other frames, calculate the difference between other frames and the reference frame, and set a The threshold is used to filter out the artifact area, and the difference greater than this threshold is considered to be an artifact area, and this area does not participate in subsequent image fusion, thereby alleviating the artifact to a certain extent.

所述通过图像差值检测伪影区域的方法对阈值的设置越为敏感,若将阈值设置的较低,则容易将没有信息的平坦区域检测为伪影区域,则这些区域不参与融合,影响多帧降噪的效果;若将阈值设置的较高,则会使得差值较小的伪影区域漏检,从而在最终的成片上产生伪影。The method for detecting artifact regions by image differences is more sensitive to the setting of the threshold. If the threshold is set lower, it is easy to detect flat regions without information as artifact regions, and these regions do not participate in fusion, affecting The effect of multi-frame noise reduction; if the threshold is set higher, the artifact area with a smaller difference will be missed, resulting in artifacts on the final film.

发明内容Contents of the invention

有鉴于此,本公开提供了一种去除图像伪影的方法、装置及可读存储介质。In view of this, the present disclosure provides a method, device and readable storage medium for removing image artifacts.

根据本公开实施例的第一方面,提供一种去除图像伪影的方法,包括:According to a first aspect of an embodiment of the present disclosure, a method for removing image artifacts is provided, including:

获取摄像头采集的N个长曝光图像;所述N个长曝光图像包括一个参考帧图像,以及N-1个非参考帧图像;Obtain N long-exposure images collected by the camera; the N long-exposure images include a reference frame image and N-1 non-reference frame images;

根据所述摄像头的噪声方差系数和所述N个长曝光图像计算每个非参考帧图像中各像素点的位于伪影区域的概率;According to the noise variance coefficient of the camera and the N long-exposure images, the probability of each pixel in each non-reference frame image being located in the artifact area is calculated;

根据每个非参考帧图像中各像素点的位于伪影区域的概率计算相应非参考帧图像中相应像素点的权重;Calculate the weight of the corresponding pixel in the corresponding non-reference frame image according to the probability that each pixel in each non-reference frame image is located in the artifact area;

根据所述N-1非参考帧图像中每个像素点的权重合成所述N个长曝光图像的加权图像。The weighted images of the N long-exposure images are synthesized according to the weight of each pixel in the N-1 non-reference frame images.

在一实施方式中,所述根据所述摄像头的噪声方差系数和所述N个长曝光图像计算每个非参考帧图像中各像素点位于伪影区域的概率,包括:In one embodiment, the calculation of the probability that each pixel in each non-reference frame image is located in the artifact area according to the noise variance coefficient of the camera and the N long-exposure images includes:

根据所述摄像头的噪声方差系数和每个非参考帧图像确定每个非参考帧图像对应的噪声表征图;Determine the noise characterization map corresponding to each non-reference frame image according to the noise variance coefficient of the camera and each non-reference frame image;

根据所述噪声表征图和所述参考帧图像计算每个非参考帧图像中各像素点位于伪影区域的概率。calculating the probability that each pixel in each non-reference frame image is located in the artifact region according to the noise characterization map and the reference frame image.

在一实施方式中,根据所述噪声表征图和所述参考帧图像计算每个非参考帧图像中各像素点位于伪影区域的概率,包括:In one embodiment, calculating the probability that each pixel in each non-reference frame image is located in the artifact area according to the noise characterization map and the reference frame image includes:

确定每个非参考帧图像与所述参考帧图像的差距图;determining a disparity map between each non-reference frame image and the reference frame image;

根据所述噪声表征图和所述差距图,计算每个非参考帧图像中每个像素点位于伪影区域的概率。Calculate the probability that each pixel in each non-reference frame image is located in an artifact area according to the noise representation map and the gap map.

在一实施方式中,所述根据所述摄像头的噪声方差系数和每个非参考帧图像确定每个非参考帧图像对应的噪声表征图,包括:In one embodiment, the determining the noise characterization map corresponding to each non-reference frame image according to the noise variance coefficient of the camera and each non-reference frame image includes:

根据每个非参考帧图像中像素点的灰度值和所述噪声方差系数,确定噪声表征图中相应像素点的值。According to the gray value of the pixel in each non-reference frame image and the noise variance coefficient, the value of the corresponding pixel in the noise representation map is determined.

在一实施方式中,所述噪声方差系数包括第一系数和第二系数;In one embodiment, the noise variance coefficient includes a first coefficient and a second coefficient;

所述根据每个非参考帧图像中像素点的灰度值和所述噪声方差系数,确定噪声表征图中相应像素点的值,包括:The determining the value of the corresponding pixel in the noise characterization map according to the gray value of the pixel in each non-reference frame image and the noise variance coefficient includes:

计算非参考帧图像中像素点的灰度值与所述第一系数的乘积,以及所述乘积与所述第二系数的和;calculating the product of the gray value of the pixel in the non-reference frame image and the first coefficient, and the sum of the product and the second coefficient;

将所述和作为所述噪声表征图中相应像素点的值。The sum is used as the value of the corresponding pixel in the noise representation map.

在一实施方式中,所述根据所述噪声表征图和所述差距图,计算所述非参考帧图像中每个像素点位于伪影区域的概率,包括:In one embodiment, the calculation of the probability that each pixel in the non-reference frame image is located in the artifact region according to the noise representation map and the gap map includes:

将所述噪声表征图和所述差距图中同一像素点对应的值输入概率密度函数,将所述概率密度函数的输出值作为所述非参考帧图像中相应像素点位于伪影区域的概率。Inputting the value corresponding to the same pixel in the noise characterization map and the gap map into a probability density function, and using the output value of the probability density function as the probability that the corresponding pixel in the non-reference frame image is located in the artifact area.

在一实施方式中,所述根据所述噪声表征图和所述差距图,计算所述非参考帧图像中每个像素点位于伪影区域的概率,还包括:In one embodiment, the calculation of the probability that each pixel in the non-reference frame image is located in the artifact area according to the noise representation map and the gap map further includes:

将所述噪声表征图和所述差距图中同一像素点对应的值输入概率密度函数,确定所述概率密度函数的输出值;Inputting the value corresponding to the same pixel in the noise characterization map and the gap map into a probability density function, and determining an output value of the probability density function;

在所述输出值大于或等于预设概率时,将所述输出值与一调节值的差作为所述非参考帧图像中相应像素点位于伪影区域的概率;When the output value is greater than or equal to the preset probability, the difference between the output value and an adjustment value is used as the probability that the corresponding pixel in the non-reference frame image is located in the artifact area;

在所述输出值小于预设概率时,将所述输出值与一调节值的和作为所述非参考帧图像中相应像素点位于伪影区域的概率;When the output value is less than the preset probability, the sum of the output value and an adjustment value is used as the probability that the corresponding pixel in the non-reference frame image is located in the artifact area;

其中,所述调节值与所述摄像头的成像质量呈负相关。Wherein, the adjustment value is negatively correlated with the imaging quality of the camera.

在一实施方式中,每个非参考帧图像中各像素点的位于伪影区域的概率与相应非参考帧图像中相应像素点的权重呈负相关。In one embodiment, the probability of each pixel in each non-reference frame image being located in the artifact area is negatively correlated with the weight of the corresponding pixel in the corresponding non-reference frame image.

根据本公开实施例的第二方面,提供一种去除图像伪影的装置,包括:According to a second aspect of an embodiment of the present disclosure, a device for removing image artifacts is provided, including:

获取模块,用于获取摄像头采集的N个长曝光图像;所述N个长曝光图像包括一个参考帧图像,以及N-1个非参考帧图像;An acquisition module, configured to acquire N long-exposure images collected by the camera; the N long-exposure images include a reference frame image and N-1 non-reference frame images;

第一计算模块,用于根据所述摄像头的噪声方差系数和所述N个长曝光图像计算每个非参考帧图像中各像素点的位于伪影区域的概率;The first calculation module is used to calculate the probability of each pixel in each non-reference frame image being located in the artifact area according to the noise variance coefficient of the camera and the N long-exposure images;

第二计算模块,用于根据每个非参考帧图像中各像素点的位于伪影区域的概率计算相应非参考帧图像中相应像素点的权重;The second calculation module is used to calculate the weight of the corresponding pixel in the corresponding non-reference frame image according to the probability of each pixel in each non-reference frame image being located in the artifact area;

合成模块,用于根据所述N-1非参考帧图像中每个像素点的权重合成所述N个长曝光图像的加权图像。A synthesis module, configured to synthesize weighted images of the N long-exposure images according to the weight of each pixel in the N-1 non-reference frame images.

在一实施方式中,所述第一计算模块包括:In one embodiment, the first calculation module includes:

第一确定模块,用于根据所述摄像头的噪声方差系数和每个非参考帧图像确定每个非参考帧图像对应的噪声表征图;The first determination module is used to determine the noise characterization map corresponding to each non-reference frame image according to the noise variance coefficient of the camera and each non-reference frame image;

第三计算模块,根据所述噪声表征图和所述参考帧图像计算每个非参考帧图像中各像素点位于伪影区域的概率。The third calculating module calculates the probability that each pixel in each non-reference frame image is located in the artifact area according to the noise characterization map and the reference frame image.

在一实施方式中,所述第三计算模块还包括:In one embodiment, the third computing module further includes:

第二确定模块,用于确定每个非参考帧图像与所述参考帧图像的差距图;The second determination module is used to determine the difference map between each non-reference frame image and the reference frame image;

所述第四计算模块,还用于根据所述噪声表征图和所述差距图,计算每个非参考帧图像中每个像素点位于伪影区域的概率。The fourth calculation module is further configured to calculate the probability that each pixel in each non-reference frame image is located in the artifact area according to the noise representation map and the gap map.

在一实施方式中,所述第一确定模块,还用于使用以下方法根据所述摄像头的噪声方差系数和每个非参考帧图像确定每个非参考帧图像对应的噪声表征图:In one embodiment, the first determining module is further configured to use the following method to determine a noise characterization map corresponding to each non-reference frame image according to the noise variance coefficient of the camera and each non-reference frame image:

根据每个非参考帧图像中像素点的灰度值和所述噪声方差系数,确定噪声表征图中相应像素点的值。According to the gray value of the pixel in each non-reference frame image and the noise variance coefficient, the value of the corresponding pixel in the noise representation map is determined.

在一实施方式中,所述噪声方差系数包括第一系数和第二系数;In one embodiment, the noise variance coefficient includes a first coefficient and a second coefficient;

所述根据每个非参考帧图像中像素点的灰度值和所述噪声方差系数,确定噪声表征图中相应像素点的值,包括:The determining the value of the corresponding pixel in the noise characterization map according to the gray value of the pixel in each non-reference frame image and the noise variance coefficient includes:

计算非参考帧图像中像素点的灰度值与所述第一系数的乘积,以及所述乘积与所述第二系数的和;calculating the product of the gray value of the pixel in the non-reference frame image and the first coefficient, and the sum of the product and the second coefficient;

将所述和作为所述噪声表征图中相应像素点的值。The sum is used as the value of the corresponding pixel in the noise representation map.

在一实施方式中,所述第四计算模块包括:In one embodiment, the fourth calculation module includes:

第一函数调用模块,用于将所述噪声表征图和所述差距图中同一像素点对应的值输入概率密度函数,将所述概率密度函数的输出值作为所述非参考帧图像中相应像素点位于伪影区域的概率。The first function calling module is used to input the value corresponding to the same pixel in the noise representation map and the gap map into the probability density function, and use the output value of the probability density function as the corresponding pixel in the non-reference frame image The probability that a point is located in the artifact region.

在一实施方式中,所述第四计算模块包括:In one embodiment, the fourth calculation module includes:

第二函数调用模块,用于将所述噪声表征图和所述差距图中同一像素点对应的值输入概率密度函数,确定所述概率密度函数的输出值;The second function calling module is used to input the value corresponding to the same pixel in the noise representation map and the gap map into the probability density function, and determine the output value of the probability density function;

调整模块,用于在所述输出值大于或等于预设概率时,将所述输出值与一调节值的差作为所述非参考帧图像中相应像素点位于伪影区域的概率;An adjustment module, configured to use the difference between the output value and an adjustment value as the probability that the corresponding pixel in the non-reference frame image is located in the artifact area when the output value is greater than or equal to a preset probability;

在所述输出值小于预设概率时,将所述输出值与一调节值的和作为所述非参考帧图像中相应像素点位于伪影区域的概率;When the output value is less than the preset probability, the sum of the output value and an adjustment value is used as the probability that the corresponding pixel in the non-reference frame image is located in the artifact area;

其中,所述调节值与所述摄像头的成像质量呈负相关。Wherein, the adjustment value is negatively correlated with the imaging quality of the camera.

在一实施方式中,每个非参考帧图像中各像素点的位于伪影区域的概率与相应非参考帧图像中相应像素点的权重呈负相关。In one embodiment, the probability of each pixel in each non-reference frame image being located in the artifact area is negatively correlated with the weight of the corresponding pixel in the corresponding non-reference frame image.

本公开提供了一种去除图像伪影的装置,包括:The present disclosure provides a device for removing image artifacts, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为执行所述存储器中的可执行指令以实现所述方法的步骤。Wherein, the processor is configured to execute executable instructions in the memory to implement the steps of the method.

本公开提供了一种非临时性计算机可读存储介质,其上存储有可执行指令,该可执行指令被处理器执行时实现任一项所述方法的步骤。The present disclosure provides a non-transitory computer-readable storage medium on which executable instructions are stored, and the executable instructions implement the steps of any one of the methods when executed by a processor.

本公开的实施例提供的技术方案可以包括以下有益效果:针对不同的摄像头的性能设置摄像头相应的噪声方差系数,使用相应的噪声方差系数计算每个非参考帧图像中各像素点位于伪影区域的概率,从而确定每个非参考帧图像中各像素点的权重,使用权重对同一像素点的灰度值进行加权,获得更准确的伪影区域,从而有效去除合成后的图像中的伪影区域,提升图片的画质效果。The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: set the corresponding noise variance coefficient of the camera according to the performance of different cameras, and use the corresponding noise variance coefficient to calculate that each pixel in each non-reference frame image is located in the artifact area Probability, so as to determine the weight of each pixel in each non-reference frame image, and use the weight to weight the gray value of the same pixel to obtain a more accurate artifact area, thereby effectively removing the artifacts in the synthesized image area to improve image quality.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1是根据一示例实施例提供的去除图像伪影的方法的流程图;FIG. 1 is a flowchart of a method for removing image artifacts according to an example embodiment;

图2是根据一示例实施例提供的另一种去除图像伪影的方法的流程图;Fig. 2 is a flow chart of another method for removing image artifacts according to an example embodiment;

图3是根据一示例实施例提供的另一种去除图像伪影的方法的流程图;Fig. 3 is a flowchart of another method for removing image artifacts according to an example embodiment;

图4是根据一示例实施例提供的去除图像伪影的效果图;Fig. 4 is an effect diagram of removing image artifacts provided according to an example embodiment;

图5是根据一示例实施例提供的去除图像伪影的装置的结构图;Fig. 5 is a structural diagram of an apparatus for removing image artifacts according to an example embodiment;

图6是根据一示例实施例提供的去除图像伪影的装置的结构图。Fig. 6 is a structural diagram of an apparatus for removing image artifacts according to an example embodiment.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开中实施例相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开中实施例的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the examples in this disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the embodiments of the present disclosure as recited in the appended claims.

在本公开实施例使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本公开实施例。在本公开实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。Terms used in the embodiments of the present disclosure are for the purpose of describing specific embodiments only, and are not intended to limit the embodiments of the present disclosure. As used in the examples of this disclosure and the appended claims, the singular forms "a", "said" and "the" are also intended to include the plural forms unless the context clearly dictates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

考虑到不同相机摄像头(sensor)的成像质量不同,成像质量较差的相机摄像头采集的图像的信噪比较低,图像中噪声较大,在进行参考帧与非参考帧的差值计算时,此两帧图像会因为噪声影响在非伪影区域产生较大差值,从而将非伪影区域误判断为伪影区域。Considering that the imaging quality of different cameras (sensors) is different, the signal-to-noise ratio of images collected by cameras with poor imaging quality is low, and the noise in the image is large. When calculating the difference between the reference frame and the non-reference frame, These two frames of images will have a large difference in the non-artifact area due to the influence of noise, so that the non-artifact area is misjudged as the artifact area.

本公开实施例中提供一种去除图像伪影的方法,应用于移动终端。此移动终端具有摄像头,此移动终端可以是手机、平板电脑、智能设备等。An embodiment of the present disclosure provides a method for removing image artifacts, which is applied to a mobile terminal. The mobile terminal has a camera, and the mobile terminal may be a mobile phone, a tablet computer, a smart device, and the like.

参照图1,图1是根据一示例性实施例示出的一种去除图像伪影的方法的流程图。如图1所示,此方法包括:Referring to FIG. 1 , FIG. 1 is a flow chart showing a method for removing image artifacts according to an exemplary embodiment. As shown in Figure 1, this method includes:

步骤S11,获取摄像头采集的N个长曝光图像;所述N个长曝光图像包括一个参考帧图像以及N-1个非参考帧图像;Step S11, acquiring N long-exposure images collected by the camera; the N long-exposure images include a reference frame image and N-1 non-reference frame images;

步骤S12,根据所述摄像头的噪声方差系数和所述N个长曝光图像计算每个非参考帧图像中各像素点的位于伪影区域的概率;Step S12, calculating the probability of each pixel in each non-reference frame image being located in the artifact area according to the noise variance coefficient of the camera and the N long-exposure images;

步骤S13,根据每个非参考帧图像中各像素点的位于伪影区域的概率计算相应非参考帧图像中相应像素点的权重;Step S13, calculating the weight of the corresponding pixel in the corresponding non-reference frame image according to the probability of each pixel in each non-reference frame image being located in the artifact area;

步骤S14,根据所述N-1非参考帧图像中每个像素点的权重合成所述N个长曝光图像的加权图像。Step S14, compositing weighted images of the N long-exposure images according to the weight of each pixel in the N-1 non-reference frame images.

在一实施方式中,在步骤S11之前还包括步骤S10即确定摄像头的噪声方差系数,具体包括:通过噪声标定方法确定摄像头的噪声方差系数,使噪声方差系数体现摄像头的成像质量。In one embodiment, before step S11, step S10 is also included to determine the noise variance coefficient of the camera, which specifically includes: determining the noise variance coefficient of the camera through a noise calibration method, so that the noise variance coefficient reflects the imaging quality of the camera.

在一实施方式中,步骤S11中的N个长曝光图像是相同亮度的N个长曝光图像。此相同亮度的N个长曝光图像的是经过图像配准的图像。In one embodiment, the N long-exposure images in step S11 are N long-exposure images with the same brightness. The N long-exposure images with the same brightness are images that have undergone image registration.

本公开实施例,针对不同的摄像头的性能设置摄像头相应的噪声方差系数,使用相应的噪声方差系数计算每个非参考帧图像中各像素点位于伪影区域的概率,从而确定每个非参考帧图像中各像素点的权重,使用权重对同一像素点的灰度值进行加权,获知更准确的伪影区域,从而有效去除合成后的图像中的伪影区域,提升图片的画质效果。In the embodiment of the present disclosure, the corresponding noise variance coefficient of the camera is set according to the performance of different cameras, and the probability of each pixel in each non-reference frame image being located in the artifact area is calculated using the corresponding noise variance coefficient, thereby determining each non-reference frame The weight of each pixel in the image is used to weight the gray value of the same pixel to obtain more accurate artifact areas, thereby effectively removing the artifact areas in the synthesized image and improving the quality of the image.

本公开实施例中提供一种去除图像伪影的方法,应用于移动终端。参照图2,图2是根据一示例性实施例示出的一种去除图像伪影的方法的流程图。如图2所示,此方法包括:An embodiment of the present disclosure provides a method for removing image artifacts, which is applied to a mobile terminal. Referring to FIG. 2 , FIG. 2 is a flowchart of a method for removing image artifacts according to an exemplary embodiment. As shown in Figure 2, this method includes:

步骤S11,获取摄像头采集的N个长曝光图像;所述N个长曝光图像包括一个参考帧图像,以及N-1个非参考帧图像;Step S11, acquiring N long-exposure images collected by the camera; the N long-exposure images include a reference frame image and N-1 non-reference frame images;

步骤S12-1,根据所述摄像头的噪声方差系数和每个非参考帧图像确定每个非参考帧图像对应的噪声表征图;Step S12-1, determining a noise characterization map corresponding to each non-reference frame image according to the noise variance coefficient of the camera and each non-reference frame image;

步骤S12-2,根据所述噪声表征图和所述参考帧图像计算每个非参考帧图像中各像素点位于伪影区域的概率。Step S12-2, calculating the probability that each pixel in each non-reference frame image is located in the artifact area according to the noise representation map and the reference frame image.

步骤S13,根据每个非参考帧图像中各像素点的位于伪影区域的概率计算相应非参考帧图像中相应像素点的权重;Step S13, calculating the weight of the corresponding pixel in the corresponding non-reference frame image according to the probability of each pixel in each non-reference frame image being located in the artifact area;

步骤S14,根据所述N-1非参考帧图像中每个像素点的权重合成所述N个长曝光图像的加权图像。Step S14, compositing weighted images of the N long-exposure images according to the weight of each pixel in the N-1 non-reference frame images.

本公开实施例中,使用所述摄像头的噪声方差系数确定每个非参考帧图像对应的噪声表征图,用于表示非参考帧图像中的噪声分布情况,从而通过噪声表征图计算每个非参考帧图像中各像素点位于伪影区域的概率。In the embodiment of the present disclosure, the noise variance coefficient of the camera is used to determine the noise representation map corresponding to each non-reference frame image, which is used to represent the noise distribution in the non-reference frame image, so that each non-reference frame image is calculated through the noise representation map. The probability that each pixel in the frame image is located in the artifact area.

在一实施方式中,步骤S12-1,根据所述摄像头的噪声方差系数和每个非参考帧图像确定每个非参考帧图像对应的噪声表征图,包括:根据每个非参考帧图像中像素点的灰度值和所述噪声方差系数,确定噪声表征图中相应像素点的值。In one embodiment, step S12-1, determining the noise characterization map corresponding to each non-reference frame image according to the noise variance coefficient of the camera and each non-reference frame image, includes: according to the pixels in each non-reference frame image The gray value of the point and the noise variance coefficient are used to determine the value of the corresponding pixel in the noise representation map.

例如:所述噪声方差系数包括第一系数a和第二系数b。For example: the noise variance coefficient includes a first coefficient a and a second coefficient b.

根据每个非参考帧图像中像素点的灰度值和所述噪声方差系数,确定噪声表征图中相应像素点的值,包括:计算非参考帧图像中像素点的灰度值与所述第一系数的乘积,以及所述乘积与所述第二系数的和;将所述和作为所述噪声表征图中相应像素点的值。According to the gray value of the pixel point in each non-reference frame image and the noise variance coefficient, determine the value of the corresponding pixel point in the noise representation map, including: calculating the gray value of the pixel point in the non-reference frame image and the first A coefficient product, and a sum of the product and the second coefficient; using the sum as the value of a corresponding pixel in the noise representation map.

例如:第i个非参考帧图像中(x,y)位置的像素点对应的灰度值为Yi(x,y),第i个非参考帧图像对应的噪声表征图为Ni(x,y),根据公式(1)计算噪声表征图Ni(x,y)相应像素点的值:For example: the grayscale value corresponding to the pixel at (x, y) position in the i-th non-reference frame image is Y i (x, y), and the noise representation map corresponding to the i-th non-reference frame image is N i (x ,y), calculate the value of the corresponding pixel in the noise representation map N i (x,y) according to the formula (1):

Ni(x,y)=a·Yi(x,y)+b (1)N i (x, y) = a · Y i (x, y) + b (1)

本实施方式中,通过像素点中的灰度值的线性变换结果表示噪声方差值,使用噪声方差值构成噪声表征图,从而有效体现噪声的分布情况。In this embodiment, the noise variance value is represented by the linear transformation result of the gray value in the pixel, and the noise variance value is used to form a noise representation map, so as to effectively reflect the distribution of noise.

本公开实施例中提供一种去除图像伪影的方法,应用于移动终端。参照图3,图3是根据一示例性实施例示出的一种去除图像伪影的方法的流程图。如图3所示,此方法包括:An embodiment of the present disclosure provides a method for removing image artifacts, which is applied to a mobile terminal. Referring to FIG. 3 , FIG. 3 is a flow chart showing a method for removing image artifacts according to an exemplary embodiment. As shown in Figure 3, this method includes:

步骤S11,获取摄像头采集的N个长曝光图像;所述N个长曝光图像包括一个参考帧图像以及N-1个非参考帧图像;Step S11, acquiring N long-exposure images collected by the camera; the N long-exposure images include a reference frame image and N-1 non-reference frame images;

步骤S12-1’,根据所述摄像头的噪声方差系数确定每个非参考帧图像对应的噪声表征图;确定每个非参考帧图像与所述参考帧图像的差距图;Step S12-1', determine the noise representation map corresponding to each non-reference frame image according to the noise variance coefficient of the camera; determine the difference map between each non-reference frame image and the reference frame image;

步骤S12-2’,根据所述噪声表征图和所述差距图计算每个非参考帧图像中各像素点位于伪影区域的概率。Step S12-2', calculating the probability that each pixel in each non-reference frame image is located in the artifact area according to the noise representation map and the gap map.

步骤S13,根据每个非参考帧图像中各像素点的位于伪影区域的概率计算相应非参考帧图像中相应像素点的权重;Step S13, calculating the weight of the corresponding pixel in the corresponding non-reference frame image according to the probability of each pixel in each non-reference frame image being located in the artifact area;

步骤S14,根据所述N-1非参考帧图像中每个像素点的权重合成所述N个长曝光图像的加权图像。Step S14, compositing weighted images of the N long-exposure images according to the weight of each pixel in the N-1 non-reference frame images.

其中,步骤S12-1’中根据所述摄像头的噪声方差系数确定每个非参考帧图像对应的噪声表征图的方法与步骤S12-1中的方法相同,此处不再赘述。Wherein, in step S12-1', the method for determining the noise representation map corresponding to each non-reference frame image according to the noise variance coefficient of the camera is the same as the method in step S12-1, and will not be repeated here.

在一实施方式中,步骤S12-1’中确定每个非参考帧图像与所述参考帧图像的差距图,包括:计算每个非参考帧图像与所述参考帧图像中相同像素点的灰度值的差值,例如:计算每个非参考帧图像与所述参考帧图像中相同像素点的灰度值的差值绝对值。In one embodiment, determining the difference map between each non-reference frame image and the reference frame image in step S12-1' includes: calculating the gray value of the same pixel in each non-reference frame image and the reference frame image For example, calculating the absolute value of the difference between each non-reference frame image and the gray value of the same pixel in the reference frame image.

例如:第i个非参考帧图像中(x,y)位置的像素点对应的灰度值为Yi(x,y),参考帧图像中(x,y)位置的像素点对应的灰度值为Yref(x,y),For example: the gray value corresponding to the pixel at (x, y) position in the i-th non-reference frame image is Y i (x, y), and the gray value corresponding to the pixel at (x, y) position in the reference frame image The value is Y ref (x,y),

根据公式(2)计算第i个非参考帧图像与参考帧图像的差距图Di(x,y)。Calculate the difference map D i (x, y) between the i-th non-reference frame image and the reference frame image according to formula (2).

Di(x,y)=|Yref(x,y)-Yi(x,y)| (2)D i (x,y)=|Y ref (x,y)-Y i (x,y)| (2)

在一实施方式中,步骤S12-2’中根据所述噪声表征图和所述差距图,计算所述非参考帧图像中每个像素点位于伪影区域的概率,包括:In one embodiment, in step S12-2', according to the noise representation map and the gap map, the probability that each pixel in the non-reference frame image is located in the artifact area is calculated, including:

将所述噪声表征图和所述差距图中同一像素点对应的值输入概率密度函数,将所述概率密度函数的输出值作为所述非参考帧图像中相应像素点位于伪影区域的概率。Inputting the value corresponding to the same pixel in the noise characterization map and the gap map into a probability density function, and using the output value of the probability density function as the probability that the corresponding pixel in the non-reference frame image is located in the artifact area.

例如:根据公式(3)计算第i个非参考帧图像中(x,y)位置的像素点对应的位于伪影区域的概率Pi(x,y):For example: Calculate the probability P i (x, y) corresponding to the pixel at the (x, y) position in the i-th non-reference frame image located in the artifact area according to formula (3):

Pi(x,y)=R(Ni(x,y),Di(x,y)) (3)P i (x, y) = R (N i (x, y), D i (x, y)) (3)

其中,R为概率密度函数。Among them, R is the probability density function.

在一实施方式中,步骤S12-2’中根据所述噪声表征图和所述差距图,计算所述非参考帧图像中每个像素点位于伪影区域的概率,包括:In one embodiment, in step S12-2', according to the noise representation map and the gap map, the probability that each pixel in the non-reference frame image is located in the artifact area is calculated, including:

将所述噪声表征图和所述差距图中同一像素点对应的值输入概率密度函数,确定所述概率密度函数的输出值。Inputting values corresponding to the same pixel in the noise characterization map and the gap map to a probability density function to determine an output value of the probability density function.

在所述输出值大于或等于预设概率时,将所述输出值与一调节值的差作为所述非参考帧图像中相应像素点位于伪影区域的概率;When the output value is greater than or equal to the preset probability, the difference between the output value and an adjustment value is used as the probability that the corresponding pixel in the non-reference frame image is located in the artifact area;

在所述输出值小于预设概率时,将所述输出值与一调节值的和作为所述非参考帧图像中相应像素点位于伪影区域的概率;When the output value is less than the preset probability, the sum of the output value and an adjustment value is used as the probability that the corresponding pixel in the non-reference frame image is located in the artifact area;

其中,所述调节值与所述摄像头的成像质量呈负相关。Wherein, the adjustment value is negatively correlated with the imaging quality of the camera.

例如:For example:

在所述输出值大于或等于预设概率时,如公式(4)所示,将所述输出值与一调节值的差作为所述非参考帧图像中相应像素点位于伪影区域的概率:When the output value is greater than or equal to the preset probability, as shown in formula (4), the difference between the output value and an adjustment value is used as the probability that the corresponding pixel in the non-reference frame image is located in the artifact area:

Pi(x,y)’=Pi(x,y)-k (4)P i (x,y)'=P i (x,y)-k (4)

在所述输出值小于预设概率时,如公式(5)所示,将所述输出值与一调节值的和作为所述非参考帧图像中相应像素点位于伪影区域的概率:When the output value is less than the preset probability, as shown in formula (5), the sum of the output value and an adjustment value is used as the probability that the corresponding pixel in the non-reference frame image is located in the artifact area:

Pi(x,y)’=Pi(x,y)+k (5)P i (x,y)'=P i (x,y)+k (5)

其中,k为调节值,例如k是位于0和0.5之间的值。Wherein, k is an adjustment value, for example, k is a value between 0 and 0.5.

调节值k的值与摄像头的成像质量呈负相关,即摄像头的成像质量较好时,k的值较小,摄像头的成像质量较差时,k的值较大。例如:一摄像头的成像质量较好,对此摄像头采集的N个长曝光图像执行去除图像伪影的处理时,设置k的值为0.1。一摄像头的成像质量较差,对此摄像头采集的N个长曝光图像执行去除图像伪影的处理时,设置k的值为0.4。其中,摄像头的成像质量可以由一种成像质量指数来表示。The value of the adjustment value k is negatively correlated with the imaging quality of the camera, that is, when the imaging quality of the camera is good, the value of k is small, and when the imaging quality of the camera is poor, the value of k is large. For example: a camera has a better image quality, and when removing image artifacts from N long-exposure images collected by the camera, the value of k is set to 0.1. The imaging quality of a camera is poor, and the value of k is set to 0.4 when performing image artifact removal processing on N long-exposure images collected by the camera. Wherein, the imaging quality of the camera may be represented by an imaging quality index.

本实施方式中,使用公式(4)和公式(5)对使用概率密度函数计算到的概率进行调整,以针对不同摄像头进行相应矫正,从而适用于不同成像质量的各种摄像头。In this embodiment, formula (4) and formula (5) are used to adjust the probability calculated by using the probability density function, so as to make corresponding corrections for different cameras, so as to be applicable to various cameras with different imaging qualities.

本公开实施例中提供一种去除图像伪影的方法,应用于移动终端。此方法包括图1,图2或图3所示的方法,并且:An embodiment of the present disclosure provides a method for removing image artifacts, which is applied to a mobile terminal. This method includes the method shown in Figure 1, Figure 2 or Figure 3, and:

每个非参考帧图像中各像素点的位于伪影区域的概率与相应非参考帧图像中相应像素点的权重呈负相关。The probability that each pixel in each non-reference frame image is located in the artifact area is negatively correlated with the weight of the corresponding pixel in the corresponding non-reference frame image.

例如:第i个非参考帧图像中(x,y)位置的像素点对应的位于伪影区域的概率Pi(x,y),第i个非参考帧图像中(x,y)位置的像素点对应的权重Wi(x,y)=1-Pi(x,y)。For example: the probability P i (x, y) corresponding to the pixel at the (x, y) position in the i-th non-reference frame image is located in the artifact area, and the probability P i (x, y) at the (x, y) position in the i-th non-reference frame image The weight W i (x, y) corresponding to the pixel points = 1-P i (x, y).

本公开实施例中,使用与非参考帧图像中像素点的位于伪影区域的概率呈负相关的值作为此非参考帧图像中此像素点的权重,使此像素点位于伪影区域的概率越大时,权重越小,此像素点位于伪影区域的概率越小时,权重越大。从而在后续使用N个长曝光图像合成为一个图像时,加大位于伪影区域的概率较小的像素权的成分值,减少位于非伪影区域的概率较小的像素权的成分值,从而有效去除合成后的图像中的伪影区域。In the embodiment of the present disclosure, a value negatively correlated with the probability of a pixel in a non-reference frame image being located in an artifact area is used as the weight of the pixel in the non-reference frame image, so that the probability of this pixel being located in an artifact area The larger the value, the smaller the weight, and the smaller the probability that the pixel is located in the artifact area, the larger the weight. Therefore, when N long-exposure images are subsequently used to synthesize an image, the component values of the pixel weights with a lower probability of being located in the artifact area are increased, and the component values of the pixel weights of the less likely area of the non-artifact area are reduced, thereby Efficiently removes artifact regions in composited images.

本公开实施例中提供一种去除图像伪影的方法,应用于移动终端。此方法包括图1,图2或图3所示的方法,并且:An embodiment of the present disclosure provides a method for removing image artifacts, which is applied to a mobile terminal. This method includes the method shown in Figure 1, Figure 2 or Figure 3, and:

步骤S14中根据所述N-1非参考帧图像中每个像素点的权重合成所述N个长曝光图像的加权图像,包括:In step S14, the weighted images of the N long-exposure images are synthesized according to the weight of each pixel in the N-1 non-reference frame images, including:

设置参考帧图像中每个像素点的权重为1。Set the weight of each pixel in the reference frame image to 1.

例如:第i个非参考帧图像中(x,y)位置的像素点对应的权重Wi(x,y)=1-Pi(x,y),i的取值为1至N-1。参考图像帧中(x,y)位置的像素点对应的权重WN(x,y)。根据公式(6)计算N个长曝光图像的加权图像Yf(x,y):For example: the weight W i (x, y)=1-P i (x, y) corresponding to the pixel at (x, y) position in the i-th non-reference frame image, and the value of i is 1 to N-1 . The weight W N (x, y) corresponding to the pixel at the position (x, y) in the reference image frame. Calculate the weighted image Y f (x, y) of N long-exposure images according to formula (6):

Figure BDA0003165792080000111
Figure BDA0003165792080000111

在一示例中,如图4所示的处理结果示意图中,下图是使用本公开实施例的处理方法得到的合成图,相比于上图中使用现有技术的处理方法得到的合成图,在人物腿部的清晰度明显提升。In one example, in the schematic diagram of the processing results shown in FIG. 4 , the lower figure is a synthetic figure obtained by using the processing method of the embodiment of the present disclosure. Compared with the synthetic figure obtained by using the processing method of the prior art in the above figure, The clarity of the character's legs has been significantly improved.

本公开实施例中提供一种去除图像伪影的装置,应用于移动终端。参照图5,图5是根据一示例性实施例示出的一种去除图像伪影的装置的结构图。如图5所示,此装置包括:An embodiment of the present disclosure provides a device for removing image artifacts, which is applied to a mobile terminal. Referring to FIG. 5 , FIG. 5 is a structural diagram of an apparatus for removing image artifacts according to an exemplary embodiment. As shown in Figure 5, this device includes:

获取模块51,用于获取摄像头采集的N个长曝光图像;所述N个长曝光图像包括一个参考帧图像以及N-1个非参考帧图像;An acquisition module 51, configured to acquire N long-exposure images collected by the camera; the N long-exposure images include a reference frame image and N-1 non-reference frame images;

第一计算模块52,用于根据所述摄像头的噪声方差系数和所述N个长曝光图像计算每个非参考帧图像中各像素点的位于伪影区域的概率;The first calculation module 52 is used to calculate the probability of each pixel in each non-reference frame image being located in the artifact area according to the noise variance coefficient of the camera and the N long-exposure images;

第二计算模块53,用于根据每个非参考帧图像中各像素点的位于伪影区域的概率计算相应非参考帧图像中相应像素点的权重;The second calculation module 53 is used to calculate the weight of the corresponding pixel in the corresponding non-reference frame image according to the probability of each pixel in each non-reference frame image being located in the artifact area;

合成模块54,用于根据所述N-1非参考帧图像中每个像素点的权重合成所述N个长曝光图像的加权图像。The synthesis module 54 is configured to synthesize the weighted images of the N long-exposure images according to the weight of each pixel in the N-1 non-reference frame images.

本公开实施例中提供一种去除图像伪影的装置,应用于移动终端,包括图5所示的装置,并且:An embodiment of the present disclosure provides a device for removing image artifacts, which is applied to a mobile terminal, including the device shown in FIG. 5 , and:

所述第一计算模块52包括:The first computing module 52 includes:

第一确定模块,用于根据所述摄像头的噪声方差系数和每个非参考帧图像确定每个非参考帧图像对应的噪声表征图;The first determination module is used to determine the noise characterization map corresponding to each non-reference frame image according to the noise variance coefficient of the camera and each non-reference frame image;

第三计算模块,根据所述噪声表征图和所述参考帧图像计算每个非参考帧图像中各像素点位于伪影区域的概率。The third calculating module calculates the probability that each pixel in each non-reference frame image is located in the artifact area according to the noise characterization map and the reference frame image.

本公开实施例中提供一种去除图像伪影的装置,应用于移动终端,包括图5所示的装置,并且:An embodiment of the present disclosure provides a device for removing image artifacts, which is applied to a mobile terminal, including the device shown in FIG. 5 , and:

所述第三计算模块还包括:The third calculation module also includes:

第二确定模块,用于确定每个非参考帧图像与所述参考帧图像的差距图;The second determination module is used to determine the difference map between each non-reference frame image and the reference frame image;

所述第四计算模块,还用于根据所述噪声表征图和所述差距图,计算每个非参考帧图像中每个像素点位于伪影区域的概率。The fourth calculation module is further configured to calculate the probability that each pixel in each non-reference frame image is located in the artifact area according to the noise representation map and the gap map.

在一实施方式中,所述第一确定模块,还用于使用以下方法根据所述摄像头的噪声方差系数和每个非参考帧图像确定每个非参考帧图像对应的噪声表征图:In one embodiment, the first determining module is further configured to use the following method to determine a noise characterization map corresponding to each non-reference frame image according to the noise variance coefficient of the camera and each non-reference frame image:

根据每个非参考帧图像中像素点的灰度值和所述噪声方差系数,确定噪声表征图相应像素点的值。According to the gray value of the pixel in each non-reference frame image and the noise variance coefficient, determine the value of the corresponding pixel in the noise characterization map.

在一实施方式中,所述噪声方差系数包括第一系数和第二系数;In one embodiment, the noise variance coefficient includes a first coefficient and a second coefficient;

所述根据每个非参考帧图像中像素点的灰度值和所述噪声方差系数,确定噪声表征图相应像素点的值,包括:The determining the value of the corresponding pixel in the noise characterization map according to the gray value of the pixel in each non-reference frame image and the noise variance coefficient includes:

计算非参考帧图像中像素点的灰度值与所述第一系数的乘积,以及所述乘积与所述第二系数的和;calculating the product of the gray value of the pixel in the non-reference frame image and the first coefficient, and the sum of the product and the second coefficient;

将所述和作为所述噪声表征图中相应像素点的值。The sum is used as the value of the corresponding pixel in the noise representation map.

在一实施方式中,In one embodiment,

所述第四计算模块包括:The fourth computing module includes:

第一函数调用模块,用于将所述噪声表征图和所述差距图中同一像素点对应的值输入概率密度函数,将所述概率密度函数的输出值作为所述非参考帧图像中相应像素点位于伪影区域的概率。The first function calling module is used to input the value corresponding to the same pixel in the noise representation map and the gap map into the probability density function, and use the output value of the probability density function as the corresponding pixel in the non-reference frame image The probability that a point is located in the artifact region.

本公开实施例中提供一种去除图像伪影的装置,应用于移动终端,包括图5所示的装置,并且:An embodiment of the present disclosure provides a device for removing image artifacts, which is applied to a mobile terminal, including the device shown in FIG. 5 , and:

所述第四计算模块包括:The fourth computing module includes:

第二函数调用模块,用于将所述噪声表征图和所述差距图中同一像素点对应的值输入概率密度函数,确定所述概率密度函数的输出值;The second function calling module is used to input the value corresponding to the same pixel in the noise representation map and the gap map into the probability density function, and determine the output value of the probability density function;

调整模块,用于在所述输出值大于或等于预设概率时,将所述输出值与一调节值的差作为所述非参考帧图像中相应像素点位于伪影区域的概率;An adjustment module, configured to use the difference between the output value and an adjustment value as the probability that the corresponding pixel in the non-reference frame image is located in the artifact area when the output value is greater than or equal to a preset probability;

在所述输出值小于预设概率时,将所述输出值与一调节值的和作为所述非参考帧图像中相应像素点位于伪影区域的概率;When the output value is less than the preset probability, the sum of the output value and an adjustment value is used as the probability that the corresponding pixel in the non-reference frame image is located in the artifact area;

其中,所述调节值与所述摄像头的成像质量呈负相关。Wherein, the adjustment value is negatively correlated with the imaging quality of the camera.

本公开实施例中提供一种去除图像伪影的装置,应用于移动终端,包括图5所示的装置,并且:An embodiment of the present disclosure provides a device for removing image artifacts, which is applied to a mobile terminal, including the device shown in FIG. 5 , and:

每个非参考帧图像中各像素点的位于伪影区域的概率与相应非参考帧图像中相应像素点的权重呈负相关。The probability that each pixel in each non-reference frame image is located in the artifact area is negatively correlated with the weight of the corresponding pixel in the corresponding non-reference frame image.

本公开实施例中提供一种去除图像伪影的装置,包括:An embodiment of the present disclosure provides a device for removing image artifacts, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为执行所述存储器中的可执行指令以实现所述去除图像伪影的方法的步骤。Wherein, the processor is configured to execute the executable instructions in the memory to implement the steps of the method for removing image artifacts.

本公开实施例中提供一种非临时性计算机可读存储介质,其上存储有可执行指令,该可执行指令被处理器执行时实现所述去除图像伪影的方法的步骤。An embodiment of the present disclosure provides a non-transitory computer-readable storage medium, on which executable instructions are stored, and the steps of the method for removing image artifacts are implemented when the executable instructions are executed by a processor.

图6是根据一示例性实施例示出的一种用于去除图像伪影的装置600的框图。例如,装置600可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 6 is a block diagram of an apparatus 600 for removing image artifacts according to an exemplary embodiment. For example, the apparatus 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.

参照图6,装置600可以包括以下一个或多个组件:处理组件602,存储器604,电源组件606,多媒体组件608,音频组件610,输入/输出(I/O)的接口612,传感器组件614,以及通信组件616。6, device 600 may include one or more of the following components: processing component 602, memory 604, power supply component 606, multimedia component 608, audio component 610, input/output (I/O) interface 612, sensor component 614, and communication component 616 .

处理组件602通常控制装置600的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件602可以包括一个或多个处理器620来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件602可以包括一个或多个模块,便于处理组件602和其他组件之间的交互。例如,处理组件602可以包括多媒体模块,以方便多媒体组件608和处理组件602之间的交互。The processing component 602 generally controls the overall operations of the device 600, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 602 may include one or more modules that facilitate interaction between processing component 602 and other components. For example, processing component 602 may include a multimedia module to facilitate interaction between multimedia component 608 and processing component 602 .

存储器604被配置为存储各种类型的数据以支持在设备600的操作。这些数据的示例包括用于在装置600上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器604可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 604 is configured to store various types of data to support operations at the device 600 . Examples of such data include instructions for any application or method operating on device 600, contact data, phonebook data, messages, pictures, videos, and the like. The memory 604 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件606为装置600的各种组件提供电力。电源组件606可以包括电源管理系统,一个或多个电源,及其他与为装置600生成、管理和分配电力相关联的组件。The power supply component 606 provides power to various components of the device 600 . Power components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 600 .

多媒体组件608包括在所述装置600和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件608包括一个前置摄像头和/或后置摄像头。当设备600处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 608 includes a screen that provides an output interface between the device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 608 includes a front camera and/or a rear camera. When the device 600 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件610被配置为输出和/或输入音频信号。例如,音频组件610包括一个麦克风(MIC),当装置600处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器604或经由通信组件616发送。在一些实施例中,音频组件610还包括一个扬声器,用于输出音频信号。The audio component 610 is configured to output and/or input audio signals. For example, the audio component 610 includes a microphone (MIC) configured to receive external audio signals when the device 600 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 604 or sent via communication component 616 . In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.

I/O接口612为处理组件602和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 612 provides an interface between the processing component 602 and a peripheral interface module. The peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件614包括一个或多个传感器,用于为装置600提供各个方面的状态评估。例如,传感器组件614可以检测到设备600的打开/关闭状态,组件的相对定位,例如所述组件为装置600的显示器和小键盘,传感器组件614还可以检测装置600或装置600一个组件的位置改变,用户与装置600接触的存在或不存在,装置600方位或加速/减速和装置600的温度变化。传感器组件614可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件614还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件614还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 614 includes one or more sensors for providing status assessments of various aspects of device 600 . For example, the sensor component 614 can detect the open/closed state of the device 600, the relative positioning of components, such as the display and keypad of the device 600, and the sensor component 614 can also detect a change in the position of the device 600 or a component of the device 600 , the presence or absence of user contact with the device 600 , the device 600 orientation or acceleration/deceleration and the temperature change of the device 600 . The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 614 may also include optical sensors, such as CMOS or CCD image sensors, for use in imaging applications. In some embodiments, the sensor component 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件616被配置为便于装置600和其他设备之间有线或无线方式的通信。装置600可以接入基于通信标准的无线网络,如WiFi,4G或5G,或它们的组合。在一个示例性实施例中,通信组件616经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件616还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 616 is configured to facilitate wired or wireless communication between the apparatus 600 and other devices. The device 600 can access wireless networks based on communication standards, such as WiFi, 4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置600可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 600 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器604,上述指令可由装置600的处理器620执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 604 including instructions, which can be executed by the processor 620 of the device 600 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开中实施例的其它实施方案。本申请旨在涵盖本公开中实施例的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开中实施例的一般性原理并包括实施例未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开实施例的真正范围和精神由下面的权利要求指出。Other implementations of the embodiments of the disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the embodiments in the present disclosure, which follow the general principles of the embodiments in the present disclosure and include those in the technical field not disclosed in the embodiments. Common knowledge or common technical means. It is intended that the specification and examples be considered exemplary only, with a true scope and spirit of the disclosed embodiments being indicated by the following claims.

应当理解的是,本公开中实施例并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围对本申请中所公开的方法步骤或终端组件进行各种组合、替换、修改和改变,这些组合、替换、修改和改变均被视为被包括在本公开所记载的范围内。本公开所要求保护的范围由所附的权利要求来限制。It should be understood that the embodiments of the present disclosure are not limited to the precise structures described above and shown in the accompanying drawings, and various combinations of method steps or terminal components disclosed in the present application can be made without departing from the scope thereof. , substitutions, modifications and changes, and these combinations, substitutions, modifications and changes are considered to be included within the scope of the present disclosure. It is intended that the scope of protection claimed by the present disclosure be limited by the appended claims.

需要说明的是,在本公开中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that in this disclosure, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements , but also includes other elements not expressly listed, or also includes elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.

Claims (18)

1.一种去除图像伪影的方法,其特征在于,包括:1. A method for removing image artifacts, comprising: 获取摄像头采集的N个长曝光图像;所述N个长曝光图像包括一个参考帧图像以及N-1个非参考帧图像;Obtain N long-exposure images collected by the camera; the N long-exposure images include a reference frame image and N-1 non-reference frame images; 根据所述摄像头的噪声方差系数和所述N个长曝光图像计算每个非参考帧图像中各像素点的位于伪影区域的概率;According to the noise variance coefficient of the camera and the N long-exposure images, the probability of each pixel in each non-reference frame image being located in the artifact area is calculated; 根据每个非参考帧图像中各像素点的位于伪影区域的概率计算相应非参考帧图像中相应像素点的权重;Calculate the weight of the corresponding pixel in the corresponding non-reference frame image according to the probability that each pixel in each non-reference frame image is located in the artifact area; 根据所述N-1非参考帧图像中每个像素点的权重合成所述N个长曝光图像的加权图像。The weighted images of the N long-exposure images are synthesized according to the weight of each pixel in the N-1 non-reference frame images. 2.如权利要求1所述的方法,其特征在于,2. The method of claim 1, wherein 所述根据所述摄像头的噪声方差系数和所述N个长曝光图像计算每个非参考帧图像中各像素点位于伪影区域的概率,包括:The calculation of the probability that each pixel in each non-reference frame image is located in the artifact region according to the noise variance coefficient of the camera and the N long-exposure images includes: 根据所述摄像头的噪声方差系数和每个非参考帧图像确定每个非参考帧图像对应的噪声表征图;Determine the noise characterization map corresponding to each non-reference frame image according to the noise variance coefficient of the camera and each non-reference frame image; 根据所述噪声表征图和所述参考帧图像计算每个非参考帧图像中各像素点位于伪影区域的概率。calculating the probability that each pixel in each non-reference frame image is located in the artifact region according to the noise characterization map and the reference frame image. 3.如权利要求2所述的方法,其特征在于,3. The method of claim 2, wherein 所述根据所述噪声表征图和所述参考帧图像计算每个非参考帧图像中各像素点位于伪影区域的概率,包括:The calculation of the probability that each pixel in each non-reference frame image is located in the artifact area according to the noise characterization map and the reference frame image includes: 确定每个非参考帧图像与所述参考帧图像的差距图;determining a disparity map between each non-reference frame image and the reference frame image; 根据所述噪声表征图和所述差距图,计算每个非参考帧图像中每个像素点位于伪影区域的概率。Calculate the probability that each pixel in each non-reference frame image is located in an artifact area according to the noise representation map and the gap map. 4.如权利要求2或3所述的方法,其特征在于,4. The method of claim 2 or 3, wherein, 所述根据所述摄像头的噪声方差系数和每个非参考帧图像确定每个非参考帧图像对应的噪声表征图,包括:The determining the noise characterization map corresponding to each non-reference frame image according to the noise variance coefficient of the camera and each non-reference frame image includes: 根据每个非参考帧图像中像素点的灰度值和所述噪声方差系数,确定噪声表征图中相应像素点的值。According to the gray value of the pixel in each non-reference frame image and the noise variance coefficient, the value of the corresponding pixel in the noise representation map is determined. 5.如权利要求4所述的方法,其特征在于,5. The method of claim 4, wherein, 所述噪声方差系数包括第一系数和第二系数;The noise variance coefficient includes a first coefficient and a second coefficient; 所述根据每个非参考帧图像中像素点的灰度值和所述噪声方差系数,确定噪声表征图中相应像素点的值,包括:The determining the value of the corresponding pixel in the noise characterization map according to the gray value of the pixel in each non-reference frame image and the noise variance coefficient includes: 计算非参考帧图像中像素点的灰度值与所述第一系数的乘积,以及所述乘积与所述第二系数的和;calculating the product of the gray value of the pixel in the non-reference frame image and the first coefficient, and the sum of the product and the second coefficient; 将所述和作为所述噪声表征图中相应像素点的值。The sum is used as the value of the corresponding pixel in the noise representation map. 6.如权利要求3所述的方法,其特征在于,6. The method of claim 3, wherein, 所述根据所述噪声表征图和所述差距图,计算所述非参考帧图像中每个像素点位于伪影区域的概率,包括:The calculation of the probability that each pixel in the non-reference frame image is located in the artifact region according to the noise representation map and the gap map includes: 将所述噪声表征图和所述差距图中同一像素点对应的值输入概率密度函数,将所述概率密度函数的输出值作为所述非参考帧图像中相应像素点位于伪影区域的概率。Inputting the value corresponding to the same pixel in the noise characterization map and the gap map into a probability density function, and using the output value of the probability density function as the probability that the corresponding pixel in the non-reference frame image is located in the artifact area. 7.如权利要求3所述的方法,其特征在于,7. The method of claim 3, wherein, 所述根据所述噪声表征图和所述差距图,计算所述非参考帧图像中每个像素点位于伪影区域的概率,还包括:The calculating the probability that each pixel in the non-reference frame image is located in the artifact region according to the noise representation map and the gap map further includes: 将所述噪声表征图和所述差距图中同一像素点对应的值输入概率密度函数,确定所述概率密度函数的输出值;Inputting the value corresponding to the same pixel in the noise characterization map and the gap map into a probability density function, and determining an output value of the probability density function; 在所述输出值大于或等于预设概率时,将所述输出值与一调节值的差作为所述非参考帧图像中相应像素点位于伪影区域的概率;When the output value is greater than or equal to the preset probability, the difference between the output value and an adjustment value is used as the probability that the corresponding pixel in the non-reference frame image is located in the artifact area; 在所述输出值小于预设概率时,将所述输出值与一调节值的和作为所述非参考帧图像中相应像素点位于伪影区域的概率;When the output value is less than the preset probability, the sum of the output value and an adjustment value is used as the probability that the corresponding pixel in the non-reference frame image is located in the artifact area; 其中,所述调节值与所述摄像头的成像质量呈负相关。Wherein, the adjustment value is negatively correlated with the imaging quality of the camera. 8.如权利要求1所述的方法,其特征在于,8. The method of claim 1, wherein, 每个非参考帧图像中各像素点的位于伪影区域的概率与相应非参考帧图像中相应像素点的权重呈负相关。The probability that each pixel in each non-reference frame image is located in the artifact area is negatively correlated with the weight of the corresponding pixel in the corresponding non-reference frame image. 9.一种去除图像伪影的装置,其特征在于,包括:9. A device for removing image artifacts, comprising: 获取模块,用于获取摄像头采集的N个长曝光图像;所述N个长曝光图像包括一个参考帧图像以及N-1个非参考帧图像;An acquisition module, configured to acquire N long-exposure images collected by the camera; the N long-exposure images include a reference frame image and N-1 non-reference frame images; 第一计算模块,用于根据所述摄像头的噪声方差系数和所述N个长曝光图像计算每个非参考帧图像中各像素点的位于伪影区域的概率;The first calculation module is used to calculate the probability of each pixel in each non-reference frame image being located in the artifact area according to the noise variance coefficient of the camera and the N long-exposure images; 第二计算模块,用于根据每个非参考帧图像中各像素点的位于伪影区域的概率计算相应非参考帧图像中相应像素点的权重;The second calculation module is used to calculate the weight of the corresponding pixel in the corresponding non-reference frame image according to the probability of each pixel in each non-reference frame image being located in the artifact area; 合成模块,用于根据所述N-1非参考帧图像中每个像素点的权重合成所述N个长曝光图像的加权图像。A synthesis module, configured to synthesize weighted images of the N long-exposure images according to the weight of each pixel in the N-1 non-reference frame images. 10.如权利要求9所述的装置,其特征在于,10. The apparatus of claim 9, wherein 所述第一计算模块包括:The first computing module includes: 第一确定模块,用于根据所述摄像头的噪声方差系数和每个非参考帧图像确定每个非参考帧图像对应的噪声表征图;The first determination module is used to determine the noise characterization map corresponding to each non-reference frame image according to the noise variance coefficient of the camera and each non-reference frame image; 第三计算模块,根据所述噪声表征图和所述参考帧图像计算每个非参考帧图像中各像素点位于伪影区域的概率。The third calculating module calculates the probability that each pixel in each non-reference frame image is located in the artifact area according to the noise characterization map and the reference frame image. 11.如权利要求10所述的装置,其特征在于,11. The apparatus of claim 10, wherein 所述第三计算模块还包括:The third calculation module also includes: 第二确定模块,用于确定每个非参考帧图像与所述参考帧图像的差距图;The second determination module is used to determine the difference map between each non-reference frame image and the reference frame image; 第四计算模块,用于根据所述噪声表征图和所述差距图,计算每个非参考帧图像中每个像素点位于伪影区域的概率。The fourth calculation module is used to calculate the probability that each pixel in each non-reference frame image is located in the artifact area according to the noise representation map and the gap map. 12.如权利要求10或11所述的装置,其特征在于,12. Apparatus as claimed in claim 10 or 11, characterized in that, 所述第一确定模块,还用于使用以下方法根据所述摄像头的噪声方差系数和每个非参考帧图像确定每个非参考帧图像对应的噪声表征图:The first determination module is further configured to determine a noise characterization map corresponding to each non-reference frame image according to the noise variance coefficient of the camera and each non-reference frame image using the following method: 根据每个非参考帧图像中像素点的灰度值和所述噪声方差系数,确定噪声表征图中相应像素点的值。According to the gray value of the pixel in each non-reference frame image and the noise variance coefficient, the value of the corresponding pixel in the noise representation map is determined. 13.如权利要求12所述的装置,其特征在于,13. The apparatus of claim 12, wherein 所述噪声方差系数包括第一系数和第二系数;The noise variance coefficient includes a first coefficient and a second coefficient; 所述根据每个非参考帧图像中像素点的灰度值和所述噪声方差系数,确定噪声表征图中相应像素点的值,包括:The determining the value of the corresponding pixel in the noise characterization map according to the gray value of the pixel in each non-reference frame image and the noise variance coefficient includes: 计算非参考帧图像中像素点的灰度值与所述第一系数的乘积,以及所述乘积与所述第二系数的和;calculating the product of the gray value of the pixel in the non-reference frame image and the first coefficient, and the sum of the product and the second coefficient; 将所述和作为所述噪声表征图中相应像素点的值。The sum is used as the value of the corresponding pixel in the noise representation map. 14.如权利要求11所述的装置,其特征在于,14. The apparatus of claim 11, wherein: 所述第四计算模块包括:The fourth computing module includes: 第一函数调用模块,用于将所述噪声表征图和所述差距图中同一像素点对应的值输入概率密度函数,将所述概率密度函数的输出值作为所述非参考帧图像中相应像素点位于伪影区域的概率。The first function calling module is used to input the value corresponding to the same pixel in the noise representation map and the gap map into the probability density function, and use the output value of the probability density function as the corresponding pixel in the non-reference frame image The probability that a point is located in the artifact region. 15.如权利要求11所述的装置,其特征在于,15. The apparatus of claim 11, wherein 所述第四计算模块包括:The fourth computing module includes: 第二函数调用模块,用于将所述噪声表征图和所述差距图中同一像素点对应的值输入概率密度函数,确定所述概率密度函数的输出值;The second function calling module is used to input the value corresponding to the same pixel in the noise representation map and the gap map into the probability density function, and determine the output value of the probability density function; 调整模块,用于在所述输出值大于或等于预设概率时,将所述输出值与一调节值的差作为所述非参考帧图像中相应像素点位于伪影区域的概率;在所述输出值小于预设概率时,将所述输出值与一调节值的和作为所述非参考帧图像中相应像素点位于伪影区域的概率;An adjustment module, configured to use the difference between the output value and an adjustment value as the probability that the corresponding pixel in the non-reference frame image is located in the artifact area when the output value is greater than or equal to a preset probability; When the output value is less than the preset probability, the sum of the output value and an adjustment value is used as the probability that the corresponding pixel in the non-reference frame image is located in the artifact area; 其中,所述调节值与所述摄像头的成像质量呈负相关。Wherein, the adjustment value is negatively correlated with the imaging quality of the camera. 16.如权利要求9所述的装置,其特征在于,16. The apparatus of claim 9, wherein: 每个非参考帧图像中各像素点的位于伪影区域的概率与相应非参考帧图像中相应像素点的权重呈负相关。The probability that each pixel in each non-reference frame image is located in the artifact area is negatively correlated with the weight of the corresponding pixel in the corresponding non-reference frame image. 17.一种去除图像伪影的装置,其特征在于,包括:17. A device for removing image artifacts, comprising: 处理器;processor; 用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions; 其中,所述处理器被配置为执行所述存储器中的可执行指令以实现权利要求1至8中任一项所述去除图像伪影的方法的步骤。Wherein, the processor is configured to execute the executable instructions in the memory to realize the steps of the method for removing image artifacts in any one of claims 1-8. 18.一种非临时性计算机可读存储介质,其上存储有可执行指令,其特征在于,该可执行指令被处理器执行时实现权利要求1至8中任一项所述去除图像伪影的方法的步骤。18. A non-transitory computer-readable storage medium, on which executable instructions are stored, characterized in that, when the executable instructions are executed by a processor, the removal of image artifacts according to any one of claims 1 to 8 is implemented steps of the method.
CN202110804274.6A 2021-07-16 2021-07-16 A method, device and readable storage medium for removing image artifacts Pending CN115701131A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110804274.6A CN115701131A (en) 2021-07-16 2021-07-16 A method, device and readable storage medium for removing image artifacts

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110804274.6A CN115701131A (en) 2021-07-16 2021-07-16 A method, device and readable storage medium for removing image artifacts

Publications (1)

Publication Number Publication Date
CN115701131A true CN115701131A (en) 2023-02-07

Family

ID=85120535

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110804274.6A Pending CN115701131A (en) 2021-07-16 2021-07-16 A method, device and readable storage medium for removing image artifacts

Country Status (1)

Country Link
CN (1) CN115701131A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102077572A (en) * 2008-06-19 2011-05-25 松下电器产业株式会社 Method and apparatus for motion blur and ghosting prevention in imaging system
WO2013145799A1 (en) * 2012-03-30 2013-10-03 富士フイルム株式会社 Image processing device, photographing device, program, and image processing method
CN103973990A (en) * 2014-05-05 2014-08-06 浙江宇视科技有限公司 Wide dynamic fusion method and device
US20180018759A1 (en) * 2016-07-15 2018-01-18 Samsung Electronics Co., Ltd. Image artifact detection and correction in scenes obtained from multiple visual images
WO2018176925A1 (en) * 2017-03-31 2018-10-04 华为技术有限公司 Hdr image generation method and apparatus
CN110189285A (en) * 2019-05-28 2019-08-30 北京迈格威科技有限公司 A multi-frame image fusion method and device
CN111986129A (en) * 2020-06-30 2020-11-24 普联技术有限公司 HDR image generation method and device based on multi-shot image fusion and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102077572A (en) * 2008-06-19 2011-05-25 松下电器产业株式会社 Method and apparatus for motion blur and ghosting prevention in imaging system
WO2013145799A1 (en) * 2012-03-30 2013-10-03 富士フイルム株式会社 Image processing device, photographing device, program, and image processing method
CN103973990A (en) * 2014-05-05 2014-08-06 浙江宇视科技有限公司 Wide dynamic fusion method and device
US20180018759A1 (en) * 2016-07-15 2018-01-18 Samsung Electronics Co., Ltd. Image artifact detection and correction in scenes obtained from multiple visual images
WO2018176925A1 (en) * 2017-03-31 2018-10-04 华为技术有限公司 Hdr image generation method and apparatus
CN110189285A (en) * 2019-05-28 2019-08-30 北京迈格威科技有限公司 A multi-frame image fusion method and device
CN111986129A (en) * 2020-06-30 2020-11-24 普联技术有限公司 HDR image generation method and device based on multi-shot image fusion and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
DONG-KYU LEE: "《GHOST AND NOISE REMOVAL IN EXPOSURE FUSION FOR HIGH DYNAMIC RANGE IMAGING》", 《INTERNATIONAL JOURNAL OF COMPUTER GRAPHICS & ANIMATION (IJCGA)》, 31 October 2014 (2014-10-31) *
吴德会;杨世元;董华;: "基于最小二乘支持向量机的传感器动态补偿方法", 计量学报, no. 04, 22 October 2007 (2007-10-22) *
张登辉;霍永青;: "动态场景的高动态范围图像生成", 计算机辅助设计与图形学学报, no. 09, 15 September 2018 (2018-09-15) *

Similar Documents

Publication Publication Date Title
JP7162683B2 (en) Image denoising model training method, image denoising method, device and medium
CN109345485B (en) Image enhancement method and device, electronic equipment and storage medium
US11222235B2 (en) Method and apparatus for training image processing model, and storage medium
CN107888984B (en) Short video playing method and device
CN107798654B (en) Image microdermabrasion method and device, storage medium
WO2016127671A1 (en) Image filter generating method and device
CN105574834B (en) Image processing method and device
CN106339705B (en) Image acquisition method and device
CN114500821B (en) Photographing method and device, terminal and storage medium
CN107395982A (en) Photographic method and device
CN114511450A (en) Image noise reduction method, image noise reduction device, terminal and storage medium
CN112188095B (en) Photographing method, photographing device and storage medium
CN110876014A (en) Image processing method and device, electronic device and storage medium
CN115701131A (en) A method, device and readable storage medium for removing image artifacts
CN108962189A (en) Luminance regulating method and device
CN107770444A (en) Parameter determination method of taking pictures and device
CN117412177A (en) Photography methods, devices, media and chips
CN115249208A (en) Image processing method, video processing method and device, terminal and storage medium
CN107067030A (en) The method and apparatus of similar pictures detection
CN110874829B (en) Image processing method and device, electronic device and storage medium
CN114339187A (en) Image processing method, image processing apparatus, and storage medium
CN107025638B (en) Image processing method and device
CN112016595A (en) Image classification method and device, electronic equipment and readable storage medium
CN106023114A (en) Image processing method and apparatus
CN114339018B (en) Method and device for switching lenses and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination