WO2022213372A1 - Image dehazing method and apparatus, and electronic device and computer-readable medium - Google Patents

Image dehazing method and apparatus, and electronic device and computer-readable medium Download PDF

Info

Publication number
WO2022213372A1
WO2022213372A1 PCT/CN2021/086221 CN2021086221W WO2022213372A1 WO 2022213372 A1 WO2022213372 A1 WO 2022213372A1 CN 2021086221 W CN2021086221 W CN 2021086221W WO 2022213372 A1 WO2022213372 A1 WO 2022213372A1
Authority
WO
WIPO (PCT)
Prior art keywords
parameter
function
target
image
piecewise
Prior art date
Application number
PCT/CN2021/086221
Other languages
French (fr)
Chinese (zh)
Inventor
伦朝林
卢庆博
丁蕾
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2021/086221 priority Critical patent/WO2022213372A1/en
Publication of WO2022213372A1 publication Critical patent/WO2022213372A1/en

Links

Images

Classifications

    • G06T5/73
    • G06T5/94

Definitions

  • the embodiments of the present application relate to the field of computer technologies, and in particular, to an image defogging method, apparatus, electronic device, and computer-readable medium.
  • the images and videos taken usually have poor image quality and low definition.
  • the image is usually dehazed by a dark channel dehazing algorithm.
  • the dark channel dehazing algorithm uses a single linear function to brighten the pixels larger than a certain value in a fixed way, and directly adjust the pixels smaller than a certain value to zero, which is prone to overexposure of bright details and loss of dark details in the image. situation, resulting in poor image quality.
  • the embodiments of the present application propose an image defogging method, apparatus, electronic device, and computer-readable medium, so as to solve the technical problem of poor image quality after the image is defogged in the prior art.
  • an embodiment of the present application provides an image dehazing method, including: acquiring fog intensity information of an image to be processed; based on the fog intensity information, a preset parameter set in a fog-free scene and a fog-free scene Determine the target parameter set based on the target parameter set; determine the target mapping function based on the target parameter set, and perform dehazing processing on the to-be-processed image based on the target mapping function to obtain the target image after dehazing, wherein,
  • the target mapping function is a continuous function including a plurality of piecewise functions.
  • an image defogging device including: an acquisition unit configured to acquire fog intensity information of an image to be processed; a determination unit configured to, based on the fog intensity information, preset The parameter set in the fog-free scene and the parameter set in the dense fog scene determine a target parameter set; the processing unit is configured to determine a target mapping function based on the target parameter set, and based on the target mapping function The image is dehazed to obtain a target image after dehazing, wherein the target mapping function is a continuous function including a plurality of piecewise functions.
  • embodiments of the present application provide an electronic device, including: a processor and a memory; a memory for storing program instructions; a processor for executing program instructions stored in the memory, and when the program instructions are executed, processing
  • the device is configured to perform the following steps: obtaining fog intensity information of the image to be processed; determining a target parameter set based on the fog intensity information, a preset parameter set in a fog-free scene and a parameter set in a dense fog scene; based on the target
  • the parameter set determines a target mapping function, and based on the target mapping function, the image to be processed is subjected to dehazing processing to obtain a target image after dehazing, wherein the target mapping function is a multi-segment function. Continuous function.
  • an embodiment of the present application provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, implements the method described in the first aspect.
  • the embodiments of the present application provide an image dehazing method, device, electronic device, and computer-readable medium, by acquiring fog intensity information of an image to be processed, and then based on the fog intensity information, a preset parameter set in a fog-free scene and a dense fog
  • the parameter set in the fog scene is determined
  • the target parameter set is determined
  • the target mapping function is determined based on the target parameter set, so that the image to be processed can be dehazed based on the target mapping function, and the target image after dehazing can be obtained.
  • the target mapping function is a continuous function including multiple piecewise functions, different piecewise functions can be used to process pixel values in different numerical ranges, avoiding the overexposure of bright details in the image due to the use of a single linear function. As well as a large loss of details in the shadows, the quality of the image is improved.
  • FIG. 1 is a flowchart of an embodiment of an image dehazing method according to the present application.
  • Fig. 2 is according to the graph of the target mapping function in the image dehazing method of the present application
  • FIG. 3 is a schematic structural diagram of an embodiment of an image defogging device according to the present application.
  • FIG. 4 is a schematic structural diagram of an embodiment of an electronic device according to the present application.
  • FIG. 1 shows a flowchart of an image dehazing method according to the present application.
  • the image dehazing method of the present application can be run on various electronic devices, which may include but are not limited to: servers, smart phones, tablet computers, laptop computers, vehicle-mounted computers, desktop computers, set-top boxes, wearable devices, etc. Wait.
  • the process of the image dehazing method includes the following steps:
  • Step 101 Obtain fog intensity information of the image to be processed.
  • the execution body of the image defogging method may first acquire the image to be processed.
  • the image to be processed can be captured by the above-mentioned executive body through the image acquisition device (such as a camera) installed in it, or can be stored locally in advance (such as stored in a local album), or can be obtained by the above-mentioned executive body from the Internet or other devices.
  • the image to be processed may be an image to be dehazed.
  • the above-mentioned execution body may acquire the fog intensity information of the to-be-processed image.
  • the fog intensity information can be used to indicate the fog intensity of the image, which can be a value in a preset value interval, such as a value in [0,1]. The stronger the fog, the higher the value.
  • the fog intensity information of the image to be processed can be preset by a technician, and the above-mentioned execution body can directly read it in this case.
  • the execution subject may query current weather conditions to determine fog intensity information based on the weather conditions.
  • the above-mentioned execution body can automatically detect the fog intensity of the image to be processed to obtain fog intensity information.
  • the image to be processed may be input into a pre-trained neural network for fog intensity detection to obtain a fog intensity detection result.
  • the neural network can be trained using a large number of samples and supervised learning.
  • the method for obtaining the fog intensity information may also be set to other settings as required, and is not limited to the above-mentioned ones.
  • Step 102 Determine the target parameter set based on the fog intensity information, the preset parameter set in the fog-free scene, and the parameter set in the dense fog scene.
  • a parameter set in a fog-free scene and a parameter set in a dense fog scene may be preset in the above-mentioned execution body.
  • the parameter set in the fog-free scene and the parameter set in the dense fog scene can respectively contain multiple parameters and correspond one-to-one.
  • the parameters in the two parameter sets are the parameters of the preset mapping function.
  • the mapping function can be used to characterize the correspondence between the pixel values before dehazing and the pixel values after dehazing. That is, after inputting the pixel value of a certain pixel in the image before the defogging process into the mapping function, the pixel value of the pixel after the defogging process can be obtained.
  • the mapping function is a continuous function containing multiple piecewise functions.
  • the parameters of the mapping function can be adjusted for the fog-free scene and the dense fog scene in advance to obtain the parameter set in the fog-free scene and the parameter set in the dense fog scene.
  • the image quality of the fog-free image can be compared with different parameters, and the parameters used to obtain the best image quality can be summarized into the fog-free scene. parameter set.
  • the image quality after dehazing the dense fog image with different parameters can be compared, and the parameters used to obtain the best image quality can be summarized into the dense fog scene. parameter set.
  • the above-mentioned execution subject may determine the target parameter set based on the fog intensity information, the preset parameter set in the fog-free scene, and the parameter set in the dense fog scene.
  • the target parameter set is the parameter set applicable to the current fog intensity.
  • the above-mentioned executive body may perform interpolation on the preset parameter set in the fog-free scene and the parameter set in the dense fog scene based on the fog intensity information to obtain the target parameter set.
  • the parameter set in the fog-free scene includes x 0 ', x 1 ', x 2 ', y 1 ', y 2 '
  • the parameter set in the dense fog scene includes x 0 ', x 1 '', x 2 ”, y 1 ”, y 2 ”
  • the interpolation method may adopt various interpolation methods such as linear interpolation and nonlinear interpolation, which are not limited here. Taking the interpolation of x 1 ' and x 1 ' as an example, if the fog intensity information is represented as M, then x 1 can be x 1 '+M(x 1 ''-x 1 ').
  • Step 103 Determine a target mapping function based on the target parameter set, and perform dehazing processing on the image to be processed based on the target mapping function to obtain a target image after dehazing.
  • a preset mapping function may be stored in the above-mentioned execution body.
  • a mapping function is a continuous function containing multiple piecewise functions, which contain multiple parameters. Depending on the fog intensity, the parameters used by the mapping function can be different.
  • the above-mentioned execution body may use a preset mapping function using target parameters as the target mapping function, and thus, the target mapping function is also a continuous function including a plurality of segment functions.
  • the above-mentioned execution body may perform dehazing processing on the to-be-processed image based on the target mapping function to obtain the target image after dehazing.
  • each piecewise function may correspond to a pixel value interval.
  • the above-mentioned execution body may determine a piecewise function for processing the pixel according to the pixel value of the pixel, so as to input the pixel value into the piecewise function to obtain the pixel The new pixel value of the point. After performing the above operations on all pixels, the target image after dehazing can be obtained.
  • the target mapping function may include a first piecewise function.
  • the target parameter set may include a first parameter (which can be marked as x 0 ), the first parameter is a positive number smaller than the target value, and the target value is determined based on the ambient light brightness value (which can be marked as A) and the transmittance (which can be marked as t) .
  • the ambient light brightness value and transmittance are commonly used parameters in the dark channel dehazing algorithm, and will not be described here.
  • the above-mentioned execution body may adjust the pixel values in the image to be processed that are less than or equal to the first parameter based on the first piecewise function.
  • the first piecewise function may be a constant (eg, 0), and the target value may be A(1-t), where 0 ⁇ x 0 ⁇ A(1-t). If a certain pixel value of the image to be processed is less than x 0 , the pixel value can be adjusted to a constant (eg, 0).
  • the conventional dark channel dehazing algorithm usually directly adjusts the pixel value less than A(1-t) to 0, the conventional dark channel dehazing algorithm is prone to the loss of a large number of dark details in the image. In this implementation manner, since x 0 ⁇ A(1-t), fewer pixel values are adjusted to 0, so that more dark details are protected, thereby improving the image quality after dehazing.
  • the target mapping function may further include a second piecewise function.
  • the second piecewise function may be a monotonically increasing function (eg, a monotonically increasing linear function or a monotonically increasing nonlinear function).
  • the target parameter set also includes a second parameter (may be denoted as x 1 ), and the second parameter may be greater than the first parameter (x 0 ) and smaller than the ambient light brightness value A, ie A(1-t) ⁇ x 1 ⁇ A.
  • the above-mentioned execution body may adjust the pixel value (denoted as x) in the image to be processed that is larger than the first parameter and smaller than the second parameter based on the second piecewise function. That is, when x 0 ⁇ x ⁇ x 1 , use the second piecewise function to adjust x to obtain the adjusted pixel value (denoted as y).
  • the target parameter set further includes a third parameter (which may be denoted as y 1 ), and the third parameter is a positive number smaller than the ambient light brightness value A, that is, y 1 ⁇ A.
  • the second piecewise function may be a linear function, and the slope of the second piecewise function is determined based on the first parameter, the second parameter and the third parameter.
  • the second piecewise function can be:
  • the conventional dark channel dehazing algorithm usually directly adjusts the pixel value less than A(1-t) to 0, the conventional dark channel dehazing algorithm is prone to the loss of a large number of dark details in the image.
  • x 0 ⁇ A(1-t) the pixel values in the range of (x 0 , A(1-t)) are all adjusted to a number greater than 0, so that fewer pixel values are adjusted to 0, so that more dark details are protected, thereby improving the image quality after dehazing.
  • the target mapping function further includes a third piecewise function
  • the third piecewise function may be a monotonically increasing function (such as a monotonically increasing linear function or a monotonically increasing nonlinear function) .
  • the above-mentioned execution body may adjust the pixel value (may be denoted as x) in the image to be processed that is greater than or equal to the second parameter x 1 and less than or equal to the ambient light brightness value A based on the third piecewise function. That is, if x 1 ⁇ x ⁇ A, use the third piecewise function to adjust x to obtain the adjusted pixel value (denoted as y).
  • the third piecewise function may be a linear function, and the slope of the third piecewise function may be determined based on the transmittance, such as directly using the slope 1/t of the mapping function in the conventional dark channel dehazing algorithm, at this time , the second piecewise function can be:
  • the target mapping function further includes a fourth piecewise function
  • the fourth piecewise function is a monotonically increasing function (eg, a monotonically increasing linear function or a monotonically increasing nonlinear function).
  • the above-mentioned execution body may adjust the pixel value (which may be denoted as x) in the image to be processed that is greater than the ambient light brightness value A based on the fourth piecewise function. That is, if x>A, use the fourth piecewise function to adjust x to obtain the adjusted pixel value (denoted as y).
  • the target parameter set further includes a fifth parameter (denoted as x 2 ) and a sixth parameter (denoted as y 2 ).
  • the fifth parameter is greater than the ambient light brightness value A and smaller than the maximum pixel value (eg, 255).
  • the six parameter is less than or equal to the maximum pixel value (eg 255). That is, A ⁇ x 2 ⁇ 255, and y 2 ⁇ 255.
  • the fourth piecewise function may be a linear function, and the slope of the fourth piecewise function may be smaller than the slope (eg, 1/t) adopted by the conventional dark channel dehazing algorithm. Specifically, the slope of the fourth piecewise function may be determined based on the fifth parameter, the sixth parameter and the ambient light brightness value, and the fourth piecewise function may be:
  • the conventional dark channel dehazing algorithm usually directly adjusts the pixel value x greater than A to A+(x-A)/t, it is easy to adjust the pixel value greater than A to the maximum value of 255, resulting in overexposure of bright details in the image.
  • the slope of the fourth piecewise function is less than 1/t, for pixel values greater than A, the adjusted value can be reduced, so that more bright details can be protected, thereby further improving the dehazing process. post image quality.
  • FIG. 2 shows a graph of an object mapping function in an image dehazing method according to the present application.
  • the graph of the target mapping function includes four parts, corresponding to the first piecewise function, the second piecewise function, the third piecewise function and the fourth piecewise function respectively.
  • the horizontal axis represents the original pixel value
  • the vertical axis represents the pixel value after dehazing.
  • the target mapping function is as follows:
  • the target mapping function may also use other functional forms that can achieve similar functions, such as multi-segment linear mapping functions, smooth curve functions, etc., which are not specifically limited in this embodiment of the present application.
  • the fog intensity information of the image to be processed is obtained, and then the target parameter set is determined based on the fog intensity information, a preset parameter set in a fog-free scene, and a parameter set in a dense fog scene , and then determine the target mapping function based on the target parameter set, so that the image to be processed can be dehazed based on the target mapping function, and the target image after dehazing can be obtained.
  • the target mapping function is a continuous function including multiple piecewise functions, different piecewise functions can be used to process pixel values in different numerical ranges, avoiding the overexposure of bright details in the image due to the use of a single linear function. As well as a large loss of details in the shadows, the quality of the image is improved.
  • the present application provides an embodiment of an image defogging apparatus, and the apparatus embodiment corresponds to the method embodiment shown in FIG. 1 .
  • the electronic device can be among various electronic devices.
  • the above-mentioned image defogging apparatus 300 in this embodiment includes: an acquiring unit 301 configured to acquire fog intensity information of an image to be processed; a determining unit 302 configured to, based on the above fog intensity information, a preset The parameter set in the fog-free scene and the parameter set in the dense fog scene determine the target parameter set; the processing unit 303 is configured to determine the target mapping function based on the above target parameter set, and based on the above target mapping function. Dehazing is performed to obtain a target image after dehazing, wherein the target mapping function is a continuous function including a plurality of piecewise functions.
  • the target mapping function includes a first piecewise function, the first piecewise function is a constant, the target parameter set includes a first parameter, and the first parameter is smaller than the target value
  • the above-mentioned target value is determined based on the brightness value of the ambient light and the transmittance; the above-mentioned processing unit is further configured to: based on the above-mentioned first piecewise function, the pixel values in the above-mentioned to-be-processed image that are less than or equal to the above-mentioned first parameter are processed. Adjustment.
  • the foregoing first piecewise function is a constant.
  • the target mapping function further includes a second piecewise function, the second piecewise function is a monotonically increasing function, the target parameter set further includes a second parameter, and the second parameter Greater than the first parameter and less than the ambient light brightness value;
  • the processing unit is further configured to: based on the second piecewise function, the pixel values in the to-be-processed image that are greater than the first parameter and less than the second parameter are processed. Adjustment.
  • the target parameter set further includes a third parameter, and the third parameter is a positive number smaller than the ambient light brightness value; the second piecewise function is a linear function, and the third parameter is a linear function.
  • the slope of the bipartite function is determined based on the aforementioned first parameter, the aforementioned second parameter, and the aforementioned third parameter.
  • the above-mentioned target mapping function further includes a third piecewise function, and the above-mentioned third piecewise function is a monotonically increasing function; the above-mentioned processing unit is further configured to: based on the above-mentioned third The piecewise function adjusts pixel values in the image to be processed that are greater than or equal to the second parameter and less than or equal to the ambient light brightness value.
  • the third piecewise function is a linear function, and the slope of the third piecewise function is determined based on the transmittance.
  • the above-mentioned target mapping function further includes a fourth piecewise function, and the above-mentioned fourth piecewise function is a monotonically increasing function; the above-mentioned processing unit is further configured to: based on the above-mentioned fourth The piecewise function adjusts pixel values in the image to be processed that are greater than the ambient light brightness value.
  • the target parameter set further includes a fifth parameter and a sixth parameter, the fifth parameter is greater than the ambient light brightness value and less than the maximum pixel value, and the sixth parameter is less than or equal to The above-mentioned maximum pixel value; the above-mentioned fourth piecewise function is a linear function, and the slope of the above-mentioned fourth piecewise function is determined based on the above-mentioned fifth parameter, the above-mentioned sixth parameter and the above-mentioned ambient light brightness value.
  • the above determining unit is further configured to: perform interpolation on a preset parameter set in a fog-free scene and a parameter set in a dense fog scene based on the above fog intensity information, Get the target parameter set.
  • the image defogging device obtained by the above-mentioned embodiments of the present application obtains the fog intensity information of the image to be processed, and then determines the fog intensity information based on the fog intensity information, the preset parameter set in the fog-free scene and the parameter set in the dense fog scene.
  • a target parameter set, and then a target mapping function is determined based on the target parameter set, so that the image to be processed can be dehazed based on the target mapping function, and a dehazed target image can be obtained.
  • the target mapping function is a continuous function including multiple piecewise functions, different piecewise functions can be used to process pixel values in different numerical ranges, avoiding the overexposure of bright details in the image due to the use of a single linear function. As well as a large loss of details in the shadows, the quality of the image is improved.
  • the present application provides an embodiment of an electronic device, which corresponds to the method embodiment shown in Fig. 1 .
  • the electronic device may include: a processor 401 and a memory 402 .
  • the above-mentioned memory 401 can be used to store program instructions.
  • the above-mentioned processor 402 can be used to execute the program instructions stored in the above-mentioned memory.
  • the above-mentioned processor can be used to perform the following steps: obtaining fog intensity information of the image to be processed; The parameter set in the fog-free scene and the parameter set in the dense fog scene are determined, and the target parameter set is determined; the target mapping function is determined based on the above target parameter set, and the image to be processed is dehazed based on the above target mapping function.
  • the target mapping function includes a first piecewise function, the first piecewise function is a constant, the target parameter set includes a first parameter, and the first parameter is smaller than the target value
  • the above-mentioned target value is determined based on the ambient light brightness value and transmittance; the above-mentioned processor is further configured to perform the following steps: based on the above-mentioned first piecewise function, the pixel value in the above-mentioned to-be-processed image that is less than or equal to the above-mentioned first parameter is determined. make adjustments.
  • the foregoing first piecewise function is a constant.
  • the target mapping function further includes a second piecewise function, the second piecewise function is a monotonically increasing function, the target parameter set further includes a second parameter, and the second parameter greater than the first parameter and less than the ambient light brightness value;
  • the processor is further configured to perform the following steps: based on the second piecewise function, the pixel value in the image to be processed that is greater than the first parameter and less than the second parameter is analyzed. make adjustments.
  • the target parameter set further includes a third parameter, and the third parameter is a positive number smaller than the ambient light brightness value; the second piecewise function is a linear function, and the third parameter is a linear function.
  • the slope of the bipartite function is determined based on the aforementioned first parameter, the aforementioned second parameter, and the aforementioned third parameter.
  • the above-mentioned target mapping function further includes a third piecewise function, and the above-mentioned third piecewise function is a monotonically increasing function; the above-mentioned processor is further configured to perform the following steps: based on the above-mentioned first The three-piece function adjusts the pixel values in the image to be processed that are greater than or equal to the second parameter and less than or equal to the ambient light brightness value.
  • the third piecewise function is a linear function, and the slope of the third piecewise function is determined based on the transmittance.
  • the above-mentioned target mapping function further includes a fourth piecewise function, and the above-mentioned fourth piecewise function is a monotonically increasing function; the above-mentioned processor is further configured to perform the following steps: based on the above-mentioned first The four-segment function adjusts the pixel values in the image to be processed that are greater than the ambient light brightness value.
  • the target parameter set further includes a fifth parameter and a sixth parameter, the fifth parameter is greater than the ambient light brightness value and less than the maximum pixel value, and the sixth parameter is less than or equal to The above-mentioned maximum pixel value; the above-mentioned fourth piecewise function is a linear function, and the slope of the above-mentioned fourth piecewise function is determined based on the above-mentioned fifth parameter, the above-mentioned sixth parameter and the above-mentioned ambient light brightness value.
  • the above-mentioned processor is further configured to perform the following steps: based on the above-mentioned fog intensity information, perform interpolation on a preset parameter set in a fog-free scene and a parameter set in a dense fog scene , get the target parameter set.
  • the electronic device obtained by the above-mentioned embodiments of the present application obtains the fog intensity information of the image to be processed, and then determines the target based on the fog intensity information, the preset parameter set in the fog-free scene and the parameter set in the dense fog scene parameter set, and then determine the target mapping function based on the target parameter set, so that the image to be processed can be dehazed based on the target mapping function, and the target image after dehazing can be obtained.
  • the target mapping function is a continuous function including multiple piecewise functions, different piecewise functions can be used to process pixel values in different numerical ranges, avoiding the overexposure of bright details in the image due to the use of a single linear function. As well as a large loss of details in the shadows, the quality of the image is improved.
  • an electronic device can be either a processing chip or a processing unit in the device, or a product, such as a camera, a mobile phone, or a camera-equipped gimbal, drone, or unmanned vehicle.
  • a processing chip or a processing unit in the device or a product, such as a camera, a mobile phone, or a camera-equipped gimbal, drone, or unmanned vehicle.
  • the electronic device is not specifically limited here.
  • the description is relatively simple, and for related parts, please refer to the partial description of the method embodiment.
  • Embodiments of the present application further provide a computer-readable medium, where a computer program is stored on the computer-readable medium.
  • a computer program is stored on the computer-readable medium.
  • the computer program is executed by a processor, each process of the above-mentioned embodiments of the image dehazing method can be achieved, and the same technology can be achieved. Effect.
  • the computer program is executed by the processor, each process of the embodiments of the above-mentioned methods is implemented, which will not be repeated here.
  • the embodiments of the present application may be provided as a method, an apparatus, or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-readable media having computer-usable program code embodied therein, including but not limited to disk storage, CD-ROM, optical storage, and the like.
  • These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal equipment to operate in a particular manner, such that the instructions stored in the computer readable memory result in an article of manufacture comprising instruction means, the The instruction means implement the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.

