[go: up one dir, main page]

CN104902143B - A kind of image de-noising method and device based on resolution ratio - Google Patents

A kind of image de-noising method and device based on resolution ratio Download PDF

Info

Publication number
CN104902143B
CN104902143B CN201510267042.6A CN201510267042A CN104902143B CN 104902143 B CN104902143 B CN 104902143B CN 201510267042 A CN201510267042 A CN 201510267042A CN 104902143 B CN104902143 B CN 104902143B
Authority
CN
China
Prior art keywords
resolution
denoising
image
parameter
ambient light
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.)
Expired - Fee Related
Application number
CN201510267042.6A
Other languages
Chinese (zh)
Other versions
CN104902143A (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510267042.6A priority Critical patent/CN104902143B/en
Publication of CN104902143A publication Critical patent/CN104902143A/en
Application granted granted Critical
Publication of CN104902143B publication Critical patent/CN104902143B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)
  • Studio Devices (AREA)

Abstract

本发明实施例公开了一种基于分辨率的图像去噪方法及装置,其中,该方法包括:当开启摄像头时,获取当前环境光亮度值;获取所述摄像头的采集图像对应的第一分辨率和第二分辨率,其中,所述第一分辨率是摄像头传感器输出的分辨率,所述第二分辨率是输出所述采集图像时需要的分辨率;基于所述当前环境光亮度值、所述第一分辨率和所述第二分辨率,获取对所述采集图像的目标去噪强度参数;使用所述目标去噪强度参数对所述采集图像进行去噪处理,输出所述去噪处理后的采集图像。实施本发明实施例,能够提升输出图像的质量,改善输出图像的画面效果。

The embodiment of the present invention discloses a resolution-based image denoising method and device, wherein the method includes: when the camera is turned on, acquiring the current ambient light brightness value; acquiring the first resolution corresponding to the captured image of the camera and a second resolution, wherein the first resolution is the resolution output by the camera sensor, and the second resolution is the resolution required when outputting the captured image; based on the current ambient light brightness value, the The first resolution and the second resolution are used to obtain the target denoising intensity parameter of the collected image; the target denoising intensity parameter is used to perform denoising processing on the collected image, and the denoising processing is output After the captured image. By implementing the embodiment of the present invention, the quality of the output image can be improved, and the picture effect of the output image can be improved.

Description

一种基于分辨率的图像去噪方法及装置A resolution-based image denoising method and device

技术领域technical field

本发明涉及图像处理技术领域,尤其涉及一种基于分辨率的图像去噪方法及装置。The present invention relates to the technical field of image processing, in particular to a resolution-based image denoising method and device.

背景技术Background technique

目前,手机摄像头在对采集的图像进行去噪处理时,仅根据当前的环境光亮度来确定该去噪处理的去噪强度,环境光亮度越暗,去噪强度越强。然而,在实际应用中,当拍摄应用输出图像需要的分辨率较低时,由于输出图像分辨率低,噪点在对该图像抽样时已经被抹掉。此时,在当前环境光亮度较暗的情况下,若仍然采用较大的去噪强度对图像进行去噪处理,则会导致输出的图像画面非常模糊,使得输出图像的画面效果较差。At present, when the mobile phone camera performs denoising processing on the collected images, the denoising strength of the denoising processing is only determined according to the current ambient light brightness, and the darker the ambient light brightness is, the stronger the denoising strength is. However, in practical applications, when the resolution of the output image required by the shooting application is relatively low, due to the low resolution of the output image, the noise has been erased when the image is sampled. At this time, if the current ambient brightness is relatively dark, if the image is still denoised with a large denoising intensity, the output image will be very blurred, making the image effect of the output image poor.

发明内容Contents of the invention

本发明实施例提供了一种基于分辨率的图像去噪方法及装置,能够提升输出图像的质量,改善输出图像的画面效果。Embodiments of the present invention provide a resolution-based image denoising method and device, which can improve the quality of an output image and improve the picture effect of the output image.

本发明实施例公开了一种基于分辨率的图像去噪方法,包括:The embodiment of the present invention discloses a resolution-based image denoising method, including:

当开启摄像头时,获取当前环境光亮度值;When the camera is turned on, get the current ambient light brightness value;

获取所述摄像头的采集图像对应的第一分辨率和第二分辨率,其中,所述第一分辨率是摄像头传感器输出的分辨率,所述第二分辨率是输出所述采集图像时需要的分辨率;Obtain a first resolution and a second resolution corresponding to the captured image of the camera, wherein the first resolution is the resolution output by the camera sensor, and the second resolution is required when outputting the captured image resolution;

基于所述当前环境光亮度值、所述第一分辨率和所述第二分辨率,获取对所述采集图像的目标去噪强度参数;Acquiring a target denoising intensity parameter for the collected image based on the current ambient light brightness value, the first resolution, and the second resolution;

使用所述目标去噪强度参数对所述采集图像进行去噪处理,输出所述去噪处理后的采集图像。Using the target denoising intensity parameter to perform denoising processing on the collected image, and output the denoising processed collected image.

可选的,所述基于所述当前环境光亮度值、所述第一分辨率和所述第二分辨率,获取对所述采集图像的目标去噪强度参数,包括:Optionally, the acquiring a target denoising intensity parameter for the collected image based on the current ambient light brightness value, the first resolution, and the second resolution includes:

根据所述当前环境光亮度值,确定对所述采集图像的第一去噪强度参数;Determine a first denoising intensity parameter for the collected image according to the current ambient light brightness value;

计算所述第一分辨率和所述第二分辨率的比值;calculating a ratio of the first resolution to the second resolution;

根据所述比值,调整所述第一去噪强度参数,得到目标去噪强度参数。According to the ratio, the first denoising intensity parameter is adjusted to obtain a target denoising intensity parameter.

可选的,所述比值为所述第二分辨率除以所述第一分辨率得到的商值,所述目标去噪强度参数对应的去噪强度与所述比值成正比。Optionally, the ratio is a quotient obtained by dividing the second resolution by the first resolution, and the denoising strength corresponding to the target denoising strength parameter is proportional to the ratio.

可选的,所述比值为所述第一分辨率除以所述第二分辨率得到的商值,所述目标去噪强度参数对应的去噪强度与所述比值成反比。Optionally, the ratio is a quotient obtained by dividing the first resolution by the second resolution, and the denoising strength corresponding to the target denoising strength parameter is inversely proportional to the ratio.

可选的,所述当前环境光亮度值包括当前环境的感光度ISO值;所述根据所述当前环境光亮度值,确定对所述采集图像的第一去噪强度参数,包括:Optionally, the current ambient light brightness value includes the ISO value of the current ambient light sensitivity; the determining the first denoising intensity parameter for the collected image according to the current ambient light brightness value includes:

将所述当前环境的ISO值与存储的ISO区间中的ISO值进行比较,判断所述当前环境的ISO值是否处于所述ISO区间范围内;Comparing the ISO value of the current environment with the ISO value in the stored ISO interval, and judging whether the ISO value of the current environment is within the range of the ISO interval;

若所述当前环境的ISO值处于所述ISO区间范围内,则将所述ISO区间对应的去噪强度参数确定为对所述采集图像的第一去噪强度参数。If the ISO value of the current environment is within the range of the ISO interval, then determining a denoising intensity parameter corresponding to the ISO interval as a first denoising intensity parameter for the collected image.

可选的,所述基于所述当前环境光亮度值、所述第一分辨率和所述第二分辨率,获取对所述采集图像的目标去噪强度参数,包括:Optionally, the acquiring a target denoising intensity parameter for the collected image based on the current ambient light brightness value, the first resolution, and the second resolution includes:

从存储的参数配置列表中查找出与所述当前环境光亮度值、所述第一分辨率和所述第二分辨率对应的去噪强度参数,所述参数配置列表包括不同的环境光亮度值、第一分辨率和第二分辨率的映射关系;Find the denoising intensity parameters corresponding to the current ambient light brightness value, the first resolution and the second resolution from the stored parameter configuration list, the parameter configuration list includes different ambient light brightness values , the mapping relationship between the first resolution and the second resolution;

将查找出的所述去噪强度参数确定为所述采集图像的目标去噪强度参数。Determining the found denoising strength parameter as a target denoising strength parameter of the acquired image.

相应地,本发明实施例还公开了一种图像去噪装置,包括:Correspondingly, the embodiment of the present invention also discloses an image denoising device, including:

第一获取模块,用于当开启摄像头时,获取当前环境光亮度值;The first acquisition module is used to acquire the current ambient light brightness value when the camera is turned on;

第二获取模块,用于获取所述摄像头的采集图像对应的第一分辨率和第二分辨率,其中,所述第一分辨率是摄像头传感器输出的分辨率,所述第二分辨率是输出所述采集图像时需要的分辨率;The second acquisition module is configured to acquire the first resolution and the second resolution corresponding to the captured image of the camera, wherein the first resolution is the resolution output by the camera sensor, and the second resolution is the output The resolution required when the image is collected;

参数确定模块,用于基于所述当前环境光亮度值、所述第一分辨率和所述第二分辨率,获取对所述采集图像的目标去噪强度参数;A parameter determination module, configured to acquire a target denoising intensity parameter for the collected image based on the current ambient light brightness value, the first resolution, and the second resolution;

图像处理模块,用于使用所述参数确定模块获取的所述目标去噪强度参数对所述采集图像进行去噪处理,输出所述去噪处理后的采集图像。An image processing module, configured to use the target denoising intensity parameter acquired by the parameter determination module to perform denoising processing on the collected image, and output the denoising processed collected image.

可选的,所述参数确定模块包括:Optionally, the parameter determination module includes:

第一确定单元,用于根据所述当前环境光亮度值,确定对所述采集图像的第一去噪强度参数;A first determining unit, configured to determine a first denoising intensity parameter for the collected image according to the current ambient light brightness value;

计算单元,用于计算所述第一分辨率和所述第二分辨率的比值;a calculation unit, configured to calculate a ratio between the first resolution and the second resolution;

参数调整单元,用于根据所述计算单元计算得到的所述比值,调整所述第一去噪强度参数,得到目标去噪强度参数。A parameter adjustment unit, configured to adjust the first denoising intensity parameter according to the ratio calculated by the calculating unit to obtain a target denoising intensity parameter.

可选的,所述比值为所述第二分辨率除以所述第一分辨率得到的商值,所述目标去噪强度参数对应的去噪强度与所述比值成正比。Optionally, the ratio is a quotient obtained by dividing the second resolution by the first resolution, and the denoising strength corresponding to the target denoising strength parameter is proportional to the ratio.

可选的,所述比值为所述第一分辨率除以所述第二分辨率得到的商值,所述目标去噪强度参数对应的去噪强度与所述比值成反比。Optionally, the ratio is a quotient obtained by dividing the first resolution by the second resolution, and the denoising strength corresponding to the target denoising strength parameter is inversely proportional to the ratio.

可选的,所述当前环境光亮度值包括当前环境的感光度ISO值;所述第一确定单元具体用于:Optionally, the current ambient brightness value includes an ISO value of the current ambient light sensitivity; the first determination unit is specifically configured to:

将所述当前环境的ISO值与存储的ISO区间中的ISO值进行比较,判断所述当前环境的ISO值是否处于所述ISO区间范围内;若所述当前环境的ISO值处于所述ISO区间范围内,则将所述ISO区间对应的去噪强度参数确定为对所述采集图像的第一去噪强度参数。Comparing the ISO value of the current environment with the ISO value in the stored ISO interval, and judging whether the ISO value of the current environment is within the range of the ISO interval; if the ISO value of the current environment is within the ISO interval range, the denoising intensity parameter corresponding to the ISO interval is determined as the first denoising intensity parameter for the acquired image.

可选的,所述参数确定模块包括:Optionally, the parameter determination module includes:

查找单元,用于从存储的参数配置列表中查找出与所述当前环境光亮度值、所述第一分辨率和所述第二分辨率对应的去噪强度参数,所述参数配置列表包括不同的环境光亮度值、第一分辨率和第二分辨率的映射关系;A search unit, configured to find the denoising intensity parameters corresponding to the current ambient light brightness value, the first resolution, and the second resolution from a stored parameter configuration list, the parameter configuration list including different The mapping relationship between the ambient light brightness value, the first resolution and the second resolution;

第二确定单元,用于将所述查找单元查找出的所述去噪强度参数确定为所述采集图像的目标去噪强度参数。The second determining unit is configured to determine the denoising intensity parameter found by the searching unit as a target denoising intensity parameter of the acquired image.

本发明实施例可在开启摄像头时,通过获取当前环境光亮度值、摄像头传感器输出的第一分辨率和输出图像需要的第二分辨率,来确定得到对当前采集图像的去噪强度参数,即能够结合输出图像所需要的分辨率大小来调整对当前图像采用的去噪强度,从而避免了输出图像所需分辨率较低时,仅根据当前环境参数确定的去噪强度对图像进行去噪处理,而导致的输出的图像画面模糊的问题,使得能够提升输出图像的质量,改善输出图像的画面效果。In the embodiment of the present invention, when the camera is turned on, the denoising intensity parameter for the currently collected image can be determined by obtaining the current ambient light brightness value, the first resolution output by the camera sensor, and the second resolution required for the output image, namely It can adjust the denoising strength of the current image in combination with the resolution required for the output image, thereby avoiding denoising the image only according to the denoising strength determined by the current environmental parameters when the resolution required for the output image is low , resulting in blurring of the output image, so that the quality of the output image can be improved, and the image effect of the output image can be improved.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings that need to be used in the embodiments. Obviously, the drawings in the following description are some embodiments of the present invention. Those of ordinary skill in the art can also obtain other drawings based on these drawings without any creative effort.

图1是本发明实施例提供的一种基于分辨率的图像去噪方法的流程示意图;FIG. 1 is a schematic flowchart of a resolution-based image denoising method provided by an embodiment of the present invention;

图2是本发明实施例提供的另一种基于分辨率的图像去噪方法的流程示意图;FIG. 2 is a schematic flowchart of another resolution-based image denoising method provided by an embodiment of the present invention;

图3是本发明实施例提供的又一种基于分辨率的图像去噪方法的流程示意图;FIG. 3 is a schematic flowchart of another resolution-based image denoising method provided by an embodiment of the present invention;

图4是本发明实施例提供的一种图像去噪装置的结构示意图;FIG. 4 is a schematic structural diagram of an image denoising device provided by an embodiment of the present invention;

图5是本发明实施例提供的另一种图像去噪装置的结构示意图;Fig. 5 is a schematic structural diagram of another image denoising device provided by an embodiment of the present invention;

图6是本发明实施例提供的又一种图像去噪装置的结构示意图;FIG. 6 is a schematic structural diagram of another image denoising device provided by an embodiment of the present invention;

图7是本发明实施例提供的一种终端的结构示意图。Fig. 7 is a schematic structural diagram of a terminal provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

本发明实施例公开了一种基于分辨率的图像去噪方法及装置,能够提升输出图像的质量,改善输出图像的画面效果。以下分别详细说明。The embodiment of the invention discloses a resolution-based image denoising method and device, which can improve the quality of an output image and improve the picture effect of the output image. Each will be described in detail below.

请参阅图1,图1是本发明实施例提供的一种基于分辨率的图像去噪方法的流程示意图。具体的,如图1所示,该基于分辨率的图像去噪方法可以包括以下步骤:Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of a resolution-based image denoising method provided by an embodiment of the present invention. Specifically, as shown in Figure 1, the resolution-based image denoising method may include the following steps:

S101:当开启摄像头时,获取当前环境光亮度值。S101: Acquire the current ambient light brightness value when the camera is turned on.

需要说明的是,本发明实施例的所述方法可具体应用于智能手机(如Android手机、iOS手机等)、平板电脑、移动互联网设备(Mobile Internet Devices,MID)、个人数字助理(Personal Digital Assistant,PAD)等安装有拍摄应用的终端中。其中,所述当前环境光亮度值可具体为当前环境下的感光度ISO值。It should be noted that the method in the embodiment of the present invention can be specifically applied to smart phones (such as Android phones, iOS phones, etc.), tablet computers, mobile Internet devices (Mobile Internet Devices, MIDs), personal digital assistants (Personal Digital Assistant) , PAD) and other terminals with shooting applications installed. Wherein, the current ambient light brightness value may specifically be an ISO value of sensitivity in the current environment.

S102:获取所述摄像头的采集图像对应的第一分辨率和第二分辨率,其中,所述第一分辨率是摄像头传感器输出的分辨率,所述第二分辨率是输出所述采集图像时需要的分辨率。S102: Obtain a first resolution and a second resolution corresponding to the captured image of the camera, wherein the first resolution is the resolution output by the camera sensor, and the second resolution is the output of the captured image required resolution.

具体的,一般来说,摄像头传感器sensor输出的分辨率即第一分辨率为固定的分辨率,比如3k*4k=1200w(像素),而拍摄应用输出的图像所需要的分辨率即第二分辨率很多时候不需要达到该1200w,比如仅需要2k*3k=600w(像素)。为了确保输出图像的画面效果,即可根据当前环境光亮度值,并结合该第一分辨率和第二分辨率比如进一步结合该第一分辨率和第二分辨率的比值确定出对采集图像进行去噪处理的去噪强度参数。Specifically, generally speaking, the resolution output by the camera sensor sensor, that is, the first resolution, is a fixed resolution, such as 3k*4k=1200w (pixels), and the resolution required for shooting the image output by the application is the second resolution. In many cases, the rate does not need to reach the 1200w, for example, only 2k*3k=600w (pixels). In order to ensure the picture effect of the output image, it can be determined according to the current ambient light brightness value, combined with the first resolution and the second resolution, such as further combining the ratio of the first resolution and the second resolution The denoising strength parameter for the denoising process.

S103:基于所述当前环境光亮度值、所述第一分辨率和所述第二分辨率,获取对所述采集图像的目标去噪强度参数。S103: Based on the current ambient light brightness value, the first resolution, and the second resolution, acquire a target denoising intensity parameter for the collected image.

作为一种可选的实施方式,该目标去噪强度参数可以是根据该获取的当前环境光亮度值、所述第一分辨率和所述第二分辨率计算得到的。即,所述基于所述当前环境光亮度值、所述第一分辨率和所述第二分辨率,获取对所述采集图像的目标去噪强度参数,可以具体为:根据所述当前环境光亮度值,确定对所述采集图像的第一去噪强度参数;计算所述第一分辨率和所述第二分辨率的比值;根据所述比值,调整所述第一去噪强度参数,得到目标去噪强度参数。As an optional implementation manner, the target denoising intensity parameter may be calculated according to the acquired current ambient light brightness value, the first resolution, and the second resolution. That is, the acquiring the target denoising intensity parameter of the collected image based on the current ambient light brightness value, the first resolution, and the second resolution may specifically be: according to the current ambient light The brightness value is used to determine the first denoising strength parameter of the collected image; to calculate the ratio of the first resolution to the second resolution; to adjust the first denoising strength parameter according to the ratio to obtain Target denoising strength parameter.

作为一种可选的实施方式,该目标去噪强度参数还可以是根据存储的环境光亮度值、第一分辨率和第二分辨率与去噪强度参数之间的映射关系从预置的参数配置列表中查找出的。即,所述基于所述当前环境光亮度值、所述第一分辨率和所述第二分辨率,获取对所述采集图像的目标去噪强度参数,还可以具体为:从存储的参数配置列表中查找出与所述当前环境光亮度值、所述第一分辨率和所述第二分辨率对应的去噪强度参数,所述参数配置列表包括不同的环境光亮度值、第一分辨率和第二分辨率的映射关系;将查找出的所述去噪强度参数确定为所述采集图像的目标去噪强度参数。As an optional implementation, the target denoising intensity parameter can also be a preset parameter based on the stored ambient light brightness value, the mapping relationship between the first resolution and the second resolution and the denoising intensity parameter Find out in the configuration list. That is, the acquiring the target denoising intensity parameter of the collected image based on the current ambient light brightness value, the first resolution, and the second resolution may also be specifically: configure the parameter from the stored Find the denoising intensity parameters corresponding to the current ambient light brightness value, the first resolution, and the second resolution in the list, and the parameter configuration list includes different ambient light brightness values, the first resolution A mapping relationship with the second resolution; determining the found denoising intensity parameter as the target denoising intensity parameter of the acquired image.

S104:使用所述目标去噪强度参数对所述采集图像进行去噪处理,输出所述去噪处理后的采集图像。S104: Perform denoising processing on the collected image by using the target denoising intensity parameter, and output the denoising processed collected image.

具体实施例中,在根据该当前环境光亮度值、第一分辨率和第二分辨率得到目标去噪强度参数之后,即可基于该目标去噪强度参数进行图像去噪处理,从而得到当前拍摄应用所需分辨率大小的图像。In a specific embodiment, after the target denoising intensity parameter is obtained according to the current ambient light brightness value, the first resolution, and the second resolution, image denoising processing can be performed based on the target denoising intensity parameter, so as to obtain the current shot Apply an image at the desired resolution size.

实施本发明实施例可在开启摄像头时,通过获取当前环境光亮度值、摄像头传感器输出的第一分辨率和输出图像需要的第二分辨率,来确定得到对当前采集图像的去噪强度参数,即能够结合输出图像所需要的分辨率大小来调整对当前图像采用的去噪强度,从而避免了输出图像所需分辨率较低时,仅根据当前环境参数确定的去噪强度对图像进行去噪处理,而导致的输出的图像画面模糊的问题,使得能够提升输出图像的质量,改善输出图像的画面效果。In the implementation of the embodiment of the present invention, when the camera is turned on, the denoising intensity parameter for the currently collected image can be determined by obtaining the current ambient light brightness value, the first resolution output by the camera sensor, and the second resolution required for the output image. That is, the denoising strength used for the current image can be adjusted in combination with the resolution required for the output image, thereby avoiding denoising the image only according to the denoising strength determined by the current environmental parameters when the resolution required for the output image is low The problem of blurring of the output image caused by processing can improve the quality of the output image and improve the image effect of the output image.