Abstract

Disclosed in the embodiments of the present application are an image dehazing method and apparatus, and an electronic device and a computer-readable medium. The method comprises: acquiring haze intensity information of an image to be processed; determining a target parameter set on the basis of the haze intensity information, a preset parameter set in a haze-free scenario, and a parameter set in a dense haze scenario; and determining a target mapping function on the basis of the target parameter set, and performing, on the basis of the target mapping function, dehazing processing on the image to be processed, so as to obtain a dehazed target image, wherein the target mapping function is a continuous function comprising multiple piecewise functions. By means of the implementation, the image quality after dehazing processing is performed is improved.

Description

图像去雾方法、装置、电子设备和计算机可读介质Image dehazing method, apparatus, electronic device and computer readable medium 技术领域technical field
本申请实施例涉及计算机技术领域,具体涉及图像去雾方法、装置、电子设备和计算机可读介质。The embodiments of the present application relate to the field of computer technologies, and in particular, to an image defogging method, apparatus, electronic device, and computer-readable medium.
背景技术Background technique
在有雾天气或者雾霾天气时,所拍摄的图像和视频通常出现图像质量差、清晰度低的现象。为改善图像的质量、提高图像的清晰度,通常需要对图像进行去雾处理。In foggy or hazy weather, the images and videos taken usually have poor image quality and low definition. In order to improve the quality of the image and improve the definition of the image, it is usually necessary to dehaze the image.
现有技术中,通常通过暗通道去雾算法对图像进行去雾处理。暗通道去雾算法采用单一的线性函数将大于特定值的像素以固定方式调亮,并将小于特定值的像素直接调整为零,易出现图像中的亮部细节过曝以及暗部细节大量丢失的情况,导致图像画质较差。In the prior art, the image is usually dehazed by a dark channel dehazing algorithm. The dark channel dehazing algorithm uses a single linear function to brighten the pixels larger than a certain value in a fixed way, and directly adjust the pixels smaller than a certain value to zero, which is prone to overexposure of bright details and loss of dark details in the image. situation, resulting in poor image quality.
发明内容SUMMARY OF THE INVENTION
本申请实施例提出了图像去雾方法、装置、电子设备和计算机可读介质,以解决现有技术中对图像进行去雾处理后图像画质较差的技术问题。The embodiments of the present application propose an image defogging method, apparatus, electronic device, and computer-readable medium, so as to solve the technical problem of poor image quality after the image is defogged in the prior art.
第一方面,本申请实施例提供了一种图像去雾方法,包括:获取待处理图像的雾气强度信息;基于所述雾气强度信息、预设的无雾场景下的参数集和浓雾场景下的参数集,确定目标参数集;基于所述目标参数集确定目标映射函数,并基于所述目标映射函数对所述待处理图像进行去雾处理,得到去雾后处理后的目标图像,其中,所述目标映射函数为包含多个分段函数的连续函数。In a first aspect, an embodiment of the present application provides an image dehazing method, including: acquiring fog intensity information of an image to be processed; based on the fog intensity information, a preset parameter set in a fog-free scene and a fog-free scene Determine the target parameter set based on the target parameter set; determine the target mapping function based on the target parameter set, and perform dehazing processing on the to-be-processed image based on the target mapping function to obtain the target image after dehazing, wherein, The target mapping function is a continuous function including a plurality of piecewise functions.
第二方面,本申请实施例提供了一种图像去雾装置,包括:获取单元,被配置成获取待处理图像的雾气强度信息;确定单元,被配置成基于所述雾气强度信息、预设的无雾场景下的参数集和浓雾场景下的参数集,确定目标参数集;处理单元,被配置成基于所述目标参数集确定目标映射函数,并基于所述目标映射函数对所述待处理图像进行去雾处理, 得到去雾后处理后的目标图像,其中,所述目标映射函数为包含多个分段函数的连续函数。In a second aspect, embodiments of the present application provide an image defogging device, including: an acquisition unit configured to acquire fog intensity information of an image to be processed; a determination unit configured to, based on the fog intensity information, preset The parameter set in the fog-free scene and the parameter set in the dense fog scene determine a target parameter set; the processing unit is configured to determine a target mapping function based on the target parameter set, and based on the target mapping function The image is dehazed to obtain a target image after dehazing, wherein the target mapping function is a continuous function including a plurality of piecewise functions.
第三方面,本申请实施例提供了一种电子设备,包括:处理器和存储器;存储器,用于存储程序指令;处理器,用于执行存储器存储的程序指令,当程序指令被执行时,处理器用于执行如下步骤:获取待处理图像的雾气强度信息;基于所述雾气强度信息、预设的无雾场景下的参数集和浓雾场景下的参数集,确定目标参数集;基于所述目标参数集确定目标映射函数,并基于所述目标映射函数对所述待处理图像进行去雾处理,得到去雾后处理后的目标图像,其中,所述目标映射函数为包含多个分段函数的连续函数。In a third aspect, embodiments of the present application provide an electronic device, including: a processor and a memory; a memory for storing program instructions; a processor for executing program instructions stored in the memory, and when the program instructions are executed, processing The device is configured to perform the following steps: obtaining fog intensity information of the image to be processed; determining a target parameter set based on the fog intensity information, a preset parameter set in a fog-free scene and a parameter set in a dense fog scene; based on the target The parameter set determines a target mapping function, and based on the target mapping function, the image to be processed is subjected to dehazing processing to obtain a target image after dehazing, wherein the target mapping function is a multi-segment function. Continuous function.
第四方面,本申请实施例提供了一种计算机可读介质,其上存储有计算机程序,该程序被处理器执行时实现如第一方面所描述的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, implements the method described in the first aspect.
本申请实施例提供了图像去雾方法、装置、电子设备和计算机可读介质,通过获取待处理图像的雾气强度信息,而后基于该雾气强度信息、预设的无雾场景下的参数集和浓雾场景下的参数集,确定目标参数集,之后基于目标参数集确定目标映射函数,从而能够基于目标映射函数对待处理图像进行去雾处理,得到去雾后处理后的目标图像。由于目标映射函数为包含多个分段函数的连续函数,因此可对位于不同数值区间的像素值采用不同的分段函数进行处理,避免了因使用单一线性函数导致图像中的亮部细节过曝以及暗部细节大量丢失的情形,由此提升了图像的画质。The embodiments of the present application provide an image dehazing method, device, electronic device, and computer-readable medium, by acquiring fog intensity information of an image to be processed, and then based on the fog intensity information, a preset parameter set in a fog-free scene and a dense fog The parameter set in the fog scene is determined, the target parameter set is determined, and then the target mapping function is determined based on the target parameter set, so that the image to be processed can be dehazed based on the target mapping function, and the target image after dehazing can be obtained. Since the target mapping function is a continuous function including multiple piecewise functions, different piecewise functions can be used to process pixel values in different numerical ranges, avoiding the overexposure of bright details in the image due to the use of a single linear function. As well as a large loss of details in the shadows, the quality of the image is improved.
附图说明Description of drawings
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
图1是根据本申请的图像去雾方法的一个实施例的流程图;1 is a flowchart of an embodiment of an image dehazing method according to the present application;
图2是根据本申请的图像去雾方法中的目标映射函数的曲线图;Fig. 2 is according to the graph of the target mapping function in the image dehazing method of the present application;
图3是根据本申请的图像去雾装置的一个实施例的结构示意图;3 is a schematic structural diagram of an embodiment of an image defogging device according to the present application;
图4是根据本申请的电子设备的一个实施例的结构示意图。FIG. 4 is a schematic structural diagram of an embodiment of an electronic device according to the present application.
具体实施例specific embodiment
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the related invention, but not to limit the invention. In addition, it should be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
请参考图1,其示出了根据本申请的图像去雾方法的流程图。本申请的图像去雾方法可运行于各种电子设备,上述电子设备可以包括但不限于:服务器、智能手机、平板电脑、膝上型便携计算机、车载电脑、台式计算机、机顶盒、可穿戴设备等等。Please refer to FIG. 1 , which shows a flowchart of an image dehazing method according to the present application. The image dehazing method of the present application can be run on various electronic devices, which may include but are not limited to: servers, smart phones, tablet computers, laptop computers, vehicle-mounted computers, desktop computers, set-top boxes, wearable devices, etc. Wait.
该图像去雾方法的流程包括以下步骤:The process of the image dehazing method includes the following steps:
步骤101,获取待处理图像的雾气强度信息。Step 101: Obtain fog intensity information of the image to be processed.
在本实施例中,图像去雾方法的执行主体(如上述电子设备)可以首先获取待处理图像。待处理图像可以由上述执行主体通过其所安装的图像采集装置(如摄像头)拍摄获取,也可以预先存储于本地(如存储于本地相册中),还可以由上述执行主体从互联网或其他设备中获取。待处理图像可以是待进行去雾处理的图像。In this embodiment, the execution body of the image defogging method (such as the above-mentioned electronic device) may first acquire the image to be processed. The image to be processed can be captured by the above-mentioned executive body through the image acquisition device (such as a camera) installed in it, or can be stored locally in advance (such as stored in a local album), or can be obtained by the above-mentioned executive body from the Internet or other devices. Obtain. The image to be processed may be an image to be dehazed.
在获取到待处理图像后,上述执行主体可以获取待处理图像的雾气强度信息。雾气强度信息可用于指示图像的雾气强度,其可以是预设数值区间中的数值,如[0,1]中的数值。雾气越强,该数值越大。After acquiring the to-be-processed image, the above-mentioned execution body may acquire the fog intensity information of the to-be-processed image. The fog intensity information can be used to indicate the fog intensity of the image, which can be a value in a preset value interval, such as a value in [0,1]. The stronger the fog, the higher the value.
在一些场景中,待处理图像的雾气强度信息可通过技术人员预先设定,此时上述执行主体直接读取即可。In some scenarios, the fog intensity information of the image to be processed can be preset by a technician, and the above-mentioned execution body can directly read it in this case.
在另一些场景中,若待处理图像为上述执行主体通过其所安装的图像采集装置拍摄的图像,则上述执行主体可以查询当前天气情况,以基于天气情况确定出雾气强度信息。In other scenarios, if the image to be processed is an image captured by the execution subject through the image acquisition device installed therein, the execution subject may query current weather conditions to determine fog intensity information based on the weather conditions.
在另一些场景中,上述执行主体可以自动检测待处理图像的雾气强度,得到雾气强度信息。例如,可以将待处理图像输入至预先训练的用于进行雾气强度检测的神经网络,得到雾气强度的检测结果。其中,该神经网络可使用大量样本并采用有监督学习方式训练得到。In other scenarios, the above-mentioned execution body can automatically detect the fog intensity of the image to be processed to obtain fog intensity information. For example, the image to be processed may be input into a pre-trained neural network for fog intensity detection to obtain a fog intensity detection result. Among them, the neural network can be trained using a large number of samples and supervised learning.
需要说明的是,雾气强度信息的获取方法还可以根据需要进行其他设定,不限于上述列举。It should be noted that the method for obtaining the fog intensity information may also be set to other settings as required, and is not limited to the above-mentioned ones.
步骤102,基于雾气强度信息、预设的无雾场景下的参数集和浓雾场景下的参数集,确定目标参数集。Step 102: Determine the target parameter set based on the fog intensity information, the preset parameter set in the fog-free scene, and the parameter set in the dense fog scene.
在本实施例中,上述执行主体中可以预先设置有无雾场景下的参数集和浓雾场景下的参数集。无雾场景下的参数集和浓雾场景下的参数集中可分别包含多个参数且一一对应。两个参数集中的参数均为预先设定的映射函数的参数。映射函数可用于表征去雾处理前的像素值与去雾处理后的像素值的对应关系。即,将去雾处理前的图像中的某一像素点的像素值输入至映射函数后,即可得到去雾处理后的该像素点的像素值。此处,映射函数为包含多个分段函数的连续函数。In this embodiment, a parameter set in a fog-free scene and a parameter set in a dense fog scene may be preset in the above-mentioned execution body. The parameter set in the fog-free scene and the parameter set in the dense fog scene can respectively contain multiple parameters and correspond one-to-one. The parameters in the two parameter sets are the parameters of the preset mapping function. The mapping function can be used to characterize the correspondence between the pixel values before dehazing and the pixel values after dehazing. That is, after inputting the pixel value of a certain pixel in the image before the defogging process into the mapping function, the pixel value of the pixel after the defogging process can be obtained. Here, the mapping function is a continuous function containing multiple piecewise functions.
实践中,可预先分别针对无雾场景和浓雾场景,对映射函数的调参,以得到无雾场景下的参数集和浓雾场景下的参数集。作为示例,对于无雾场景,在调参过程中,可比对采用不同参数对无雾图像进行去雾处理后的图像画质,将得到最优画质时所采用的参数汇总成为无雾场景下的参数集。同理,对于浓雾场景,在调参过程中,可比对采用不同参数对浓雾图像进行去雾处理后的图像画质,将得到最优画质时所采用的参数汇总成为浓雾场景下的参数集。In practice, the parameters of the mapping function can be adjusted for the fog-free scene and the dense fog scene in advance to obtain the parameter set in the fog-free scene and the parameter set in the dense fog scene. As an example, for a fog-free scene, during the parameter adjustment process, the image quality of the fog-free image can be compared with different parameters, and the parameters used to obtain the best image quality can be summarized into the fog-free scene. parameter set. Similarly, for dense fog scenes, in the process of parameter adjustment, the image quality after dehazing the dense fog image with different parameters can be compared, and the parameters used to obtain the best image quality can be summarized into the dense fog scene. parameter set.
在本实施例中,上述执行主体可以基于雾气强度信息、预设的无雾场景下的参数集和浓雾场景下的参数集,确定目标参数集。目标参数集即为适用于当前的雾气强度的参数集。In this embodiment, the above-mentioned execution subject may determine the target parameter set based on the fog intensity information, the preset parameter set in the fog-free scene, and the parameter set in the dense fog scene. The target parameter set is the parameter set applicable to the current fog intensity.
在一些可选的实现方式中,上述执行主体可以基于雾气强度信息,对预设的无雾场景下的参数集和浓雾场景下的参数集进行插值,得到目标参数集。作为示例,若无雾场景下的参数集包括x 0’、x 1’、x 2’、y 1’、y 2’,浓雾场景下的参数集中包括x 0”、x 1”、x 2”、y 1”、y 2”,则可以基于雾气强度信息、x 0’和x 0”进行插值,得到x 0;基于雾气强度信息、x 1’和x 1”进行插值,得到x 1;基于雾气强度信息、x 2’和x 2”进行插值,得到x 2;基于雾气强度信息、y 1’和y 1”进行插值,得到y 1;基于雾气强度信息、y 2’和y 2”进行插值,得到y 2In some optional implementation manners, the above-mentioned executive body may perform interpolation on the preset parameter set in the fog-free scene and the parameter set in the dense fog scene based on the fog intensity information to obtain the target parameter set. As an example, if the parameter set in the fog-free scene includes x 0 ', x 1 ', x 2 ', y 1 ', y 2 ', the parameter set in the dense fog scene includes x 0 ', x 1 '', x 2 ”, y 1 ”, y 2 ”, then you can interpolate based on the fog intensity information, x 0 ' and x 0 ” to obtain x 0 ; perform interpolation based on the fog intensity information, x 1 ' and x 1 ” to obtain x 1 ; Interpolate based on the fog intensity information, x 2 ' and x 2 ″ to obtain x 2 ; perform interpolation based on the fog intensity information, y 1 ' and y 1 ″ to obtain y 1 ; Based on the fog intensity information, y 2 ' and y 2 ″ Interpolate to get y 2 .
其中,插值方式可采用线性插值、非线性插值等各种插值方式,此 处不作限定。以对x 1’和x 1”进行插值为例,若雾气强度信息表示为M,则x 1可以为x 1’+M(x 1”-x 1’)。 The interpolation method may adopt various interpolation methods such as linear interpolation and nonlinear interpolation, which are not limited here. Taking the interpolation of x 1 ' and x 1 ' as an example, if the fog intensity information is represented as M, then x 1 can be x 1 '+M(x 1 ''-x 1 ').
步骤103,基于目标参数集确定目标映射函数,并基于目标映射函数对待处理图像进行去雾处理,得到去雾后处理后的目标图像。Step 103: Determine a target mapping function based on the target parameter set, and perform dehazing processing on the image to be processed based on the target mapping function to obtain a target image after dehazing.
在本实施例中,上述执行主体中可以存储有预设的映射函数。映射函数为包含多个分段函数的连续函数,其包含多个参数。根据雾气强度的不同,映射函数所采用的参数可以不同。In this embodiment, a preset mapping function may be stored in the above-mentioned execution body. A mapping function is a continuous function containing multiple piecewise functions, which contain multiple parameters. Depending on the fog intensity, the parameters used by the mapping function can be different.
上述执行主体可以将采用目标参数的预设的映射函数作为目标映射函数,由此,目标映射函数也为包含多个分段函数的连续函数。上述执行主体可以基于目标映射函数对待处理图像进行去雾处理,得到去雾后处理后的目标图像。具体地,每个分段函数可对应一个像素值区间。对于待处理图像中的每个像素点,上述执行主体可以根据该像素点的像素值,确定用于处理该像素点的分段函数,从而将该像素值输入至该分段函数,得到该像素点的新的像素值。对全部像素点执行上述操作后,即可得到去雾后处理后的目标图像。The above-mentioned execution body may use a preset mapping function using target parameters as the target mapping function, and thus, the target mapping function is also a continuous function including a plurality of segment functions. The above-mentioned execution body may perform dehazing processing on the to-be-processed image based on the target mapping function to obtain the target image after dehazing. Specifically, each piecewise function may correspond to a pixel value interval. For each pixel in the image to be processed, the above-mentioned execution body may determine a piecewise function for processing the pixel according to the pixel value of the pixel, so as to input the pixel value into the piecewise function to obtain the pixel The new pixel value of the point. After performing the above operations on all pixels, the target image after dehazing can be obtained.
在本实施例的一些可选的实现方式中,目标映射函数可包括第一分段函数。目标参数集中可包括第一参数(可记为x 0),第一参数为小于目标值的正数,目标值基于环境光亮度值(可记为A)和透射率(可记为t)确定。环境光亮度值和透射率为暗通道去雾算法中的常用参数,此处不作赘述。上述执行主体可以基于第一分段函数对待处理图像中小于或等于第一参数的像素值进行调整。 In some optional implementations of this embodiment, the target mapping function may include a first piecewise function. The target parameter set may include a first parameter (which can be marked as x 0 ), the first parameter is a positive number smaller than the target value, and the target value is determined based on the ambient light brightness value (which can be marked as A) and the transmittance (which can be marked as t) . The ambient light brightness value and transmittance are commonly used parameters in the dark channel dehazing algorithm, and will not be described here. The above-mentioned execution body may adjust the pixel values in the image to be processed that are less than or equal to the first parameter based on the first piecewise function.
在一些示例中,第一分段函数可以为常数(如0),目标值可以为A(1-t),此时0<x 0<A(1-t)。若待处理图像的某个像素值小于x 0,则可以将可将该像素值调整为常数(如0)。 In some examples, the first piecewise function may be a constant (eg, 0), and the target value may be A(1-t), where 0<x 0 <A(1-t). If a certain pixel value of the image to be processed is less than x 0 , the pixel value can be adjusted to a constant (eg, 0).
由于常规的暗通道去雾算法通常直接将小于A(1-t)的像素值调整为0,因而常规的暗通道去雾算法易出现图像中的暗部细节大量丢失的情况。本实现方式中,由于x 0<A(1-t),因而使得更少的像素值被调整为0,使得更多暗部细节得到保护,从而提升了去雾处理后的图像质量。 Since the conventional dark channel dehazing algorithm usually directly adjusts the pixel value less than A(1-t) to 0, the conventional dark channel dehazing algorithm is prone to the loss of a large number of dark details in the image. In this implementation manner, since x 0 <A(1-t), fewer pixel values are adjusted to 0, so that more dark details are protected, thereby improving the image quality after dehazing.
在本实施例的一些可选的实现方式中,目标映射函数还可以包括第二分段函数。第二分段函数可以为单调递增函数(如单调递增的线性函 数或单调递增的非线性函数)。目标参数集中还包括第二参数(可记为x 1),第二参数可大于第一参数(x 0)且小于环境光亮度值A,即A(1-t)<x 1<A。此时,上述执行主体可以基于第二分段函数对待处理图像中大于第一参数且小于第二参数的像素值(记为x)进行调整。即,当x 0<x<x 1时,使用第二分段函数对x进行调整,得到调整后的像素值(记为y)。 In some optional implementations of this embodiment, the target mapping function may further include a second piecewise function. The second piecewise function may be a monotonically increasing function (eg, a monotonically increasing linear function or a monotonically increasing nonlinear function). The target parameter set also includes a second parameter (may be denoted as x 1 ), and the second parameter may be greater than the first parameter (x 0 ) and smaller than the ambient light brightness value A, ie A(1-t)<x 1 <A. At this time, the above-mentioned execution body may adjust the pixel value (denoted as x) in the image to be processed that is larger than the first parameter and smaller than the second parameter based on the second piecewise function. That is, when x 0 <x<x 1 , use the second piecewise function to adjust x to obtain the adjusted pixel value (denoted as y).
在一些示例中,目标参数集中还包括第三参数(可记为y 1),第三参数为小于环境光亮度值A的正数,即y 1<A。第二分段函数可以为线性函数,第二分段函数的斜率基于第一参数、第二参数和第三参数确定。例如,第二分段函数可以为: In some examples, the target parameter set further includes a third parameter (which may be denoted as y 1 ), and the third parameter is a positive number smaller than the ambient light brightness value A, that is, y 1 <A. The second piecewise function may be a linear function, and the slope of the second piecewise function is determined based on the first parameter, the second parameter and the third parameter. For example, the second piecewise function can be:
Figure PCTCN2021086221-appb-000001
Figure PCTCN2021086221-appb-000001
由于常规的暗通道去雾算法通常直接将小于A(1-t)的像素值调整为0,因而常规的暗通道去雾算法易出现图像中的暗部细节大量丢失的情况。本实现方式中,x 0<A(1-t),位于(x 0,A(1-t))范围内的像素值均被调整为大于0的数,使得更少的像素值被调整为0,使得更多暗部细节得到保护,从而提升了去雾处理后的图像质量。 Since the conventional dark channel dehazing algorithm usually directly adjusts the pixel value less than A(1-t) to 0, the conventional dark channel dehazing algorithm is prone to the loss of a large number of dark details in the image. In this implementation, x 0 <A(1-t), the pixel values in the range of (x 0 , A(1-t)) are all adjusted to a number greater than 0, so that fewer pixel values are adjusted to 0, so that more dark details are protected, thereby improving the image quality after dehazing.
在本实施例的一些可选的实现方式中,目标映射函数中还包括第三分段函数,第三分段函数可以为单调递增函数(如单调递增的线性函数或单调递增的非线性函数)。上述执行主体可以基于第三分段函数对待处理图像中大于或等于第二参数x 1且小于或等于环境光亮度值A的像素值(可记为x)进行调整。即,若x 1≤x≤A,则使用第三分段函数对x调整,得到调整后的像素值(记为y)。 In some optional implementations of this embodiment, the target mapping function further includes a third piecewise function, and the third piecewise function may be a monotonically increasing function (such as a monotonically increasing linear function or a monotonically increasing nonlinear function) . The above-mentioned execution body may adjust the pixel value (may be denoted as x) in the image to be processed that is greater than or equal to the second parameter x 1 and less than or equal to the ambient light brightness value A based on the third piecewise function. That is, if x 1 ≤x≤A, use the third piecewise function to adjust x to obtain the adjusted pixel value (denoted as y).
在一些示例中,第三分段函数可以为线性函数,第三分段函数的斜率可基于透射率确定,如直接采用常规的暗通道去雾算法中的映射函数的斜率1/t,此时,第二分段函数可以为:In some examples, the third piecewise function may be a linear function, and the slope of the third piecewise function may be determined based on the transmittance, such as directly using the slope 1/t of the mapping function in the conventional dark channel dehazing algorithm, at this time , the second piecewise function can be:
Figure PCTCN2021086221-appb-000002
Figure PCTCN2021086221-appb-000002
在本实施例的一些可选的实现方式中,目标映射函数中还包括第四分段函数,第四分段函数为单调递增函数(如单调递增的线性函数或单调递增的非线性函数)。上述执行主体可以基于第四分段函数对待处理图像中大于环境光亮度值A的像素值(可记为x)进行调整。即,若x> A,则使用第四分段函数对x调整,得到调整后的像素值(记为y)。In some optional implementations of this embodiment, the target mapping function further includes a fourth piecewise function, and the fourth piecewise function is a monotonically increasing function (eg, a monotonically increasing linear function or a monotonically increasing nonlinear function). The above-mentioned execution body may adjust the pixel value (which may be denoted as x) in the image to be processed that is greater than the ambient light brightness value A based on the fourth piecewise function. That is, if x>A, use the fourth piecewise function to adjust x to obtain the adjusted pixel value (denoted as y).
在一些示例中,目标参数集中还包括第五参数(记为x 2)和第六参数(记为y 2),第五参数大于环境光亮度值A且小于最大像素值(如255),第六参数小于或等于最大像素值(如255)。即,A<x 2<255,y 2≤255。第四分段函数可以为线性函数,第四分段函数的斜率可以小于常规的暗通道去雾算法所采用的斜率(如1/t)。具体地,第四分段函数的斜率可以基于第五参数、第六参数和环境光亮度值确定,第四分段函数可以为: In some examples, the target parameter set further includes a fifth parameter (denoted as x 2 ) and a sixth parameter (denoted as y 2 ). The fifth parameter is greater than the ambient light brightness value A and smaller than the maximum pixel value (eg, 255). The six parameter is less than or equal to the maximum pixel value (eg 255). That is, A<x 2 <255, and y 2 ≤255. The fourth piecewise function may be a linear function, and the slope of the fourth piecewise function may be smaller than the slope (eg, 1/t) adopted by the conventional dark channel dehazing algorithm. Specifically, the slope of the fourth piecewise function may be determined based on the fifth parameter, the sixth parameter and the ambient light brightness value, and the fourth piecewise function may be:
Figure PCTCN2021086221-appb-000003
Figure PCTCN2021086221-appb-000003
由于常规的暗通道去雾算法通常直接将大于A的像素值x调整为A+(x-A)/t,因而易将大于A的像素值调整为最大值255,导致图像中的亮部细节过曝。本实现方式中,由于第四分段函数的斜率小于1/t,因此对于大于A的像素值,可降低其调整后的数值,使得更多亮部细节得到保护,从而进一步提升了去雾处理后的图像质量。Since the conventional dark channel dehazing algorithm usually directly adjusts the pixel value x greater than A to A+(x-A)/t, it is easy to adjust the pixel value greater than A to the maximum value of 255, resulting in overexposure of bright details in the image. In this implementation, since the slope of the fourth piecewise function is less than 1/t, for pixel values greater than A, the adjusted value can be reduced, so that more bright details can be protected, thereby further improving the dehazing process. post image quality.
作为示例,图2示出了根据本申请的图像去雾方法中的目标映射函数的曲线图。如图2所示,目标映射函数的曲线图中包含四部分,分别对应第一分段函数、第二分段函数、第三分段函数和第四分段函数。横轴表示原始的像素值,纵轴表示去雾处理后的像素值。由图2可见,目标映射函数如下:As an example, FIG. 2 shows a graph of an object mapping function in an image dehazing method according to the present application. As shown in FIG. 2 , the graph of the target mapping function includes four parts, corresponding to the first piecewise function, the second piecewise function, the third piecewise function and the fourth piecewise function respectively. The horizontal axis represents the original pixel value, and the vertical axis represents the pixel value after dehazing. As can be seen from Figure 2, the target mapping function is as follows:
Figure PCTCN2021086221-appb-000004
Figure PCTCN2021086221-appb-000004
需要说明的是,目标映射函数除上述示例外,还可以使用能够实现类似功能的其他函数形式,如多段线性映射函数、平滑曲线函数等,本申请实施例对此不作具体限定。It should be noted that, in addition to the above examples, the target mapping function may also use other functional forms that can achieve similar functions, such as multi-segment linear mapping functions, smooth curve functions, etc., which are not specifically limited in this embodiment of the present application.
本申请的上述实施例提供的方法,通过获取待处理图像的雾气强度信息,而后基于该雾气强度信息、预设的无雾场景下的参数集和浓雾场 景下的参数集,确定目标参数集,之后基于目标参数集确定目标映射函数,从而能够基于目标映射函数对待处理图像进行去雾处理,得到去雾后处理后的目标图像。由于目标映射函数为包含多个分段函数的连续函数,因此可对位于不同数值区间的像素值采用不同的分段函数进行处理,避免了因使用单一线性函数导致图像中的亮部细节过曝以及暗部细节大量丢失的情形,由此提升了图像的画质。In the method provided by the above embodiments of the present application, the fog intensity information of the image to be processed is obtained, and then the target parameter set is determined based on the fog intensity information, a preset parameter set in a fog-free scene, and a parameter set in a dense fog scene , and then determine the target mapping function based on the target parameter set, so that the image to be processed can be dehazed based on the target mapping function, and the target image after dehazing can be obtained. Since the target mapping function is a continuous function including multiple piecewise functions, different piecewise functions can be used to process pixel values in different numerical ranges, avoiding the overexposure of bright details in the image due to the use of a single linear function. As well as a large loss of details in the shadows, the quality of the image is improved.
进一步参考图3,作为对上述方法的实现,本申请提供了一种图像去雾装置的一个实施例,该装置实施例与图1所示的方法实施例相对应。该电子设备可以各种电子设备中。Further referring to FIG. 3 , as an implementation of the above method, the present application provides an embodiment of an image defogging apparatus, and the apparatus embodiment corresponds to the method embodiment shown in FIG. 1 . The electronic device can be among various electronic devices.
如图3所示,本实施例上述的图像去雾装置300包括:获取单元301,被配置成获取待处理图像的雾气强度信息;确定单元302,被配置成基于上述雾气强度信息、预设的无雾场景下的参数集和浓雾场景下的参数集,确定目标参数集;处理单元303,被配置成基于上述目标参数集确定目标映射函数,并基于上述目标映射函数对上述待处理图像进行去雾处理,得到去雾后处理后的目标图像,其中,上述目标映射函数为包含多个分段函数的连续函数。As shown in FIG. 3 , the above-mentioned image defogging apparatus 300 in this embodiment includes: an acquiring unit 301 configured to acquire fog intensity information of an image to be processed; a determining unit 302 configured to, based on the above fog intensity information, a preset The parameter set in the fog-free scene and the parameter set in the dense fog scene determine the target parameter set; the processing unit 303 is configured to determine the target mapping function based on the above target parameter set, and based on the above target mapping function. Dehazing is performed to obtain a target image after dehazing, wherein the target mapping function is a continuous function including a plurality of piecewise functions.
在本实施例的一些可选的实现方式中,上述目标映射函数包括第一分段函数,上述第一分段函数为常数,上述目标参数集中包括第一参数,上述第一参数为小于目标值的正数,上述目标值基于环境光亮度值和透射率确定;上述处理单元,进一步被配置成:基于上述第一分段函数对上述待处理图像中小于或等于上述第一参数的像素值进行调整。In some optional implementations of this embodiment, the target mapping function includes a first piecewise function, the first piecewise function is a constant, the target parameter set includes a first parameter, and the first parameter is smaller than the target value The above-mentioned target value is determined based on the brightness value of the ambient light and the transmittance; the above-mentioned processing unit is further configured to: based on the above-mentioned first piecewise function, the pixel values in the above-mentioned to-be-processed image that are less than or equal to the above-mentioned first parameter are processed. Adjustment.
在本实施例的一些可选的实现方式中,上述第一分段函数为常数。In some optional implementations of this embodiment, the foregoing first piecewise function is a constant.
在本实施例的一些可选的实现方式中,上述目标映射函数还包括第二分段函数,上述第二分段函数为单调递增函数,上述目标参数集中还包括第二参数,上述第二参数大于上述第一参数且小于上述环境光亮度值;上述处理单元,进一步被配置成:基于上述第二分段函数对上述待处理图像中大于上述第一参数且小于上述第二参数的像素值进行调整。In some optional implementations of this embodiment, the target mapping function further includes a second piecewise function, the second piecewise function is a monotonically increasing function, the target parameter set further includes a second parameter, and the second parameter Greater than the first parameter and less than the ambient light brightness value; the processing unit is further configured to: based on the second piecewise function, the pixel values in the to-be-processed image that are greater than the first parameter and less than the second parameter are processed. Adjustment.
在本实施例的一些可选的实现方式中,上述目标参数集中还包括第三参数,上述第三参数为小于上述环境光亮度值的正数;上述第二分段 函数为线性函数,上述第二分段函数的斜率基于上述第一参数、上述第二参数和上述第三参数确定。In some optional implementations of this embodiment, the target parameter set further includes a third parameter, and the third parameter is a positive number smaller than the ambient light brightness value; the second piecewise function is a linear function, and the third parameter is a linear function. The slope of the bipartite function is determined based on the aforementioned first parameter, the aforementioned second parameter, and the aforementioned third parameter.
在本实施例的一些可选的实现方式中,上述目标映射函数中还包括第三分段函数,上述第三分段函数为单调递增函数;上述处理单元,进一步被配置成:基于上述第三分段函数对上述待处理图像中大于或等于上述第二参数且小于或等于上述环境光亮度值的像素值进行调整。In some optional implementations of this embodiment, the above-mentioned target mapping function further includes a third piecewise function, and the above-mentioned third piecewise function is a monotonically increasing function; the above-mentioned processing unit is further configured to: based on the above-mentioned third The piecewise function adjusts pixel values in the image to be processed that are greater than or equal to the second parameter and less than or equal to the ambient light brightness value.
在本实施例的一些可选的实现方式中,上述第三分段函数为线性函数,上述第三分段函数的斜率基于上述透射率确定。In some optional implementations of this embodiment, the third piecewise function is a linear function, and the slope of the third piecewise function is determined based on the transmittance.
在本实施例的一些可选的实现方式中,上述目标映射函数中还包括第四分段函数,上述第四分段函数为单调递增函数;上述处理单元,进一步被配置成:基于上述第四分段函数对上述待处理图像中大于上述环境光亮度值的像素值进行调整。In some optional implementations of this embodiment, the above-mentioned target mapping function further includes a fourth piecewise function, and the above-mentioned fourth piecewise function is a monotonically increasing function; the above-mentioned processing unit is further configured to: based on the above-mentioned fourth The piecewise function adjusts pixel values in the image to be processed that are greater than the ambient light brightness value.
在本实施例的一些可选的实现方式中,上述目标参数集中还包括第五参数和第六参数,上述第五参数大于上述环境光亮度值且小于最大像素值,上述第六参数小于或等于上述最大像素值;上述第四分段函数为线性函数,上述第四分段函数的斜率基于上述第五参数、上述第六参数和上述环境光亮度值确定。In some optional implementations of this embodiment, the target parameter set further includes a fifth parameter and a sixth parameter, the fifth parameter is greater than the ambient light brightness value and less than the maximum pixel value, and the sixth parameter is less than or equal to The above-mentioned maximum pixel value; the above-mentioned fourth piecewise function is a linear function, and the slope of the above-mentioned fourth piecewise function is determined based on the above-mentioned fifth parameter, the above-mentioned sixth parameter and the above-mentioned ambient light brightness value.
在本实施例的一些可选的实现方式中,上述确定单元,进一步被配置成:基于上述雾气强度信息,对预设的无雾场景下的参数集和浓雾场景下的参数集进行插值,得到目标参数集。In some optional implementations of this embodiment, the above determining unit is further configured to: perform interpolation on a preset parameter set in a fog-free scene and a parameter set in a dense fog scene based on the above fog intensity information, Get the target parameter set.
本申请的上述实施例提供的图像去雾装置,通过获取待处理图像的雾气强度信息,而后基于该雾气强度信息、预设的无雾场景下的参数集和浓雾场景下的参数集,确定目标参数集,之后基于目标参数集确定目标映射函数,从而能够基于目标映射函数对待处理图像进行去雾处理,得到去雾后处理后的目标图像。由于目标映射函数为包含多个分段函数的连续函数,因此可对位于不同数值区间的像素值采用不同的分段函数进行处理,避免了因使用单一线性函数导致图像中的亮部细节过曝以及暗部细节大量丢失的情形,由此提升了图像的画质。The image defogging device provided by the above-mentioned embodiments of the present application obtains the fog intensity information of the image to be processed, and then determines the fog intensity information based on the fog intensity information, the preset parameter set in the fog-free scene and the parameter set in the dense fog scene. A target parameter set, and then a target mapping function is determined based on the target parameter set, so that the image to be processed can be dehazed based on the target mapping function, and a dehazed target image can be obtained. Since the target mapping function is a continuous function including multiple piecewise functions, different piecewise functions can be used to process pixel values in different numerical ranges, avoiding the overexposure of bright details in the image due to the use of a single linear function. As well as a large loss of details in the shadows, the quality of the image is improved.
进一步参见图4,作为对上述图1所示方法的实现,本申请提供了一 种电子设备的一个实施例,该实施例与图1所示的方法实施例相对应。该电子设备具体可以包括:处理器401和存储器402。Further referring to Fig. 4 , as an implementation of the method shown in Fig. 1 above, the present application provides an embodiment of an electronic device, which corresponds to the method embodiment shown in Fig. 1 . Specifically, the electronic device may include: a processor 401 and a memory 402 .
上述存储器401,可以用于存储程序指令。The above-mentioned memory 401 can be used to store program instructions.
上述处理器402,可以用于执行上述存储器存储的程序指令,当程序指令被执行时,上述处理器可以用于执行如下步骤:获取待处理图像的雾气强度信息;基于上述雾气强度信息、预设的无雾场景下的参数集和浓雾场景下的参数集,确定目标参数集;基于上述目标参数集确定目标映射函数,并基于上述目标映射函数对上述待处理图像进行去雾处理,得到去雾后处理后的目标图像,其中,上述目标映射函数为包含多个分段函数的连续函数。The above-mentioned processor 402 can be used to execute the program instructions stored in the above-mentioned memory. When the program instructions are executed, the above-mentioned processor can be used to perform the following steps: obtaining fog intensity information of the image to be processed; The parameter set in the fog-free scene and the parameter set in the dense fog scene are determined, and the target parameter set is determined; the target mapping function is determined based on the above target parameter set, and the image to be processed is dehazed based on the above target mapping function. The target image after fog post-processing, wherein the target mapping function is a continuous function including multiple piecewise functions.
在本实施例的一些可选的实现方式中,上述目标映射函数包括第一分段函数,上述第一分段函数为常数,上述目标参数集中包括第一参数,上述第一参数为小于目标值的正数,上述目标值基于环境光亮度值和透射率确定;上述处理器进一步用于执行如下步骤:基于上述第一分段函数对上述待处理图像中小于或等于上述第一参数的像素值进行调整。In some optional implementations of this embodiment, the target mapping function includes a first piecewise function, the first piecewise function is a constant, the target parameter set includes a first parameter, and the first parameter is smaller than the target value The above-mentioned target value is determined based on the ambient light brightness value and transmittance; the above-mentioned processor is further configured to perform the following steps: based on the above-mentioned first piecewise function, the pixel value in the above-mentioned to-be-processed image that is less than or equal to the above-mentioned first parameter is determined. make adjustments.
在本实施例的一些可选的实现方式中,上述第一分段函数为常数。In some optional implementations of this embodiment, the foregoing first piecewise function is a constant.
在本实施例的一些可选的实现方式中,上述目标映射函数还包括第二分段函数,上述第二分段函数为单调递增函数,上述目标参数集中还包括第二参数,上述第二参数大于上述第一参数且小于上述环境光亮度值;上述处理器进一步用于执行如下步骤:基于上述第二分段函数对上述待处理图像中大于上述第一参数且小于上述第二参数的像素值进行调整。In some optional implementations of this embodiment, the target mapping function further includes a second piecewise function, the second piecewise function is a monotonically increasing function, the target parameter set further includes a second parameter, and the second parameter greater than the first parameter and less than the ambient light brightness value; the processor is further configured to perform the following steps: based on the second piecewise function, the pixel value in the image to be processed that is greater than the first parameter and less than the second parameter is analyzed. make adjustments.
在本实施例的一些可选的实现方式中,上述目标参数集中还包括第三参数,上述第三参数为小于上述环境光亮度值的正数;上述第二分段函数为线性函数,上述第二分段函数的斜率基于上述第一参数、上述第二参数和上述第三参数确定。In some optional implementations of this embodiment, the target parameter set further includes a third parameter, and the third parameter is a positive number smaller than the ambient light brightness value; the second piecewise function is a linear function, and the third parameter is a linear function. The slope of the bipartite function is determined based on the aforementioned first parameter, the aforementioned second parameter, and the aforementioned third parameter.
在本实施例的一些可选的实现方式中,上述目标映射函数中还包括第三分段函数,上述第三分段函数为单调递增函数;上述处理器进一步用于执行如下步骤:基于上述第三分段函数对上述待处理图像中大于或等于上述第二参数且小于或等于上述环境光亮度值的像素值进行调整。In some optional implementations of this embodiment, the above-mentioned target mapping function further includes a third piecewise function, and the above-mentioned third piecewise function is a monotonically increasing function; the above-mentioned processor is further configured to perform the following steps: based on the above-mentioned first The three-piece function adjusts the pixel values in the image to be processed that are greater than or equal to the second parameter and less than or equal to the ambient light brightness value.
在本实施例的一些可选的实现方式中,上述第三分段函数为线性函数,上述第三分段函数的斜率基于上述透射率确定。In some optional implementations of this embodiment, the third piecewise function is a linear function, and the slope of the third piecewise function is determined based on the transmittance.
在本实施例的一些可选的实现方式中,上述目标映射函数中还包括第四分段函数,上述第四分段函数为单调递增函数;上述处理器进一步用于执行如下步骤:基于上述第四分段函数对上述待处理图像中大于上述环境光亮度值的像素值进行调整。In some optional implementations of this embodiment, the above-mentioned target mapping function further includes a fourth piecewise function, and the above-mentioned fourth piecewise function is a monotonically increasing function; the above-mentioned processor is further configured to perform the following steps: based on the above-mentioned first The four-segment function adjusts the pixel values in the image to be processed that are greater than the ambient light brightness value.
在本实施例的一些可选的实现方式中,上述目标参数集中还包括第五参数和第六参数,上述第五参数大于上述环境光亮度值且小于最大像素值,上述第六参数小于或等于上述最大像素值;上述第四分段函数为线性函数,上述第四分段函数的斜率基于上述第五参数、上述第六参数和上述环境光亮度值确定。In some optional implementations of this embodiment, the target parameter set further includes a fifth parameter and a sixth parameter, the fifth parameter is greater than the ambient light brightness value and less than the maximum pixel value, and the sixth parameter is less than or equal to The above-mentioned maximum pixel value; the above-mentioned fourth piecewise function is a linear function, and the slope of the above-mentioned fourth piecewise function is determined based on the above-mentioned fifth parameter, the above-mentioned sixth parameter and the above-mentioned ambient light brightness value.
在本实施例的一些可选的实现方式中,上述处理器进一步用于执行如下步骤:基于上述雾气强度信息,对预设的无雾场景下的参数集和浓雾场景下的参数集进行插值,得到目标参数集。In some optional implementations of this embodiment, the above-mentioned processor is further configured to perform the following steps: based on the above-mentioned fog intensity information, perform interpolation on a preset parameter set in a fog-free scene and a parameter set in a dense fog scene , get the target parameter set.
本申请的上述实施例所提供的电子设备,通过获取待处理图像的雾气强度信息,而后基于该雾气强度信息、预设的无雾场景下的参数集和浓雾场景下的参数集,确定目标参数集,之后基于目标参数集确定目标映射函数,从而能够基于目标映射函数对待处理图像进行去雾处理,得到去雾后处理后的目标图像。由于目标映射函数为包含多个分段函数的连续函数,因此可对位于不同数值区间的像素值采用不同的分段函数进行处理,避免了因使用单一线性函数导致图像中的亮部细节过曝以及暗部细节大量丢失的情形,由此提升了图像的画质。The electronic device provided by the above-mentioned embodiments of the present application obtains the fog intensity information of the image to be processed, and then determines the target based on the fog intensity information, the preset parameter set in the fog-free scene and the parameter set in the dense fog scene parameter set, and then determine the target mapping function based on the target parameter set, so that the image to be processed can be dehazed based on the target mapping function, and the target image after dehazing can be obtained. Since the target mapping function is a continuous function including multiple piecewise functions, different piecewise functions can be used to process pixel values in different numerical ranges, avoiding the overexposure of bright details in the image due to the use of a single linear function. As well as a large loss of details in the shadows, the quality of the image is improved.
实践中,电子设备既可以是设备中的一个处理芯片、处理单元,也可以是产品,比如相机、手机等产品,又如搭载相机的云台、无人机、无人车等产品。此处对电子设备不作具体限定。In practice, an electronic device can be either a processing chip or a processing unit in the device, or a product, such as a camera, a mobile phone, or a camera-equipped gimbal, drone, or unmanned vehicle. The electronic device is not specifically limited here.
对于电子设备实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the electronic device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the partial description of the method embodiment.
本申请实施例还提供一种计算机可读介质,计算机可读介质上存储有计算机程序,该计算机程序被处理器执行时实现上述图像去雾方法的 实施例的各个过程,且能达到相同的技术效果。为避免重复,该计算机程序被处理器执行时实现上述各方法的实施例的各个过程,这里不再赘述。Embodiments of the present application further provide a computer-readable medium, where a computer program is stored on the computer-readable medium. When the computer program is executed by a processor, each process of the above-mentioned embodiments of the image dehazing method can be achieved, and the same technology can be achieved. Effect. In order to avoid repetition, when the computer program is executed by the processor, each process of the embodiments of the above-mentioned methods is implemented, which will not be repeated here.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments may be referred to each other.
本领域内的技术人员应明白,本申请的实施例可提供为方法、装置、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可读介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。It should be understood by those skilled in the art that the embodiments of the present application may be provided as a method, an apparatus, or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-readable media having computer-usable program code embodied therein, including but not limited to disk storage, CD-ROM, optical storage, and the like.
本申请是参照根据本申请的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to the present application. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing terminal equipment to produce a machine that causes the instructions to be executed by the processor of the computer or other programmable data processing terminal equipment Means are created for implementing the functions specified in the flow or flows of the flowcharts and/or the blocks or blocks of the block diagrams.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal equipment to operate in a particular manner, such that the instructions stored in the computer readable memory result in an article of manufacture comprising instruction means, the The instruction means implement the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing terminal equipment, so that a series of operational steps are performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby executing on the computer or other programmable terminal equipment The instructions executed on the above provide steps for implementing the functions specified in the flowchart or blocks and/or the block or blocks of the block diagrams.
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。While the preferred embodiments of the present application have been described, additional changes and modifications to these embodiments may occur to those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be construed to include the preferred embodiment and all changes and modifications that fall within the scope of this application.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。Finally, it should also be noted that in this document, relational terms such as first and second are used only to distinguish one entity or operation from another, and do not necessarily require or imply these entities or that there is any such actual relationship or sequence between operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or terminal device comprising a list of elements includes not only those elements, but also a non-exclusive list of elements. other elements, or also include elements inherent to such a process, method, article or terminal equipment. Without further limitation, an element defined by the phrase "comprises a..." does not preclude the presence of additional identical elements in the process, method, article or terminal device comprising said element.
以上对本申请所提供的图像去雾方法、装置、电子设备和计算机可读介质,进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The image defogging method, device, electronic device, and computer-readable medium provided by the present application have been described in detail above. The principles and implementations of the present application are described with specific examples. The descriptions of the above embodiments are only It is used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there will be changes in the specific embodiments and application scope. The contents of the description should not be construed as limiting the application.