进一步的,请参阅图2,图2是本发明实施例提供的另一种基于分辨率的图像去噪方法的流程示意图。具体的,如图2所示,该基于分辨率的图像去噪方法可以包括以下步骤:Further, please refer to FIG. 2 . FIG. 2 is a schematic flowchart of another resolution-based image denoising method provided by an embodiment of the present invention. Specifically, as shown in Figure 2, the resolution-based image denoising method may include the following steps:

S201:当开启摄像头时,获取当前环境光亮度值。S201: Acquire the current ambient light brightness value when the camera is turned on.

具体实施例中,在用户打开拍摄应用,调用摄像头采集图像时,即可触发获取当前环境光亮度值,以根据该当前环境光亮度值确定出对该采集图像的当前默认去噪强度参数,即第一去噪强度参数。In a specific embodiment, when the user opens the shooting application and calls the camera to collect images, it can be triggered to obtain the current ambient light brightness value, so as to determine the current default denoising intensity parameter for the collected image according to the current ambient light brightness value, namely The first denoising strength parameter.

S202:获取所述摄像头的采集图像对应的第一分辨率和第二分辨率,其中,所述第一分辨率是摄像头传感器输出的分辨率,所述第二分辨率是输出所述采集图像时需要的分辨率。S202: Obtain a first resolution and a second resolution corresponding to the captured image of the camera, wherein the first resolution is the resolution output by the camera sensor, and the second resolution is the output of the captured image required resolution.

S203:根据所述当前环境光亮度值,确定对所述采集图像的第一去噪强度参数。S203: Determine a first denoising intensity parameter for the collected image according to the current ambient light brightness value.

在可选的实施例中,所述当前环境光亮度值可包括当前环境的感光度ISO值;所述根据所述当前环境光亮度值,确定对所述采集图像的第一去噪强度参数,可以具体为:将所述当前环境的ISO值与存储的ISO区间中的ISO值进行比较,判断所述当前环境的ISO值是否处于所述ISO区间范围内;若所述当前环境的ISO值处于所述ISO区间范围内,则将所述ISO区间对应的去噪强度参数确定为对所述采集图像的第一去噪强度参数。具体的,可将不同环境下的ISO值按照由高到低或者由低到高的顺序进行排序后划分得到多个ISO区间,每个ISO区间包括多个ISO值,并为每一个ISO区间关联一组去噪强度参数,每组去噪强度参数对应一个去噪强度,以使用该去噪强度参数对摄像头采集的图像进行去噪处理。在获取得到当前环境的ISO值之后,即可确定该当前ISO值所在的ISO区间,从而确定出该当前ISO值对应的去噪强度参数,即第一去噪强度参数,以使用该第一去噪强度参数对摄像头采集图像进行去噪处理。In an optional embodiment, the current ambient light brightness value may include a current ambient light sensitivity ISO value; and determining the first denoising intensity parameter for the collected image according to the current ambient light brightness value, It may be specifically: comparing the ISO value of the current environment with the ISO value in the stored ISO interval, and judging whether the ISO value of the current environment is within the range of the ISO interval; if the ISO value of the current environment is within If within the range of the ISO interval, the denoising intensity parameter corresponding to the ISO interval is determined as the first denoising intensity parameter for the collected image. Specifically, the ISO values in different environments can be sorted from high to low or from low to high and then divided into multiple ISO intervals. Each ISO interval includes multiple ISO values, and each ISO interval is associated with A set of denoising strength parameters, each set of denoising strength parameters corresponds to a denoising strength, and the image collected by the camera is denoised using the denoising strength parameters. After obtaining the ISO value of the current environment, the ISO interval where the current ISO value is located can be determined, thereby determining the denoising intensity parameter corresponding to the current ISO value, that is, the first denoising intensity parameter, so as to use the first denoising intensity parameter The noise intensity parameter is used to denoise the image captured by the camera.

S204:计算所述第一分辨率和所述第二分辨率的比值。S204: Calculate a ratio between the first resolution and the second resolution.

S205:根据所述比值,调整所述第一去噪强度参数,得到目标去噪强度参数。S205: Adjust the first denoising intensity parameter according to the ratio to obtain a target denoising intensity parameter.

作为一种可选的实施方式,所述比值可以为所述第二分辨率除以所述第一分辨率得到的商值,则所述目标去噪强度参数对应的去噪强度与所述比值成正比。As an optional implementation manner, the ratio may be the quotient obtained by dividing the second resolution by the first resolution, then the denoising strength corresponding to the target denoising strength parameter and the ratio Proportional.

具体的,假设摄像头传感器sensor输出的分辨率即第一分辨率为x_output、y_output,而拍摄应用输出图像时需要的分辨率即第二分辨率为x_need、y_need,则所述比值可以为该第二分辨率除以第一分辨率得到的商值,即该比值ratio=(x_need*y_need)/(x_output*y_output)。当ratio越小,在终端的图像处理器ISP对摄像头采集的图像做抽样处理时噪点被抹得越厉害,因此,对该采集图像进行去噪处理的去噪强度(denoise_strength)就应该越小。此时,即可根据该比值ratio来进一步调整对图像的去噪强度参数,比如可根据denoise_strength1*ratio确定出目标去噪强度,其中,该denoise_strength1即为第一去噪强度参数对应的去噪强度。也就是说,当输出图像时需要的分辨率与sensor输出的分辨率一致,即拍照需要的尺寸和sensor输出尺寸相同时,即可采用默认的去噪强度参数即第一去噪强度参数进行图像去噪处理,而随着该需要的分辨率的降低,比值ratio减小,即可重新调整图像去噪强度参数,按比例降低对该采集图像的去噪强度,得到目标去噪强度如denoise_strength=denoise_strength1*ratio,即该目标去噪强度参数对应的去噪强度与所述比值成正比。举例来说,当x_output=3k,y_output=4k,x_need=2k,y_need=3k,即sensor输出的分辨率(第一分辨率)为3k*4k=1200w,拍摄应用输出图像所需要的分辨率(第二分辨率)为2k*3k=600w,则ratio=600w/1200w=0.5,则可调整根据当前环境光亮度值确定出的默认去噪强度参数(即第一去噪强度参数),得到目标去噪强度参数,使得该目标去噪强度参数对应的去噪强度为该默认去噪强度参数对应的去噪强度的一半,以实现基于图像分辨率减小对该摄像头采集图像的去噪强度。Specifically, assuming that the resolution output by the camera sensor sensor, that is, the first resolution is x_output and y_output, and that the resolution required for capturing the output image of the application, that is, the second resolution is x_need and y_need, the ratio may be the second The quotient obtained by dividing the resolution by the first resolution, that is, the ratio ratio=(x_need*y_need)/(x_output*y_output). When the ratio is smaller, the noise will be erased more severely when the image processor ISP of the terminal performs sampling processing on the image collected by the camera. Therefore, the denoising strength (denoise_strength) for denoising the collected image should be smaller. At this point, the denoising strength parameters of the image can be further adjusted according to the ratio ratio. For example, the target denoising strength can be determined according to denoise_strength1*ratio, where the denoise_strength1 is the denoising strength corresponding to the first denoising strength parameter . That is to say, when the resolution required for outputting an image is consistent with the resolution output by the sensor, that is, when the size required for taking pictures is the same as the output size of the sensor, the default denoising intensity parameter, that is, the first denoising intensity parameter, can be used for image processing. Denoising processing, and with the reduction of the required resolution, the ratio ratio decreases, and the image denoising strength parameter can be readjusted, and the denoising strength of the collected image is reduced in proportion to obtain the target denoising strength such as denoise_strength= denoise_strength1*ratio, that is, the denoising strength corresponding to the target denoising strength parameter is proportional to the ratio. For example, when x_output=3k, y_output=4k, x_need=2k, y_need=3k, that is, the resolution (first resolution) output by the sensor is 3k*4k=1200w, the resolution ( The second resolution) is 2k*3k=600w, then ratio=600w/1200w=0.5, then the default denoising intensity parameter (namely the first denoising intensity parameter) determined according to the current ambient light brightness value can be adjusted to obtain the target The denoising strength parameter, so that the denoising strength corresponding to the target denoising strength parameter is half of the denoising strength corresponding to the default denoising strength parameter, so as to reduce the denoising strength of the image captured by the camera based on the image resolution.

作为一种可选的实施方式,所述比值还可以为所述第一分辨率除以所述第二分辨率得到的商值,则所述目标去噪强度参数对应的去噪强度与所述比值成反比。As an optional implementation manner, the ratio may also be a quotient obtained by dividing the first resolution by the second resolution, then the denoising strength corresponding to the target denoising strength parameter is equal to the The ratio is inversely proportional.

具体的,该第一分辨率和第二分辨率的比值还可以是该第一分辨率除以所述第二分辨率得到的商值,即比值ratio=(x_output*y_output)/(x_need*y_need)。相应地,可根据denoise_strength1/ratio确定出目标去噪强度,其中,该denoise_strength1即为第一去噪强度参数对应的去噪强度。也就是说,当输出图像时需要的分辨率与sensor输出的分辨率一致时,即可采用默认的去噪强度参数即第一去噪强度参数进行图像去噪处理,而随着该第二分辨率的降低,比值ratio增大,即可重新调整图像去噪强度参数,按比例降低对该采集图像的去噪强度,得到目标去噪强度如denoise_strength=denoise_strength1/ratio,即该目标去噪强度参数对应的去噪强度与所述比值成反比。Specifically, the ratio of the first resolution to the second resolution may also be the quotient obtained by dividing the first resolution by the second resolution, that is, the ratio ratio=(x_output*y_output)/(x_need*y_need ). Correspondingly, the target denoising strength can be determined according to denoise_strength1/ratio, wherein the denoise_strength1 is the denoising strength corresponding to the first denoising strength parameter. That is to say, when the resolution required to output the image is consistent with the resolution output by the sensor, the default denoising intensity parameter, that is, the first denoising intensity parameter, can be used for image denoising processing, and with the second resolution If the ratio is reduced and the ratio ratio is increased, the image denoising strength parameter can be readjusted, and the denoising strength of the collected image can be reduced proportionally to obtain the target denoising strength such as denoise_strength=denoise_strength1/ratio, which is the target denoising strength parameter The corresponding denoising strength is inversely proportional to the ratio.

S206:使用所述目标去噪强度参数对所述采集图像进行去噪处理,输出所述去噪处理后的采集图像。S206: Perform denoising processing on the acquired image by using the target denoising intensity parameter, and output the acquired image after the denoising process.