Claims (31)

  1. 一种图像去雾方法,其特征在于,所述方法包括:An image dehazing method, characterized in that the method comprises:
    获取待处理图像的雾气强度信息;Obtain the fog intensity information of the image to be processed;
    基于所述雾气强度信息、预设的无雾场景下的参数集和浓雾场景下的参数集,确定目标参数集;determining a target parameter set based on the fog intensity information, a preset parameter set in a fog-free scene, and a parameter set in a dense fog scene;
    基于所述目标参数集确定目标映射函数,并基于所述目标映射函数对所述待处理图像进行去雾处理,得到去雾后处理后的目标图像,其中,所述目标映射函数为包含多个分段函数的连续函数。Determine a target mapping function based on the target parameter set, and perform dehazing processing on the to-be-processed image based on the target mapping function to obtain a target image after dehazing, where the target mapping function includes a plurality of A continuous function of a piecewise function.
  2. 根据权利要求1所述的方法,其特征在于,所述目标映射函数包括第一分段函数,所述目标参数集中包括第一参数,所述第一参数为小于目标值的正数,所述目标值基于环境光亮度值和透射率确定;The method according to claim 1, wherein the target mapping function comprises a first piecewise function, the target parameter set comprises a first parameter, the first parameter is a positive number smaller than a target value, and the The target value is determined based on the ambient light brightness value and transmittance;
    所述基于所述目标映射函数对所述待处理图像进行去雾处理,包括:The performing dehazing processing on the to-be-processed image based on the target mapping function includes:
    基于所述第一分段函数对所述待处理图像中小于或等于所述第一参数的像素值进行调整。Pixel values less than or equal to the first parameter in the image to be processed are adjusted based on the first piecewise function.
  3. 根据权利要求2所述的方法,其特征在于,所述第一分段函数为常数。The method of claim 2, wherein the first piecewise function is a constant.
  4. 根据权利要求2所述的方法,其特征在于,所述目标映射函数还包括第二分段函数,所述第二分段函数为单调递增函数,所述目标参数集中还包括第二参数,所述第二参数大于所述第一参数且小于所述环境光亮度值;The method according to claim 2, wherein the target mapping function further comprises a second piecewise function, the second piecewise function is a monotonically increasing function, the target parameter set further comprises a second parameter, the the second parameter is greater than the first parameter and less than the ambient light brightness value;
    所述基于所述目标映射函数对所述待处理图像进行去雾处理,包括:The performing dehazing processing on the to-be-processed image based on the target mapping function includes:
    基于所述第二分段函数对所述待处理图像中大于所述第一参数且小于所述第二参数的像素值进行调整。Pixel values in the image to be processed that are larger than the first parameter and smaller than the second parameter are adjusted based on the second piecewise function.
  5. 根据权利要求4所述的方法,其特征在于,所述目标参数集中还包括第三参数,所述第三参数为小于所述环境光亮度值的正数;The method according to claim 4, wherein the target parameter set further includes a third parameter, and the third parameter is a positive number smaller than the ambient light brightness value;
    所述第二分段函数为线性函数,所述第二分段函数的斜率基于所述第一参数、所述第二参数和所述第三参数确定。The second piecewise function is a linear function, and a slope of the second piecewise function is determined based on the first parameter, the second parameter and the third parameter.
  6. 根据权利要求4所述的方法,其特征在于,所述目标映射函数中还包括第三分段函数,所述第三分段函数为单调递增函数;The method according to claim 4, wherein the target mapping function further comprises a third piecewise function, and the third piecewise function is a monotonically increasing function;
    所述基于所述目标映射函数对所述待处理图像进行去雾处理,包括:The performing dehazing processing on the to-be-processed image based on the target mapping function includes:
    基于所述第三分段函数对所述待处理图像中大于或等于所述第二参数且小于或等于所述环境光亮度值的像素值进行调整。Adjusting pixel values in the image to be processed that are greater than or equal to the second parameter and less than or equal to the ambient light brightness value based on the third piecewise function.
  7. 根据权利要求6所述的方法,其特征在于,所述第三分段函数为线性函数,所述第三分段函数的斜率基于所述透射率确定。The method of claim 6, wherein the third piecewise function is a linear function, and a slope of the third piecewise function is determined based on the transmittance.
  8. 根据权利要求6所述的方法,其特征在于,所述目标映射函数中还包括第四分段函数,所述第四分段函数为单调递增函数;The method according to claim 6, wherein the target mapping function further comprises a fourth piecewise function, and the fourth piecewise function is a monotonically increasing function;
    所述基于所述目标映射函数对所述待处理图像进行去雾处理,包括:The performing dehazing processing on the to-be-processed image based on the target mapping function includes:
    基于所述第四分段函数对所述待处理图像中大于所述环境光亮度值的像素值进行调整。Adjusting pixel values in the image to be processed that are greater than the ambient light brightness value based on the fourth piecewise function.
  9. 根据权利要求8所述的方法,其特征在于,所述目标参数集中还包括第五参数和第六参数,所述第五参数大于所述环境光亮度值且小于最大像素值,所述第六参数小于或等于所述最大像素值;The method according to claim 8, wherein the target parameter set further includes a fifth parameter and a sixth parameter, the fifth parameter is greater than the ambient light brightness value and less than a maximum pixel value, and the sixth parameter The parameter is less than or equal to the maximum pixel value;
    所述第四分段函数为线性函数,所述第四分段函数的斜率基于所述第五参数、所述第六参数和所述环境光亮度值确定。The fourth piecewise function is a linear function, and the slope of the fourth piecewise function is determined based on the fifth parameter, the sixth parameter and the ambient light brightness value.
  10. 根据权利要求1所述的方法,其特征在于,所述基于所述雾气强度信息、预设的无雾场景下的参数集和浓雾场景下的参数集,确定目标参数集,包括:The method according to claim 1, wherein determining the target parameter set based on the fog intensity information, a preset parameter set in a fog-free scene, and a parameter set in a dense fog scene, comprising:
    基于所述雾气强度信息,对预设的无雾场景下的参数集和浓雾场景下的参数集进行插值,得到目标参数集。Based on the fog intensity information, the preset parameter set in the fog-free scene and the parameter set in the dense fog scene are interpolated to obtain the target parameter set.
  11. 一种图像去雾装置,其特征在于,所述装置包括:An image defogging device, characterized in that the device comprises:
    获取单元,被配置成获取待处理图像的雾气强度信息;an acquisition unit, configured to acquire fog intensity information of the image to be processed;
    确定单元,被配置成基于所述雾气强度信息、预设的无雾场景下的参数集和浓雾场景下的参数集,确定目标参数集;a determining unit, configured to determine a target parameter set based on the fog intensity information, a preset parameter set in a fog-free scene, and a parameter set in a dense fog scene;
    处理单元,被配置成基于所述目标参数集确定目标映射函数,并基于所述目标映射函数对所述待处理图像进行去雾处理,得到去雾后处理后的目标图像,其中,所述目标映射函数为包含多个分段函数的连续函数。a processing unit, configured to determine a target mapping function based on the target parameter set, and perform dehazing processing on the to-be-processed image based on the target mapping function to obtain a target image after dehazing, wherein the target The mapping function is a continuous function containing multiple piecewise functions.
  12. 根据权利要求11所述的装置,其特征在于,所述目标映射函数包括第一分段函数,所述第一分段函数为常数,所述目标参数集中包括第一参数,所述第一参数为小于目标值的正数,所述目标值基于环境光亮度值和透射率确定;The apparatus according to claim 11, wherein the target mapping function comprises a first piecewise function, the first piecewise function is a constant, the target parameter set comprises a first parameter, and the first parameter is a positive number smaller than the target value, and the target value is determined based on the ambient light brightness value and transmittance;
    所述处理单元,进一步被配置成:The processing unit is further configured to:
    基于所述第一分段函数对所述待处理图像中小于或等于所述第一参数的像素值进行调整。Pixel values less than or equal to the first parameter in the image to be processed are adjusted based on the first piecewise function.
  13. 根据权利要求12所述的装置,其特征在于,所述第一分段函数为常数。The apparatus of claim 12, wherein the first piecewise function is a constant.
  14. 根据权利要求12所述的装置,其特征在于,所述目标映射函数还包括第二分段函数,所述第二分段函数为单调递增函数,所述目标参数集中还包括第二参数,所述第二参数大于所述第一参数且小于所述环境光亮度值;The apparatus according to claim 12, wherein the target mapping function further comprises a second piecewise function, the second piecewise function is a monotonically increasing function, the target parameter set further comprises a second parameter, and the the second parameter is greater than the first parameter and less than the ambient light brightness value;
    所述处理单元,进一步被配置成:The processing unit is further configured to:
    基于所述第二分段函数对所述待处理图像中大于所述第一参数且小于所述第二参数的像素值进行调整。Pixel values in the image to be processed that are larger than the first parameter and smaller than the second parameter are adjusted based on the second piecewise function.
  15. 根据权利要求14所述的装置,其特征在于,所述目标参数集中还包括第三参数,所述第三参数为小于所述环境光亮度值的正数;The device according to claim 14, wherein the target parameter set further includes a third parameter, and the third parameter is a positive number smaller than the ambient light brightness value;
    所述第二分段函数为线性函数,所述第二分段函数的斜率基于所述第一参数、所述第二参数和所述第三参数确定。The second piecewise function is a linear function, and a slope of the second piecewise function is determined based on the first parameter, the second parameter and the third parameter.
  16. 根据权利要求14所述的装置,其特征在于,所述目标映射函数中还包括第三分段函数,所述第三分段函数为单调递增函数;The device according to claim 14, wherein the target mapping function further comprises a third piecewise function, and the third piecewise function is a monotonically increasing function;
    所述处理单元,进一步被配置成:The processing unit is further configured to:
    基于所述第三分段函数对所述待处理图像中大于或等于所述第二参数且小于或等于所述环境光亮度值的像素值进行调整。Adjusting pixel values in the image to be processed that are greater than or equal to the second parameter and less than or equal to the ambient light brightness value based on the third piecewise function.
  17. 根据权利要求16所述的装置,其特征在于,所述第三分段函数为线性函数,所述第三分段函数的斜率基于所述透射率确定。The apparatus of claim 16, wherein the third piecewise function is a linear function, and a slope of the third piecewise function is determined based on the transmittance.
  18. 根据权利要求16所述的装置,其特征在于,所述目标映射函数中还包括第四分段函数,所述第四分段函数为单调递增函数;The device according to claim 16, wherein the target mapping function further comprises a fourth piecewise function, and the fourth piecewise function is a monotonically increasing function;
    所述处理单元,进一步被配置成:The processing unit is further configured to:
    基于所述第四分段函数对所述待处理图像中大于所述环境光亮度值的像素值进行调整。Adjusting pixel values in the image to be processed that are greater than the ambient light brightness value based on the fourth piecewise function.
  19. 根据权利要求18所述的装置,其特征在于,所述目标参数集中还包括第五参数和第六参数,所述第五参数大于所述环境光亮度值且小于最大像素值,所述第六参数小于或等于所述最大像素值;The device according to claim 18, wherein the target parameter set further includes a fifth parameter and a sixth parameter, the fifth parameter is greater than the ambient light brightness value and less than a maximum pixel value, and the sixth parameter The parameter is less than or equal to the maximum pixel value;
    所述第四分段函数为线性函数,所述第四分段函数的斜率基于所述第五参数、所述第六参数和所述环境光亮度值确定。The fourth piecewise function is a linear function, and the slope of the fourth piecewise function is determined based on the fifth parameter, the sixth parameter and the ambient light brightness value.
  20. 根据权利要求11所述的装置,其特征在于,所述确定单元,进一步被配置成:The device according to claim 11, wherein the determining unit is further configured to:
    基于所述雾气强度信息,对预设的无雾场景下的参数集和浓雾场景下的参数集进行插值,得到目标参数集。Based on the fog intensity information, the preset parameter set in the fog-free scene and the parameter set in the dense fog scene are interpolated to obtain the target parameter set.
  21. 一种电子设备,其特征在于,包括:An electronic device, comprising:
    处理器和存储器;processor and memory;
    所述存储器,用于存储程序指令;the memory for storing program instructions;
    所述处理器,执行所述存储器存储的程序指令,当程序指令被执行时,所述处理器用于执行如下步骤:The processor executes the program instructions stored in the memory, and when the program instructions are executed, the processor is configured to perform the following steps:
    获取待处理图像的雾气强度信息;Obtain the fog intensity information of the image to be processed;
    基于所述雾气强度信息、预设的无雾场景下的参数集和浓雾场景下的参数集,确定目标参数集;determining a target parameter set based on the fog intensity information, a preset parameter set in a fog-free scene, and a parameter set in a dense fog scene;
    基于所述目标参数集确定目标映射函数,并基于所述目标映射函数对所述待处理图像进行去雾处理,得到去雾后处理后的目标图像,其中,所述目标映射函数为包含多个分段函数的连续函数。Determine a target mapping function based on the target parameter set, and perform dehazing processing on the to-be-processed image based on the target mapping function to obtain a target image after dehazing, where the target mapping function includes a plurality of A continuous function of a piecewise function.
  22. 根据权利要求21所述的电子设备,其特征在于,所述目标映射函数包括第一分段函数,所述第一分段函数为常数,所述目标参数集中包括第一参数,所述第一参数为小于目标值的正数,所述目标值基于环境光亮度值和透射率确定;The electronic device according to claim 21, wherein the target mapping function comprises a first piecewise function, the first piecewise function is a constant, the target parameter set comprises a first parameter, and the first The parameter is a positive number smaller than a target value, and the target value is determined based on the ambient light brightness value and transmittance;
    所述处理器进一步用于执行如下步骤:The processor is further configured to perform the following steps:
    基于所述第一分段函数对所述待处理图像中小于或等于所述第一参数的像素值进行调整。Pixel values less than or equal to the first parameter in the image to be processed are adjusted based on the first piecewise function.
  23. 根据权利要求22所述的电子设备,其特征在于,所述第一分段函数为常数。The electronic device of claim 22, wherein the first piecewise function is a constant.
  24. 根据权利要求22所述的电子设备,其特征在于,所述目标映射函数还包括第二分段函数,所述第二分段函数为单调递增函数,所述目标参数集中还包括第二参数,所述第二参数大于所述第一参数且小于所述环境光亮度值;The electronic device according to claim 22, wherein the target mapping function further comprises a second piecewise function, the second piecewise function is a monotonically increasing function, and the target parameter set further comprises a second parameter, the second parameter is greater than the first parameter and less than the ambient light brightness value;
    所述处理器进一步用于执行如下步骤:The processor is further configured to perform the following steps:
    基于所述第二分段函数对所述待处理图像中大于所述第一参数且小于所述第二参数的像素值进行调整。Pixel values in the image to be processed that are larger than the first parameter and smaller than the second parameter are adjusted based on the second piecewise function.
  25. 根据权利要求24所述的电子设备,其特征在于,所述目标参数集中还包括第三参数,所述第三参数为小于所述环境光亮度值的正数;The electronic device according to claim 24, wherein the target parameter set further includes a third parameter, and the third parameter is a positive number smaller than the ambient light brightness value;
    所述第二分段函数为线性函数,所述第二分段函数的斜率基于所述第一参数、所述第二参数和所述第三参数确定。The second piecewise function is a linear function, and a slope of the second piecewise function is determined based on the first parameter, the second parameter and the third parameter.
  26. 根据权利要求24所述的电子设备,其特征在于,所述目标映射函数中还包括第三分段函数,所述第三分段函数为单调递增函数;The electronic device according to claim 24, wherein the target mapping function further comprises a third piecewise function, and the third piecewise function is a monotonically increasing function;
    所述处理器进一步用于执行如下步骤:The processor is further configured to perform the following steps:
    基于所述第三分段函数对所述待处理图像中大于或等于所述第二参数且小于或等于所述环境光亮度值的像素值进行调整。Adjusting pixel values in the image to be processed that are greater than or equal to the second parameter and less than or equal to the ambient light brightness value based on the third piecewise function.
  27. 根据权利要求26所述的电子设备,其特征在于,所述第三分段函数为线性函数,所述第三分段函数的斜率基于所述透射率确定。The electronic device of claim 26, wherein the third piecewise function is a linear function, and a slope of the third piecewise function is determined based on the transmittance.
  28. 根据权利要求26所述的电子设备,其特征在于,所述目标映射函数中还包括第四分段函数,所述第四分段函数为单调递增函数;The electronic device according to claim 26, wherein the target mapping function further comprises a fourth piecewise function, and the fourth piecewise function is a monotonically increasing function;
    所述处理器进一步用于执行如下步骤:The processor is further configured to perform the following steps:
    基于所述第四分段函数对所述待处理图像中大于所述环境光亮度值的像素值进行调整。Adjusting pixel values in the image to be processed that are greater than the ambient light brightness value based on the fourth piecewise function.
  29. 根据权利要求28所述的电子设备,其特征在于,所述目标参数集中还包括第五参数和第六参数,所述第五参数大于所述环境光亮度值且小于最大像素值,所述第六参数小于或等于所述最大像素值;The electronic device according to claim 28, wherein the target parameter set further includes a fifth parameter and a sixth parameter, the fifth parameter is greater than the ambient light brightness value and less than a maximum pixel value, and the sixth parameter The six parameters are less than or equal to the maximum pixel value;
    所述第四分段函数为线性函数,所述第四分段函数的斜率基于所述第五参数、所述第六参数和所述环境光亮度值确定。The fourth piecewise function is a linear function, and the slope of the fourth piecewise function is determined based on the fifth parameter, the sixth parameter and the ambient light brightness value.
  30. 根据权利要求21所述的电子设备,其特征在于,所述处理器进一步用于执行如下步骤:The electronic device according to claim 21, wherein the processor is further configured to perform the following steps:
    基于所述雾气强度信息,对预设的无雾场景下的参数集和浓雾场景下的参数集进行插值,得到目标参数集。Based on the fog intensity information, the preset parameter set in the fog-free scene and the parameter set in the dense fog scene are interpolated to obtain the target parameter set.
  31. 一种计算机可读介质,其特征在于,所述计算机可读介质中存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1-9中任一所述的方法。A computer-readable medium, wherein a computer program is stored in the computer-readable medium, and when the computer program is executed by a processor, the method according to any one of claims 1-9 is implemented.