具体实施例中,在根据当前环境光亮度值确定得到当前默认的去噪强度参数即第一去噪强度参数,并根据该第一分辨率和第二分辨率的比值对该第一去噪强度参数进行调整,获得最终的目标去噪强度参数之后,即可基于该目标去噪强度参数进行图像去噪处理,从而得到拍摄应用所需分辨率大小的图像。In a specific embodiment, the current default denoising intensity parameter, namely the first denoising intensity parameter, is determined according to the current ambient light brightness value, and the first denoising intensity parameter is determined according to the ratio of the first resolution to the second resolution. After the parameters are adjusted to obtain the final target denoising intensity parameter, image denoising processing can be performed based on the target denoising intensity parameter, so as to obtain an image with the required resolution for the shooting application.

进一步的,输出所述去噪处理后的采集图像之后,还可接收用户操作目标按键所触发的图像查看指令;输出用于提示输入待验证信息的提示信息;接收提示信息输入的待验证信息;若验证待验证信息与预设验证信息一致,则响应图像查看指令,输出图像。具体的,在终端接收到用户操作目标按键所触发的图像查看指令之后,终端可输出用于提示输入待验证信息的提示信息;并且终端可以输出用于输入待验证信息的待验证信息输入口。其中,该待校验信息可包括但不限于待验证密码、待验证指纹信息、待验证脸形信息、待验证虹膜信息、待验证视网膜信息以及待验证声纹信息中的任意一种和几种的组合。该预先设置的预设验证信息可包括但不限于预设验证密码、预设验证指纹信息、预设验证脸形信息、预设验证虹膜信息、预设验证视网膜信息以及预设验证声纹信息中的任意一种和几种的组合。Further, after outputting the captured image after the denoising process, an image viewing instruction triggered by the user operating the target button can also be received; output prompt information for prompting input of information to be verified; receive information to be verified input by the prompt information; If it is verified that the information to be verified is consistent with the preset verification information, an image is output in response to the image viewing instruction. Specifically, after the terminal receives the image viewing instruction triggered by the user operating the target key, the terminal may output prompt information for prompting input of information to be verified; and the terminal may output an information input port for input of information to be verified. Wherein, the information to be verified may include but not limited to password to be verified, fingerprint information to be verified, face shape information to be verified, iris information to be verified, retina information to be verified, and voiceprint information to be verified. combination. The preset preset verification information may include but not limited to preset verification password, preset verification fingerprint information, preset verification face shape information, preset verification iris information, preset verification retina information and preset verification voiceprint information Any one and a combination of several.

具体实施例中,上述的预设验证信息可以包括指纹串信息以及每一个指纹对应的输入时间;相应地,验证待验证信息是否与预设验证信息一致可以包括以下步骤:In a specific embodiment, the above-mentioned preset verification information may include fingerprint string information and the input time corresponding to each fingerprint; correspondingly, verifying whether the information to be verified is consistent with the preset verification information may include the following steps:

验证指纹串是否与预设验证信息包括的指纹串相同,并且相同指纹的输入时间的差值是否均小于预设值,如果验证指纹串与预设验证信息包括的指纹串相同,并且相同指纹的输入时间的差值均小于预设值,那么可以验证待验证信息与预设验证信息一致;反之,验证待验证信息与预设验证信息不一致。其中,通过实施该实施方式,可以防止非法用户在终端上随意查看终端拍摄得到的图像,从而可以有效地防止终端被非法用户肆意操作。Verify whether the fingerprint string is the same as the fingerprint string included in the preset verification information, and whether the difference between the input time of the same fingerprint is less than the preset value, if the verification fingerprint string is the same as the fingerprint string included in the preset verification information, and the same fingerprint If the difference between the input times is smaller than the preset value, it can be verified that the information to be verified is consistent with the preset verification information; otherwise, it can be verified that the information to be verified is inconsistent with the preset verification information. Wherein, by implementing this implementation manner, it is possible to prevent illegal users from arbitrarily viewing images captured by the terminal on the terminal, thereby effectively preventing the terminal from being arbitrarily operated by illegal users.

在本发明实施例中,当启动摄像头时,可通过获取当前环境光亮度值确定出默认的去噪强度参数即第一去噪强度参数,并通过计算摄像头传感器输出的第一分辨率和输出图像需要的第二分辨率的比值,基于该比值对当前采集图像的默认去噪强度参数进行调整,从而最终确定出适合当前采集图像的去噪强度参数,即能够结合输出图像所需要的分辨率大小来调整对当前图像采用的去噪强度,从而避免了输出图像所需分辨率较低时,仅根据当前环境参数确定的去噪强度对图像进行去噪处理,而导致的输出的图像画面模糊的问题,能够提升输出图像的质量,改善输出图像的画面效果。In the embodiment of the present invention, when the camera is started, the default denoising intensity parameter, namely the first denoising intensity parameter, can be determined by obtaining the current ambient light brightness value, and the first resolution output by the camera sensor and the output image The ratio of the required second resolution, based on the ratio, adjust the default denoising intensity parameters of the currently acquired image, so as to finally determine the denoising intensity parameters suitable for the currently acquired image, that is, it can be combined with the required resolution of the output image to adjust the denoising intensity used for the current image, thus avoiding the blurring of the output image due to the denoising process on the image only according to the denoising intensity determined by the current environment parameters when the required resolution of the output image is low Problems can improve the quality of the output image and improve the picture effect of the output image.

进一步的,请参阅图3,图3是本发明实施例提供的又一种基于分辨率的图像去噪方法的流程示意图。具体的,如图3所示,该基于分辨率的图像去噪方法可以包括以下步骤:Further, please refer to FIG. 3 . FIG. 3 is a schematic flowchart of another resolution-based image denoising method provided by an embodiment of the present invention. Specifically, as shown in Figure 3, the resolution-based image denoising method may include the following steps:

S301:当开启摄像头时,获取当前环境光亮度值。S301: Acquire the current ambient light brightness value when the camera is turned on.

具体的,所述当前环境光亮度值可具体为当前环境下的感光度ISO值。Specifically, the current ambient light brightness value may specifically be an ISO value of sensitivity in the current environment.

S302:获取所述摄像头的采集图像对应的第一分辨率和第二分辨率,其中,所述第一分辨率是摄像头传感器输出的分辨率,所述第二分辨率是输出所述采集图像时需要的分辨率。S302: Obtain a first resolution and a second resolution corresponding to the captured image of the camera, wherein the first resolution is the resolution output by the camera sensor, and the second resolution is the output of the captured image required resolution.

S303:从存储的参数配置列表中查找出与所述当前环境光亮度值、所述第一分辨率和所述第二分辨率对应的去噪强度参数。S303: Find a denoising intensity parameter corresponding to the current ambient light brightness value, the first resolution, and the second resolution from the stored parameter configuration list.

其中,所述参数配置列表包括不同的环境光亮度值、第一分辨率和第二分辨率的映射关系。Wherein, the parameter configuration list includes different ambient light brightness values, mapping relationships between the first resolution and the second resolution.

S304:将查找出的所述去噪强度参数确定为所述采集图像的目标去噪强度参数。S304: Determine the found out denoising intensity parameter as a target denoising intensity parameter of the acquired image.

具体实施例中,可分别获取不同的环境光亮度值、第一分辨率和第二分辨率及其对应的去噪强度参数,并将该环境光亮度值、第一分辨率和第二分辨率及其对应的去噪强度参数,以及各参数之间的映射关系存储于预置的参数配置列表中,即该参数配置列表中包括多组环境光亮度值、第一分辨率和第二分辨率以及去噪强度参数的映射关系。当获取得到当前环境光亮度值、第一分辨率和第二分辨率之后,即可将该当前环境光亮度值、第一分辨率和第二分辨率作为索引,在预置的参数配置列表中查找出与该当前环境光亮度值、第一分辨率和第二分辨率对应的去噪强度参数,从而根据该查找出的去噪强度参数对图像进行去噪处理。In a specific embodiment, different ambient light brightness values, first resolution and second resolution and their corresponding denoising intensity parameters can be obtained respectively, and the ambient light brightness values, first resolution and second resolution Its corresponding denoising intensity parameters, as well as the mapping relationship between the parameters are stored in the preset parameter configuration list, that is, the parameter configuration list includes multiple sets of ambient light brightness values, first resolution and second resolution And the mapping relationship of denoising intensity parameters. After obtaining the current ambient light brightness value, the first resolution and the second resolution, the current ambient light brightness value, the first resolution and the second resolution can be used as indexes in the preset parameter configuration list Find out the denoising intensity parameters corresponding to the current ambient light brightness value, the first resolution and the second resolution, so as to perform denoising processing on the image according to the found out denoising intensity parameters.

需要说明的是,在该参数配置列表中,可以是每一组环境光亮度值、第一分辨率和第二分辨率对应一组去噪强度参数,或者多组环境光亮度值、第一分辨率和第二分辨率对应一组去噪强度参数,本发明实施例不做限定。It should be noted that in the parameter configuration list, each set of ambient light brightness values, first resolution and second resolution can correspond to a set of denoising intensity parameters, or multiple sets of ambient light brightness values, first resolution The rate and the second resolution correspond to a set of denoising intensity parameters, which are not limited in this embodiment of the present invention.

S305:使用所述目标去噪强度参数对所述采集图像进行去噪处理,输出所述去噪处理后的采集图像。S305: Perform denoising processing on the collected image by using the target denoising intensity parameter, and output the denoising processed collected image.

在本发明实施例中,当启动摄像头时,可通过获取当前环境光亮度值、摄像头传感器输出的第一分辨率和输出图像需要的第二分辨率,并从预置的参数配置列表中查找出与该当前环境光亮度值、第一分辨率和第二分辨率对应的去噪强度参数作为对当前采集图像的去噪强度参数,即能够结合输出图像所需要的分辨率大小来确定出对当前图像采用的去噪强度,避免了输出图像所需分辨率较低时,仅根据当前环境参数确定的去噪强度对图像进行去噪处理,而导致的输出的图像画面模糊的问题,能够提升输出图像的质量,改善输出图像的画面效果。In the embodiment of the present invention, when the camera is started, the current ambient light brightness value, the first resolution output by the camera sensor, and the second resolution required by the output image can be obtained, and found from the preset parameter configuration list. The denoising intensity parameter corresponding to the current ambient light brightness value, the first resolution, and the second resolution is used as the denoising intensity parameter for the currently collected image, that is, it can be determined in combination with the resolution required for the output image to determine the current The denoising strength adopted by the image avoids the problem that the output image is blurred when the resolution required for the output image is low, and the image is denoised only according to the denoising strength determined by the current environmental parameters, which can improve the output Image quality, improve the picture effect of the output image.

请参阅图4,图4是本发明实施例提供的一种图像去噪装置的结构示意图。具体的,如图4所示,本发明实施例的所述图像去噪装置可以包括第一获取模块11、第二获取模块12、参数确定模块13以及图像处理模块14。其中,Please refer to FIG. 4 . FIG. 4 is a schematic structural diagram of an image denoising device provided by an embodiment of the present invention. Specifically, as shown in FIG. 4 , the image denoising device in the embodiment of the present invention may include a first acquisition module 11 , a second acquisition module 12 , a parameter determination module 13 and an image processing module 14 . in,