PCT/CN2021/086221 2021-04-09 2021-04-09 Image dehazing method and apparatus, and electronic device and computer-readable medium WO2022213372A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/086221 WO2022213372A1 (en) 2021-04-09 2021-04-09 Image dehazing method and apparatus, and electronic device and computer-readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/086221 WO2022213372A1 (en) 2021-04-09 2021-04-09 Image dehazing method and apparatus, and electronic device and computer-readable medium

Publications (1)

Publication Number Publication Date
WO2022213372A1 true WO2022213372A1 (en) 2022-10-13

Family

ID=83544996

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/086221 WO2022213372A1 (en) 2021-04-09 2021-04-09 Image dehazing method and apparatus, and electronic device and computer-readable medium

Country Status (1)

Country Link
WO (1) WO2022213372A1 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101887579A (en) * 2010-06-25 2010-11-17 哈尔滨工程大学 Underwater image restoration method based on scattering model
WO2013040857A1 (en) * 2011-09-20 2013-03-28 Fujitsu Limited Exposure enhancement method and apparatus for a defogged image
CN105913390A (en) * 2016-04-07 2016-08-31 潍坊学院 Image defogging method and system
CN107749052A (en) * 2017-10-24 2018-03-02 中国科学院长春光学精密机械与物理研究所 Image defogging method and system based on deep learning neutral net
US20190180423A1 (en) * 2019-02-13 2019-06-13 Intel Corporation Method and system of haze reduction for image processing
CN109903239A (en) * 2019-01-28 2019-06-18 华南理工大学 A kind of adapting to image defogging method based on the full variation of weighting
CN110175967A (en) * 2019-06-05 2019-08-27 海南大学 Image defogging processing method, system, computer equipment and storage medium
CN111598791A (en) * 2020-04-13 2020-08-28 西安理工大学 Image defogging method based on improved dynamic atmospheric scattering coefficient function

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101887579A (en) * 2010-06-25 2010-11-17 哈尔滨工程大学 Underwater image restoration method based on scattering model
WO2013040857A1 (en) * 2011-09-20 2013-03-28 Fujitsu Limited Exposure enhancement method and apparatus for a defogged image
CN105913390A (en) * 2016-04-07 2016-08-31 潍坊学院 Image defogging method and system
CN107749052A (en) * 2017-10-24 2018-03-02 中国科学院长春光学精密机械与物理研究所 Image defogging method and system based on deep learning neutral net
CN109903239A (en) * 2019-01-28 2019-06-18 华南理工大学 A kind of adapting to image defogging method based on the full variation of weighting
US20190180423A1 (en) * 2019-02-13 2019-06-13 Intel Corporation Method and system of haze reduction for image processing
CN110175967A (en) * 2019-06-05 2019-08-27 海南大学 Image defogging processing method, system, computer equipment and storage medium
CN111598791A (en) * 2020-04-13 2020-08-28 西安理工大学 Image defogging method based on improved dynamic atmospheric scattering coefficient function