所述第一获取模块11,用于当开启摄像头时,获取当前环境光亮度值。The first acquiring module 11 is configured to acquire the current ambient light brightness value when the camera is turned on.

需要说明的是,本发明实施例的所述装置可具体设置于智能手机(如Android手机、iOS手机等)、平板电脑、MID、PAD等安装有拍摄应用的终端中。It should be noted that the device in the embodiment of the present invention can be specifically set in a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a MID, a PAD, and other terminals installed with shooting applications.

所述第二获取模块12,用于获取所述摄像头的采集图像对应的第一分辨率和第二分辨率,其中,所述第一分辨率是摄像头传感器输出的分辨率,所述第二分辨率是输出所述采集图像时需要的分辨率。The second acquisition module 12 is configured to acquire a first resolution and a second resolution corresponding to the captured image of the camera, wherein the first resolution is the resolution output by the camera sensor, and the second resolution The rate is the resolution required when outputting the captured image.

所述参数确定模块13,用于基于所述当前环境光亮度值、所述第一分辨率和所述第二分辨率,获取对所述采集图像的目标去噪强度参数。The parameter determination module 13 is configured to acquire a target denoising intensity parameter for the collected image based on the current ambient light brightness value, the first resolution, and the second resolution.

可选的,该目标去噪强度参数可以是根据该获取的当前环境光亮度值、所述第一分辨率和所述第二分辨率计算得到的。Optionally, the target denoising intensity parameter may be calculated according to the obtained current ambient light brightness value, the first resolution, and the second resolution.

可选的,该目标去噪强度参数还可以是根据存储的环境光亮度值、第一分辨率和第二分辨率与去噪强度参数之间的映射关系从预置的参数配置列表中查找出的。Optionally, the target denoising intensity parameter can also be found from a preset parameter configuration list according to the stored ambient light brightness value, the mapping relationship between the first resolution and the second resolution and the denoising intensity parameter. of.

所述图像处理模块14,用于使用所述参数确定模块13获取的所述目标去噪强度参数对所述采集图像进行去噪处理,输出所述去噪处理后的采集图像。The image processing module 14 is configured to use the target denoising intensity parameter obtained by the parameter determination module 13 to perform denoising processing on the collected image, and output the denoising processed collected image.

具体实施例中,在参数确定模块13根据该当前环境光亮度值、第一分辨率和第二分辨率获取得到目标去噪强度参数之后,图像处理模块14即可基于该目标去噪强度参数进行图像去噪处理,从而得到当前拍摄应用所需分辨率大小的图像。In a specific embodiment, after the parameter determining module 13 obtains the target denoising intensity parameter according to the current ambient light brightness value, the first resolution and the second resolution, the image processing module 14 can perform the denoising intensity parameter based on the target denoising intensity parameter. Image denoising processing, so as to obtain the image with the resolution size required by the current shooting application.

实施本发明实施例可在开启摄像头时,通过获取当前环境光亮度值、摄像头传感器输出的第一分辨率和输出图像需要的第二分辨率,来确定得到对当前采集图像的去噪强度参数,即能够结合输出图像所需要的分辨率大小来调整对当前图像采用的去噪强度,从而避免了输出图像所需分辨率较低时,仅根据当前环境参数确定的去噪强度对图像进行去噪处理,而导致的输出的图像画面模糊的问题,使得能够提升输出图像的质量,改善输出图像的画面效果。In the implementation of the embodiment of the present invention, when the camera is turned on, the denoising intensity parameter for the currently collected image can be determined by obtaining the current ambient light brightness value, the first resolution output by the camera sensor, and the second resolution required for the output image. That is, the denoising strength used for the current image can be adjusted in combination with the resolution required for the output image, thereby avoiding denoising the image only according to the denoising strength determined by the current environmental parameters when the resolution required for the output image is low The problem of blurring of the output image caused by processing can improve the quality of the output image and improve the image effect of the output image.

进一步的,请参阅图5,图5是本发明实施例提供的另一种图像去噪装置的结构示意图。具体的,如图5所示,本发明实施例的所述装置可以上述的图4的图像去噪装置的第一获取模块11、第二获取模块12、参数确定模块13以及图像处理模块14。进一步的,在本发明实施例中,所述参数确定模块13可具体包括:Further, please refer to FIG. 5 , which is a schematic structural diagram of another image denoising device provided by an embodiment of the present invention. Specifically, as shown in FIG. 5 , the device in the embodiment of the present invention may be the first acquisition module 11 , the second acquisition module 12 , the parameter determination module 13 and the image processing module 14 of the image denoising device in FIG. 4 described above. Further, in the embodiment of the present invention, the parameter determination module 13 may specifically include:

第一确定单元131,用于根据所述当前环境光亮度值,确定对所述采集图像的第一去噪强度参数;The first determining unit 131 is configured to determine a first denoising intensity parameter for the collected image according to the current ambient light brightness value;

计算单元132,用于计算所述第一分辨率和所述第二分辨率的比值;a calculation unit 132, configured to calculate a ratio between the first resolution and the second resolution;

参数调整单元133,用于根据所述计算单元132计算得到的所述比值,调整所述第一去噪强度参数,得到目标去噪强度参数。The parameter adjustment unit 133 is configured to adjust the first denoising intensity parameter according to the ratio calculated by the calculating unit 132 to obtain a target denoising intensity parameter.

具体实施例中,在用户打开拍摄应用,调用摄像头采集图像时,即可触发第一获取模块11获取当前环境光亮度值,则第一确定单元131可根据该当前环境光亮度值确定出对该采集图像的当前默认去噪强度参数,即第一去噪强度参数。In a specific embodiment, when the user opens the shooting application and invokes the camera to collect images, the first acquiring module 11 can be triggered to acquire the current ambient light brightness value, and the first determining unit 131 can determine the current ambient light brightness value according to the current ambient light brightness value. The current default denoising intensity parameter of the acquired image, that is, the first denoising intensity parameter.

可选的,所述比值可以为所述第二分辨率除以所述第一分辨率得到的商值,则所述目标去噪强度参数对应的去噪强度与所述比值成正比。Optionally, the ratio may be a quotient obtained by dividing the second resolution by the first resolution, and the denoising strength corresponding to the target denoising strength parameter is proportional to the ratio.

具体的,假设摄像头传感器sensor输出的分辨率即第一分辨率为x_output、y_output,而拍摄应用输出图像时需要的分辨率即第二分辨率为x_need、y_need,则所述比值可以为该第二分辨率除以第一分辨率得到的商值,即该比值ratio=(x_need*y_need)/(x_output*y_output)。当ratio越小,在终端的图像处理器ISP对摄像头采集的图像做抽样处理时噪点被抹得越厉害,因此,图像处理模块14对该采集图像进行去噪处理的去噪强度(denoise_strength)就应该越小。即,参数调整单元133可根据计算单元132计算出的该比值ratio来进一步调整对图像的去噪强度参数,比如参数调整单元133可根据denoise_strength1*ratio确定出目标去噪强度,其中,该denoise_strength1即为第一去噪强度参数对应的去噪强度。也就是说,当输出图像时需要的分辨率与sensor输出的分辨率一致,即拍照需要的尺寸和sensor输出尺寸相同时,参数调整单元133即可采用默认的去噪强度参数即第一去噪强度参数进行图像去噪处理,而随着该需要的分辨率的降低,比值ratio减小,参数调整单元133即可重新调整图像去噪强度参数,按比例降低对该采集图像的去噪强度,得到目标去噪强度如denoise_strength=denoise_strength1*ratio,即该目标去噪强度参数对应的去噪强度与所述比值成正比。Specifically, assuming that the resolution output by the camera sensor sensor, that is, the first resolution is x_output and y_output, and that the resolution required for capturing the output image of the application, that is, the second resolution is x_need and y_need, the ratio may be the second The quotient obtained by dividing the resolution by the first resolution, that is, the ratio ratio=(x_need*y_need)/(x_output*y_output). When the ratio is smaller, the image processor ISP of the terminal performs sampling processing on the image collected by the camera, and the noise is wiped more severely. Therefore, the denoising strength (denoise_strength) of the image processing module 14 for denoising the collected image is should be smaller. That is, the parameter adjustment unit 133 can further adjust the denoising strength parameter of the image according to the ratio ratio calculated by the calculation unit 132. For example, the parameter adjustment unit 133 can determine the target denoising strength according to denoise_strength1*ratio, wherein the denoise_strength1 is is the denoising strength corresponding to the first denoising strength parameter. That is to say, when the resolution required for outputting an image is consistent with the resolution output by the sensor, that is, when the size required for taking pictures is the same as the output size of the sensor, the parameter adjustment unit 133 can adopt the default denoising intensity parameter, that is, the first denoising The intensity parameter is used for image denoising processing, and as the required resolution decreases, the ratio ratio decreases, and the parameter adjustment unit 133 can readjust the image denoising intensity parameter, and reduce the denoising intensity of the collected image proportionally. The target denoising strength is obtained as denoise_strength=denoise_strength1*ratio, that is, the denoising strength corresponding to the target denoising strength parameter is proportional to the ratio.

可选的,所述比值还可以为所述第一分辨率除以所述第二分辨率得到的商值,则所述目标去噪强度参数对应的去噪强度与所述比值成反比。Optionally, the ratio may also be a quotient obtained by dividing the first resolution by the second resolution, and the denoising strength corresponding to the target denoising strength parameter is inversely proportional to the ratio.

具体的,该第一分辨率和第二分辨率的比值还可以是该第一分辨率除以所述第二分辨率得到的商值,即比值ratio=(x_output*y_output)/(x_need*y_need)。相应地,参数调整单元133可根据denoise_strength1/ratio确定出目标去噪强度,其中,该denoise_strength1即为第一去噪强度参数对应的去噪强度。也就是说,当输出图像时需要的分辨率与sensor输出的分辨率一致时,参数调整单元133即可采用默认的去噪强度参数即第一去噪强度参数进行图像去噪处理,而随着该第二分辨率的降低,比值ratio增大,参数调整单元133即可重新调整图像去噪强度参数,按比例降低对该采集图像的去噪强度,得到目标去噪强度如denoise_strength=denoise_strength1/ratio,即该目标去噪强度参数对应的去噪强度与所述比值成反比。Specifically, the ratio of the first resolution to the second resolution may also be the quotient obtained by dividing the first resolution by the second resolution, that is, the ratio ratio=(x_output*y_output)/(x_need*y_need ). Correspondingly, the parameter adjustment unit 133 can determine the target denoising strength according to denoise_strength1/ratio, wherein the denoise_strength1 is the denoising strength corresponding to the first denoising strength parameter. That is to say, when the resolution required to output the image is consistent with the resolution output by the sensor, the parameter adjustment unit 133 can use the default denoising intensity parameter, that is, the first denoising intensity parameter to perform image denoising processing, and as The reduction of the second resolution increases the ratio ratio, and the parameter adjustment unit 133 can readjust the image denoising strength parameter, and reduce the denoising strength of the collected image in proportion to obtain the target denoising strength such as denoise_strength=denoise_strength1/ratio , that is, the denoising strength corresponding to the target denoising strength parameter is inversely proportional to the ratio.

进一步可选的,在本发明实施例中,所述当前环境光亮度值包括当前环境的感光度ISO值;所述第一确定单元131可具体用于:Further optionally, in the embodiment of the present invention, the current ambient light brightness value includes an ISO value of the current ambient light sensitivity; the first determining unit 131 may be specifically configured to:

将所述当前环境的ISO值与存储的ISO区间中的ISO值进行比较,判断所述当前环境的ISO值是否处于所述ISO区间范围内;若所述当前环境的ISO值处于所述ISO区间范围内,则将所述ISO区间对应的去噪强度参数确定为对所述采集图像的第一去噪强度参数。Comparing the ISO value of the current environment with the ISO value in the stored ISO interval, and judging whether the ISO value of the current environment is within the range of the ISO interval; if the ISO value of the current environment is within the ISO interval range, the denoising intensity parameter corresponding to the ISO interval is determined as the first denoising intensity parameter for the acquired image.

具体实施例中,在第一确定单元131根据当前环境光亮度值确定得到当前默认的去噪强度参数即第一去噪强度参数,并在参数调整单元133根据该第一分辨率和第二分辨率的比值对该第一去噪强度参数进行调整,获得最终的目标去噪强度参数之后,图像处理模块14即可基于该目标去噪强度参数进行图像去噪处理,从而得到拍摄应用所需分辨率大小的图像。In a specific embodiment, the current default denoising intensity parameter, that is, the first denoising intensity parameter, is determined in the first determination unit 131 according to the current ambient light brightness value, and in the parameter adjustment unit 133, according to the first resolution and the second resolution The first denoising intensity parameter is adjusted by the ratio of the ratio, and after obtaining the final target denoising intensity parameter, the image processing module 14 can perform image denoising processing based on the target denoising intensity parameter, thereby obtaining the resolution required for the shooting application. rate-sized images.

在本发明实施例中,当启动摄像头时,可通过获取当前环境光亮度值确定出默认的去噪强度参数即第一去噪强度参数,并通过计算摄像头传感器输出的第一分辨率和输出图像需要的第二分辨率的比值,基于该比值对当前采集图像的默认去噪强度参数进行调整,从而最终确定出适合当前采集图像的去噪强度参数,即能够结合输出图像所需要的分辨率大小来调整对当前图像采用的去噪强度,从而避免了输出图像所需分辨率较低时,仅根据当前环境参数确定的去噪强度对图像进行去噪处理,而导致的输出的图像画面模糊的问题,能够提升输出图像的质量,改善输出图像的画面效果。In the embodiment of the present invention, when the camera is started, the default denoising intensity parameter, namely the first denoising intensity parameter, can be determined by obtaining the current ambient light brightness value, and the first resolution output by the camera sensor and the output image The ratio of the required second resolution, based on the ratio, adjust the default denoising intensity parameters of the currently acquired image, so as to finally determine the denoising intensity parameters suitable for the currently acquired image, that is, it can be combined with the required resolution of the output image to adjust the denoising intensity used for the current image, thus avoiding the blurring of the output image due to the denoising process on the image only according to the denoising intensity determined by the current environment parameters when the required resolution of the output image is low Problems can improve the quality of the output image and improve the picture effect of the output image.

进一步的,请参阅图6,图6是本发明实施例提供的另一种图像去噪装置的结构示意图。具体的,如图6所示,本发明实施例的所述装置可以上述的图4的图像去噪装置的第一获取模块11、第二获取模块12、参数确定模块13以及图像处理模块14。进一步的,在本发明实施例中,所述参数确定模块13可具体包括:Further, please refer to FIG. 6 , which is a schematic structural diagram of another image denoising device provided by an embodiment of the present invention. Specifically, as shown in FIG. 6 , the device in the embodiment of the present invention may be the first acquisition module 11 , the second acquisition module 12 , the parameter determination module 13 and the image processing module 14 of the image denoising device in FIG. 4 described above. Further, in the embodiment of the present invention, the parameter determination module 13 may specifically include:

查找单元134,用于从存储的参数配置列表中查找出与所述当前环境光亮度值、所述第一分辨率和所述第二分辨率对应的去噪强度参数,所述参数配置列表包括不同的环境光亮度值、第一分辨率和第二分辨率的映射关系;A search unit 134, configured to find the denoising intensity parameters corresponding to the current ambient light brightness value, the first resolution, and the second resolution from a stored parameter configuration list, the parameter configuration list includes The mapping relationship between different ambient light brightness values, the first resolution and the second resolution;

第二确定单元135,用于将所述查找单元134查找出的所述去噪强度参数确定为所述采集图像的目标去噪强度参数。The second determining unit 135 is configured to determine the denoising intensity parameter found by the searching unit 134 as a target denoising intensity parameter of the acquired image.

具体实施例中,该参数配置列表可预先配置得到,该参数配置列表中包括多组环境光亮度值、第一分辨率和第二分辨率以及去噪强度参数的映射关系。当第一获取模块11获取得到当前环境光亮度值,第二获取模块12获取得到第一分辨率和第二分辨率之后,查找单元134即可将该当前环境光亮度值、第一分辨率和第二分辨率作为索引,在预置的参数配置列表中查找出与该当前环境光亮度值、第一分辨率和第二分辨率对应的去噪强度参数,第二确定单元135即可将该查找出的去噪强度参数确定为对图像进行去噪处理的目标去噪强度参数。In a specific embodiment, the parameter configuration list can be pre-configured, and the parameter configuration list includes multiple sets of mapping relationships of ambient light brightness values, first resolution and second resolution, and denoising intensity parameters. After the first acquisition module 11 acquires the current ambient light brightness value, and the second acquisition module 12 acquires the first resolution and the second resolution, the search unit 134 can then obtain the current ambient light brightness value, the first resolution and the second resolution. The second resolution is used as an index, and the denoising intensity parameter corresponding to the current ambient light brightness value, the first resolution and the second resolution is found in the preset parameter configuration list, and the second determination unit 135 can set the The found denoising intensity parameter is determined as a target denoising intensity parameter for denoising the image.

需要说明的是,在该参数配置列表中,可以是每一组环境光亮度值、第一分辨率和第二分辨率对应一组去噪强度参数,或者多组环境光亮度值、第一分辨率和第二分辨率对应一组去噪强度参数,本发明实施例不做限定。It should be noted that in the parameter configuration list, each set of ambient light brightness values, first resolution and second resolution can correspond to a set of denoising intensity parameters, or multiple sets of ambient light brightness values, first resolution The rate and the second resolution correspond to a set of denoising intensity parameters, which are not limited in this embodiment of the present invention.

具体实施例中,在第二确定单元135确定得到最终的目标去噪强度参数之后,图像处理模块14即可基于该目标去噪强度参数进行图像去噪处理,从而得到拍摄应用所需分辨率大小的图像。In a specific embodiment, after the second determination unit 135 determines to obtain the final target denoising intensity parameter, the image processing module 14 can perform image denoising processing based on the target denoising intensity parameter, so as to obtain the required resolution of the shooting application Image.

在本发明实施例中,当启动摄像头时,可通过获取当前环境光亮度值、摄像头传感器输出的第一分辨率和输出图像需要的第二分辨率,并从预置的参数配置列表中查找出与该当前环境光亮度值、第一分辨率和第二分辨率对应的去噪强度参数作为对当前采集图像的去噪强度参数,即能够结合输出图像所需要的分辨率大小来确定出对当前图像采用的去噪强度,避免了输出图像所需分辨率较低时,仅根据当前环境参数确定的去噪强度对图像进行去噪处理,而导致的输出的图像画面模糊的问题,能够提升输出图像的质量,改善输出图像的画面效果。In the embodiment of the present invention, when the camera is started, the current ambient light brightness value, the first resolution output by the camera sensor, and the second resolution required by the output image can be obtained, and found from the preset parameter configuration list. The denoising intensity parameter corresponding to the current ambient light brightness value, the first resolution, and the second resolution is used as the denoising intensity parameter for the currently collected image, that is, it can be determined in combination with the resolution required for the output image to determine the current The denoising strength adopted by the image avoids the problem that the output image is blurred when the resolution required for the output image is low, and the image is denoised only according to the denoising strength determined by the current environmental parameters, which can improve the output Image quality, improve the picture effect of the output image.

请参阅图7,图7是本发明实施例提供的一种终端的结构示意图,用于执行上述的基于分辨率的图像去噪方法。如图7所示,所述终端可以包括:至少一个处理器100,至少一个输入装置200,至少一个输出装置300,存储器500等组件。其中,这些组件通过一条或多条总线400进行通信连接。本领域技术人员可以理解,图7中示出的终端的结构并不构成对本发明实施例的限定,它既可以是总线形结构,也可以是星型结构,还可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:Please refer to FIG. 7 . FIG. 7 is a schematic structural diagram of a terminal provided by an embodiment of the present invention, which is used to perform the above resolution-based image denoising method. As shown in FIG. 7 , the terminal may include: at least one processor 100 , at least one input device 200 , at least one output device 300 , a memory 500 and other components. Wherein, these components are communicatively connected through one or more buses 400 . Those skilled in the art can understand that the structure of the terminal shown in Figure 7 does not constitute a limitation to the embodiment of the present invention, it can be either a bus structure or a star structure, and it can also include more or more terminals than shown in the figure. Fewer parts, or combining certain parts, or different parts arrangements. in:

处理器100为终端的控制中心,利用各种接口和线路连接整个终端的各个部分,通过运行或执行存储在存储器500内的程序和/或模块,以及调用存储在存储器500内的数据,以执行终端的各种功能和处理数据。处理器100可以由集成电路(Integrated Circuit,简称IC)组成,例如可以由单颗封装的IC所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。举例来说,处理器100可以仅包括中央处理器(Central Processing Unit,简称CPU),也可以是CPU、数字信号处理器(digital signal processor,简称DSP)、图形处理器(Graphic Processing Unit,简称GPU)及各种控制芯片的组合。在本发明实施方式中,CPU可以是单运算核心,也可以包括多运算核心。The processor 100 is the control center of the terminal, and uses various interfaces and lines to connect various parts of the entire terminal, by running or executing programs and/or modules stored in the memory 500, and calling data stored in the memory 500 to execute Various functions of the terminal and processing data. The processor 100 may be composed of an integrated circuit (Integrated Circuit, IC for short), for example, may be composed of a single packaged IC, or may be composed of multiple packaged ICs connected with the same function or different functions. For example, the processor 100 may only include a central processing unit (Central Processing Unit, referred to as CPU), and may also be a CPU, a digital signal processor (digital signal processor, referred to as DSP), and a graphics processing unit (Graphic Processing Unit, referred to as GPU). ) and a combination of various control chips. In the embodiments of the present invention, the CPU may be a single computing core, or may include multiple computing cores.