Similar Documents

Publication Publication Date Title
WO2019233263A1 (en) Method for video processing, electronic device and computer-readable storage medium
US10757312B2 (en) Method for image-processing and mobile terminal using dual cameras
JP6469678B2 (en) System and method for correcting image artifacts
US9307134B2 (en) Automatic setting of zoom, aperture and shutter speed based on scene depth map
US10237473B2 (en) Depth map calculation in a stereo camera system
WO2017016030A1 (en) Image processing method and terminal
US10949958B2 (en) Fast fourier color constancy
US10805508B2 (en) Image processing method, and device
KR20200041981A (en) Image processing method, apparatus, and device
WO2021057474A1 (en) Method and apparatus for focusing on subject, and electronic device, and storage medium
US9292911B2 (en) Automatic image adjustment parameter correction
US20170256036A1 (en) Automatic microlens array artifact correction for light-field images
JP5197279B2 (en) Method for tracking the 3D position of an object moving in a scene implemented by a computer
CN102256056A (en) Image processing apparatus, image processing method, and program
WO2019233271A1 (en) Image processing method, computer readable storage medium and electronic device
WO2020233178A1 (en) Image processing method and apparatus, and electronic device
US8810712B2 (en) Camera system and auto focus method
US9438785B2 (en) Electronic device and focus adjustment method thereof
JP6703314B2 (en) Focus detection
CN111126108A (en) Training method and device of image detection model and image detection method and device
US8948453B2 (en) Device, method and non-transitory computer readable storage medium for detecting object
US20140198987A1 (en) Structure Descriptors for Image Processing
CN111405185B (en) Zoom control method and device for camera, electronic equipment and storage medium
KR102315471B1 (en) Image processing method and device
US10235742B2 (en) Image processing apparatus, image capturing apparatus, image processing method, and non-transitory computer-readable storage medium for adjustment of intensity of edge signal

Legal Events

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

Ref document number: 21935599

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21935599

Country of ref document: EP

Kind code of ref document: A1