输入装置200可以包括标准的触摸屏、键盘、摄像头等,也可以包括有线接口、无线接口等。The input device 200 may include a standard touch screen, a keyboard, a camera, etc., and may also include a wired interface, a wireless interface, and the like.

输出装置300可以包括显示屏、扬声器等,也可以包括有线接口、无线接口等。The output device 300 may include a display screen, a speaker, etc., and may also include a wired interface, a wireless interface, and the like.

存储器500可用于存储软件程序以及模块,处理器100、输入装置200以及输出装置300通过调用存储在存储器500中的软件程序以及模块,从而执行终端的各项功能应用以及实现数据处理。存储器500主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序等;数据存储区可存储根据终端的使用所创建的数据等。在本发明实施例中,操作系统可以是Android系统、iOS系统或Windows操作系统等等。The memory 500 can be used to store software programs and modules. The processor 100, the input device 200 and the output device 300 can execute various functional applications of the terminal and implement data processing by calling the software programs and modules stored in the memory 500 . The memory 500 mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system, an application program required by at least one function, etc.; the data storage area can store data created according to the use of the terminal, etc. In the embodiment of the present invention, the operating system may be an Android system, an iOS system, or a Windows operating system and the like.

具体的,处理器100调用存储在存储器500中的应用程序,用于执行以下步骤:Specifically, the processor 100 invokes the application program stored in the memory 500 to perform the following steps:

当开启摄像头时,获取当前环境光亮度值;When the camera is turned on, get the current ambient light brightness value;

获取所述摄像头的采集图像对应的第一分辨率和第二分辨率,其中,所述第一分辨率是摄像头传感器输出的分辨率,所述第二分辨率是输出所述采集图像时需要的分辨率;Obtain a first resolution and a second resolution corresponding to the captured image of the camera, wherein the first resolution is the resolution output by the camera sensor, and the second resolution is required when outputting the captured image resolution;

基于所述当前环境光亮度值、所述第一分辨率和所述第二分辨率,获取对所述采集图像的目标去噪强度参数;Acquiring a target denoising intensity parameter for the collected image based on the current ambient light brightness value, the first resolution, and the second resolution;

使用所述目标去噪强度参数对所述采集图像进行去噪处理,并通过输出装置300输出所述去噪处理后的采集图像。The acquired image is denoised using the target denoising strength parameter, and the acquired image after denoising is output through the output device 300 .

可选的,处理器100调用存储在存储器500中的应用程序执行所述基于所述当前环境光亮度值、所述第一分辨率和所述第二分辨率,获取对所述采集图像的目标去噪强度参数,具体执行以下步骤:Optionally, the processor 100 invokes an application program stored in the memory 500 to execute the step of obtaining the object of the collected image based on the current ambient light brightness value, the first resolution, and the second resolution. Denoising intensity parameters, specifically perform the following steps:

根据所述当前环境光亮度值,确定对所述采集图像的第一去噪强度参数;Determine a first denoising intensity parameter for the collected image according to the current ambient light brightness value;

计算所述第一分辨率和所述第二分辨率的比值;calculating a ratio of the first resolution to the second resolution;

根据所述比值,调整所述第一去噪强度参数,得到目标去噪强度参数。According to the ratio, the first denoising intensity parameter is adjusted to obtain a target denoising intensity parameter.

可选的,所述比值为所述第二分辨率除以所述第一分辨率得到的商值,所述目标去噪强度参数对应的去噪强度与所述比值成正比。Optionally, the ratio is a quotient obtained by dividing the second resolution by the first resolution, and the denoising strength corresponding to the target denoising strength parameter is proportional to the ratio.

可选的,所述比值为所述第一分辨率除以所述第二分辨率得到的商值,所述目标去噪强度参数对应的去噪强度与所述比值成反比。Optionally, the ratio is a quotient obtained by dividing the first resolution by the second resolution, and the denoising strength corresponding to the target denoising strength parameter is inversely proportional to the ratio.

可选的,所述当前环境光亮度值包括当前环境的感光度ISO值;处理器100调用存储在存储器500中的应用程序执行所述根据所述当前环境光亮度值,确定对所述采集图像的第一去噪强度参数,具体执行以下步骤:Optionally, the current ambient light brightness value includes the ISO value of the current ambient light sensitivity; the processor 100 invokes an application program stored in the memory 500 to execute the determination of the captured image according to the current ambient light brightness value. The first denoising intensity parameter of , specifically perform the following steps:

将所述当前环境的ISO值与存储的ISO区间中的ISO值进行比较,判断所述当前环境的ISO值是否处于所述ISO区间范围内;Comparing the ISO value of the current environment with the ISO value in the stored ISO interval, and judging whether the ISO value of the current environment is within the range of the ISO interval;

若所述当前环境的ISO值处于所述ISO区间范围内,则将所述ISO区间对应的去噪强度参数确定为对所述采集图像的第一去噪强度参数。If the ISO value of the current environment is within the range of the ISO interval, then determining a denoising intensity parameter corresponding to the ISO interval as a first denoising intensity parameter for the collected image.

可选的,处理器100调用存储在存储器500中的应用程序执行所述基于所述当前环境光亮度值、所述第一分辨率和所述第二分辨率,获取对所述采集图像的目标去噪强度参数,具体执行以下步骤:Optionally, the processor 100 invokes an application program stored in the memory 500 to execute the step of obtaining the object of the collected image based on the current ambient light brightness value, the first resolution, and the second resolution. Denoising intensity parameters, specifically perform the following steps:

从存储的参数配置列表中查找出与所述当前环境光亮度值、所述第一分辨率和所述第二分辨率对应的去噪强度参数,所述参数配置列表包括不同的环境光亮度值、第一分辨率和第二分辨率的映射关系;Find the denoising intensity parameters corresponding to the current ambient light brightness value, the first resolution and the second resolution from the stored parameter configuration list, the parameter configuration list includes different ambient light brightness values , the mapping relationship between the first resolution and the second resolution;

将查找出的所述去噪强度参数确定为所述采集图像的目标去噪强度参数。Determining the found denoising strength parameter as a target denoising strength parameter of the acquired image.

在本发明实施例中,可在开启摄像头时,通过获取当前环境光亮度值、摄像头传感器输出的第一分辨率和输出图像需要的第二分辨率,来确定得到对当前采集图像的去噪强度参数,即能够结合输出图像所需要的分辨率大小来调整对当前图像采用的去噪强度,从而避免了输出图像所需分辨率较低时,仅根据当前环境参数确定的去噪强度对图像进行去噪处理,而导致的输出的图像画面模糊的问题,使得能够提升输出图像的质量,改善输出图像的画面效果。In the embodiment of the present invention, when the camera is turned on, the denoising strength of the currently captured image can be determined by obtaining the current ambient light brightness value, the first resolution output by the camera sensor, and the second resolution required by the output image. parameters, that is, the denoising strength used for the current image can be adjusted in combination with the resolution required for the output image, thereby avoiding that when the resolution required for the output image is low, the image is only denoised according to the denoising strength determined by the current environmental parameters. The problem of blurring of the output image caused by the denoising process can improve the quality of the output image and improve the image effect of the output image.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存取存储器(Random AccessMemory,简称RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM for short).

以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosures are only preferred embodiments of the present invention, and certainly cannot limit the scope of rights of the present invention. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope of the present invention.

Claims (12)

1.一种基于分辨率的图像去噪方法,其特征在于,包括:1. A resolution-based image denoising method, characterized in that, comprising: 当开启摄像头时,获取当前环境光亮度值;When the camera is turned on, obtain the current ambient light brightness value; 获取所述摄像头的采集图像对应的第一分辨率和第二分辨率,其中,所述第一分辨率是摄像头传感器输出的分辨率,所述第二分辨率是输出所述采集图像时需要的分辨率;Obtain a first resolution and a second resolution corresponding to the captured image of the camera, wherein the first resolution is the resolution output by the camera sensor, and the second resolution is required when outputting the captured image resolution; 基于所述当前环境光亮度值、所述第一分辨率和所述第二分辨率,获取对所述采集图像的目标去噪强度参数;Acquiring a target denoising intensity parameter for the collected image based on the current ambient light brightness value, the first resolution, and the second resolution; 使用所述目标去噪强度参数对所述采集图像进行去噪处理,输出所述去噪处理后的采集图像。Using the target denoising intensity parameter to perform denoising processing on the collected image, and output the denoising processed collected image. 2.根据权利要求1所述的方法,其特征在于,所述基于所述当前环境光亮度值、所述第一分辨率和所述第二分辨率,获取对所述采集图像的目标去噪强度参数,包括:2. The method according to claim 1, wherein the target denoising of the collected image is obtained based on the current ambient light brightness value, the first resolution and the second resolution. Intensity parameters, including: 根据所述当前环境光亮度值,确定对所述采集图像的第一去噪强度参数;Determine a first denoising intensity parameter for the collected image according to the current ambient light brightness value; 计算所述第一分辨率和所述第二分辨率的比值;calculating a ratio of the first resolution to the second resolution; 根据所述比值,调整所述第一去噪强度参数,得到目标去噪强度参数。According to the ratio, the first denoising intensity parameter is adjusted to obtain a target denoising intensity parameter. 3.根据权利要求2所述的方法,其特征在于,所述比值为所述第二分辨率除以所述第一分辨率得到的商值,所述目标去噪强度参数对应的去噪强度与所述比值成正比。3. The method according to claim 2, wherein the ratio is the quotient obtained by dividing the second resolution by the first resolution, and the denoising strength corresponding to the target denoising strength parameter proportional to the ratio. 4.根据权利要求2所述的方法,其特征在于,所述比值为所述第一分辨率除以所述第二分辨率得到的商值,所述目标去噪强度参数对应的去噪强度与所述比值成反比。4. The method according to claim 2, wherein the ratio is the quotient obtained by dividing the first resolution by the second resolution, and the denoising strength corresponding to the target denoising strength parameter Inversely proportional to the ratio. 5.根据权利要求2-4任一项所述的方法,其特征在于,所述当前环境光亮度值包括当前环境的感光度ISO值;所述根据所述当前环境光亮度值,确定对所述采集图像的第一去噪强度参数,包括:5. The method according to any one of claims 2-4, characterized in that, the current ambient light brightness value comprises the sensitivity ISO value of the current environment; and according to the current ambient light brightness value, determining the Describe the first denoising intensity parameter of the collected image, including: 将所述当前环境的ISO值与存储的ISO区间中的ISO值进行比较,判断所述当前环境的ISO值是否处于所述ISO区间范围内;Comparing the ISO value of the current environment with the ISO value in the stored ISO interval, and judging whether the ISO value of the current environment is within the range of the ISO interval; 若所述当前环境的ISO值处于所述ISO区间范围内,则将所述ISO区间对应的去噪强度参数确定为对所述采集图像的第一去噪强度参数。If the ISO value of the current environment is within the range of the ISO interval, then determining a denoising intensity parameter corresponding to the ISO interval as a first denoising intensity parameter for the collected image. 6.根据权利要求1所述的方法,其特征在于,所述基于所述当前环境光亮度值、所述第一分辨率和所述第二分辨率,获取对所述采集图像的目标去噪强度参数,包括:6. The method according to claim 1, wherein the target denoising of the collected image is obtained based on the current ambient light brightness value, the first resolution and the second resolution. Intensity parameters, including: 从存储的参数配置列表中查找出与所述当前环境光亮度值、所述第一分辨率和所述第二分辨率对应的去噪强度参数,所述参数配置列表包括不同的环境光亮度值、第一分辨率和第二分辨率三者与去噪强度参数之间的映射关系;Find the denoising intensity parameters corresponding to the current ambient light brightness value, the first resolution and the second resolution from the stored parameter configuration list, the parameter configuration list includes different ambient light brightness values , the mapping relationship between the first resolution and the second resolution and the denoising intensity parameter; 将查找出的所述去噪强度参数确定为所述采集图像的目标去噪强度参数。Determining the found denoising strength parameter as a target denoising strength parameter of the acquired image. 7.一种图像去噪装置,其特征在于,包括:7. An image denoising device, characterized in that, comprising: 第一获取模块,用于当开启摄像头时,获取当前环境光亮度值;The first acquisition module is used to acquire the current ambient light brightness value when the camera is turned on; 第二获取模块,用于获取所述摄像头的采集图像对应的第一分辨率和第二分辨率,其中,所述第一分辨率是摄像头传感器输出的分辨率,所述第二分辨率是输出所述采集图像时需要的分辨率;The second acquisition module is configured to acquire the first resolution and the second resolution corresponding to the captured image of the camera, wherein the first resolution is the resolution output by the camera sensor, and the second resolution is the output The resolution required when the image is collected; 参数确定模块,用于基于所述当前环境光亮度值、所述第一分辨率和所述第二分辨率,获取对所述采集图像的目标去噪强度参数;A parameter determination module, configured to acquire a target denoising intensity parameter for the collected image based on the current ambient light brightness value, the first resolution, and the second resolution; 图像处理模块,用于使用所述参数确定模块获取的所述目标去噪强度参数对所述采集图像进行去噪处理,输出所述去噪处理后的采集图像。An image processing module, configured to use the target denoising intensity parameter acquired by the parameter determination module to perform denoising processing on the collected image, and output the denoising processed collected image. 8.根据权利要求7所述的装置,其特征在于,所述参数确定模块包括:8. The device according to claim 7, wherein the parameter determination module comprises: 第一确定单元,用于根据所述当前环境光亮度值,确定对所述采集图像的第一去噪强度参数;A first determining unit, configured to determine a first denoising intensity parameter for the collected image according to the current ambient light brightness value; 计算单元,用于计算所述第一分辨率和所述第二分辨率的比值;a calculation unit, configured to calculate a ratio between the first resolution and the second resolution; 参数调整单元,用于根据所述计算单元计算得到的所述比值,调整所述第一去噪强度参数,得到目标去噪强度参数。A parameter adjustment unit, configured to adjust the first denoising intensity parameter according to the ratio calculated by the calculating unit to obtain a target denoising intensity parameter. 9.根据权利要求8所述的装置,其特征在于,所述比值为所述第二分辨率除以所述第一分辨率得到的商值,所述目标去噪强度参数对应的去噪强度与所述比值成正比。9. The device according to claim 8, wherein the ratio is a quotient obtained by dividing the second resolution by the first resolution, and the denoising strength corresponding to the target denoising strength parameter proportional to the ratio. 10.根据权利要求8所述的装置,其特征在于,所述比值为所述第一分辨率除以所述第二分辨率得到的商值,所述目标去噪强度参数对应的去噪强度与所述比值成反比。10. The device according to claim 8, wherein the ratio is a quotient obtained by dividing the first resolution by the second resolution, and the denoising strength corresponding to the target denoising strength parameter is Inversely proportional to the ratio. 11.根据权利要求8-10任一项所述的装置,其特征在于,所述当前环境光亮度值包括当前环境的感光度ISO值;所述第一确定单元具体用于:11. The device according to any one of claims 8-10, wherein the current ambient light brightness value includes the ISO value of the current ambient light sensitivity; the first determining unit is specifically configured to: 将所述当前环境的ISO值与存储的ISO区间中的ISO值进行比较,判断所述当前环境的ISO值是否处于所述ISO区间范围内;若所述当前环境的ISO值处于所述ISO区间范围内,则将所述ISO区间对应的去噪强度参数确定为对所述采集图像的第一去噪强度参数。Comparing the ISO value of the current environment with the ISO value in the stored ISO interval, and judging whether the ISO value of the current environment is within the range of the ISO interval; if the ISO value of the current environment is within the ISO interval range, the denoising intensity parameter corresponding to the ISO interval is determined as the first denoising intensity parameter for the acquired image. 12.根据权利要求7所述的装置,其特征在于,所述参数确定模块包括:12. The device according to claim 7, wherein the parameter determination module comprises: 查找单元,用于从存储的参数配置列表中查找出与所述当前环境光亮度值、所述第一分辨率和所述第二分辨率对应的去噪强度参数,所述参数配置列表包括不同的环境光亮度值、第一分辨率和第二分辨率三者与去噪强度参数之间的映射关系;A search unit, configured to find the denoising intensity parameters corresponding to the current ambient light brightness value, the first resolution, and the second resolution from a stored parameter configuration list, the parameter configuration list including different The mapping relationship between the ambient light brightness value, the first resolution and the second resolution and the denoising intensity parameter; 第二确定单元,用于将所述查找单元查找出的所述去噪强度参数确定为所述采集图像的目标去噪强度参数。The second determining unit is configured to determine the denoising intensity parameter found by the searching unit as a target denoising intensity parameter of the acquired image.
CN201510267042.6A 2015-05-21 2015-05-21 A kind of image de-noising method and device based on resolution ratio Expired - Fee Related CN104902143B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510267042.6A CN104902143B (en) 2015-05-21 2015-05-21 A kind of image de-noising method and device based on resolution ratio

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510267042.6A CN104902143B (en) 2015-05-21 2015-05-21 A kind of image de-noising method and device based on resolution ratio

Publications (2)

Publication Number Publication Date
CN104902143A CN104902143A (en) 2015-09-09
CN104902143B true CN104902143B (en) 2018-01-19

Family

ID=54034515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510267042.6A Expired - Fee Related CN104902143B (en) 2015-05-21 2015-05-21 A kind of image de-noising method and device based on resolution ratio

Country Status (1)

Country Link
CN (1) CN104902143B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306788B (en) * 2015-10-27 2018-05-15 广东欧珀移动通信有限公司 A kind of noise-reduction method and device of image of taking pictures
CN105898151A (en) * 2015-11-15 2016-08-24 乐视移动智能信息技术(北京)有限公司 Image processing method and device
CN107635098B (en) * 2017-10-30 2019-09-10 Oppo广东移动通信有限公司 Method, device and equipment for removing high dynamic range image noise
CN110121031B (en) * 2019-06-11 2021-03-12 Oppo广东移动通信有限公司 Image acquisition method and apparatus, electronic device, computer-readable storage medium
CN110191291B (en) * 2019-06-13 2021-06-25 Oppo广东移动通信有限公司 Image processing method and device based on multi-frame images
CN110248106B (en) * 2019-06-13 2021-04-23 Oppo广东移动通信有限公司 Image noise reduction method, device, electronic device and storage medium
CN111147695B (en) * 2019-12-31 2022-05-13 Oppo广东移动通信有限公司 Image processing method, image processor, photographing device and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188773A (en) * 2006-11-24 2008-05-28 奥林巴斯映像株式会社 Camera and image processing method
CN101437103A (en) * 2007-11-16 2009-05-20 富士能株式会社 Imaging system, imaging apparatus, portable terminal apparatus, onboard apparatus, and medical apparatus, and method of manufacturing the imaging system
US7548261B2 (en) * 2004-11-30 2009-06-16 Digital Imaging Systems Gmbh Column averaging/row averaging circuit for image sensor resolution adjustment in high intensity light environment
US8106972B2 (en) * 2008-01-18 2012-01-31 Zoran Corporation Apparatus and method for noise reduction with 3D LUT

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4930109B2 (en) * 2007-03-06 2012-05-16 ソニー株式会社 Solid-state imaging device, imaging device
US7983503B2 (en) * 2007-05-25 2011-07-19 Zoran Corporation Advanced noise reduction in digital cameras

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7548261B2 (en) * 2004-11-30 2009-06-16 Digital Imaging Systems Gmbh Column averaging/row averaging circuit for image sensor resolution adjustment in high intensity light environment
CN101188773A (en) * 2006-11-24 2008-05-28 奥林巴斯映像株式会社 Camera and image processing method
CN101437103A (en) * 2007-11-16 2009-05-20 富士能株式会社 Imaging system, imaging apparatus, portable terminal apparatus, onboard apparatus, and medical apparatus, and method of manufacturing the imaging system
US8106972B2 (en) * 2008-01-18 2012-01-31 Zoran Corporation Apparatus and method for noise reduction with 3D LUT

Also Published As

Publication number Publication date
CN104902143A (en) 2015-09-09

Similar Documents

Publication Publication Date Title
CN104902143B (en) A kind of image de-noising method and device based on resolution ratio
CN109639982B (en) An image noise reduction method, device, storage medium and terminal
CN111654594B (en) Image capturing method, image capturing apparatus, mobile terminal, and storage medium
CN109741281B (en) Image processing method, image processing device, storage medium and terminal
CN110070063B (en) Target object motion recognition method and device and electronic equipment
CN110070551B (en) Video image rendering method and device and electronic equipment
CN110084204B (en) Image processing method and device based on target object posture and electronic equipment
CN109118447B (en) A picture processing method, picture processing device and terminal equipment
CN105306788B (en) A kind of noise-reduction method and device of image of taking pictures
CN107172354A (en) Method for processing video frequency, device, electronic equipment and storage medium
CN104954699B (en) A kind of acquisition parameters method to set up and user terminal
CN106488133A (en) A kind of detection method of Moving Objects and mobile terminal
CN105049732B (en) A kind of camera shooting head adjusting method and user terminal
CN105045554B (en) A kind of image display method and user terminal
CN105118019A (en) Image processing method and user terminal
CN110288553A (en) Image beautification method, device and electronic equipment
CN110069974A (en) Bloom image processing method, device and electronic equipment
CN109961452A (en) Photo processing method and device, storage medium and electronic equipment
CN105072335B (en) A kind of photographing method and user terminal
CN116917930A (en) Method and apparatus for correcting image based on image compression quality in electronic device
CN108665510B (en) Rendering method and device of continuous shooting image, storage medium and terminal
CN110618852B (en) View processing method, view processing device and terminal equipment
CN106357978B (en) Image output method, device and terminal
CN108960213A (en) Method for tracking target, device, storage medium and terminal
CN109089042B (en) Image processing method identification method, device, storage medium and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180119

CF01 Termination of patent right due to non-payment of annual fee