WO2022110687A1 - Image processing method and apparatus, electronic device, and readable storage medium - Google Patents
Image processing method and apparatus, electronic device, and readable storage medium Download PDFInfo
- Publication number
- WO2022110687A1 WO2022110687A1 PCT/CN2021/094570 CN2021094570W WO2022110687A1 WO 2022110687 A1 WO2022110687 A1 WO 2022110687A1 CN 2021094570 W CN2021094570 W CN 2021094570W WO 2022110687 A1 WO2022110687 A1 WO 2022110687A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- signal
- frequency signal
- image processing
- low
- processing method
- Prior art date
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 27
- 238000001914 filtration Methods 0.000 claims description 6
- 238000000034 method Methods 0.000 abstract description 10
- 230000006870 function Effects 0.000 description 12
- 238000012545 processing Methods 0.000 description 10
- 238000004891 communication Methods 0.000 description 5
- 238000001514 detection method Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000005192 partition Methods 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 3
- 230000003313 weakening effect Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 241001270131 Agaricus moelleri Species 0.000 description 1
- 241000023320 Luma <angiosperm> Species 0.000 description 1
- 241000699666 Mus <mouse, genus> Species 0.000 description 1
- 241000699670 Mus sp. Species 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- OSWPMRLSEDHDFF-UHFFFAOYSA-N methyl salicylate Chemical compound COC(=O)C1=CC=CC=C1O OSWPMRLSEDHDFF-UHFFFAOYSA-N 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000001131 transforming effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/64—Circuits for processing colour signals
- H04N9/646—Circuits for processing colour signals for image enhancement, e.g. vertical detail restoration, cross-colour elimination, contour correction, chrominance trapping filters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/44—Receiver circuitry for the reception of television signals according to analogue transmission standards
- H04N5/57—Control of contrast or brightness
Definitions
- the present disclosure provides an image processing method, the method comprising: acquiring a YUV image; acquiring a low-frequency signal of an input signal of a Y channel in the YUV image; signal, calculate the high-frequency signal; perform curve stretching on the input signal and the low-frequency signal respectively to obtain the first signal and the second signal; calculate the third signal according to the high-frequency signal and the second signal; and calculating an output signal based on the first signal and the third signal.
- the low-frequency signal is acquired by performing low-pass filtering on the input signal.
- the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller.
- the touch-sensitive surface 431 may be implemented using resistive, capacitive, infrared, and surface acoustic wave types.
- the input unit 430 may also include other input devices 432 .
- other input devices 432 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Image Processing (AREA)
- Picture Signal Circuits (AREA)
Abstract
Provided are an image processing method and apparatus, an electronic device, and a storage medium. The method comprises: respectively performing curve stretching on an input signal and a low-frequency signal of the input signal, so as to obtain a first signal and a second signal; calculating a third signal according to a high-frequency signal of the input signal and the second signal; when the slope of a stretched curve is greater than 1, that is, when a dynamic range of an image video is pulled up, using the first signal as an output signal; and when the slope of the stretched curve is less than or equal to 1, that is, when the dynamic range of the image video is compressed, using the third signal as the output signal.
Description
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请主张在2020年11月24日在中国提交的中国专利申请号No.202011329774.0的优先权,其全部内容通过引用包含于此。This application claims priority to Chinese Patent Application No. 202011329774.0 filed in China on Nov. 24, 2020, the entire contents of which are incorporated herein by reference.
本公开涉及图像处理技术领域,尤其涉及一种图像处理方法、装置、电子设备以及存储介质。The present disclosure relates to the technical field of image processing, and in particular, to an image processing method, an apparatus, an electronic device, and a storage medium.
对比度增强是一种点处理方法,通过对像素亮度值的变换来实现,目前较常用的方法有很多,如灰度线性拉伸、分段线性拉伸、非线性拉伸、直方图调整等。关于全局对比度增强,通过对全图的像素做一条全局的灰度映射的曲线来增强对比度。Contrast enhancement is a point processing method, which is achieved by transforming pixel brightness values. There are many commonly used methods, such as grayscale linear stretching, piecewise linear stretching, nonlinear stretching, and histogram adjustment. Regarding global contrast enhancement, the contrast is enhanced by making a global grayscale mapping curve for the pixels of the whole image.
相关技术中,全局对比度增强是通过一条类S形的曲线拉伸图像,曲线的输入和输出动态范围(Dynamic Range)都是0-255灰阶,由于整体Dynamic Range保持不变,所以有区域的Dynamic Range被扩展,一定会有区域的Dynamic Range被压缩,被压缩的区域就会出现细节变弱甚至丢失。In the related art, the global contrast enhancement is to stretch the image through an S-shaped curve. The input and output dynamic ranges of the curve are both 0-255 grayscales. Since the overall Dynamic Range remains unchanged, there are regional If the Dynamic Range is expanded, there will be areas where the Dynamic Range will be compressed, and the compressed areas will have weaker or even lost details.
发明内容SUMMARY OF THE INVENTION
本公开提供一种图像处理方法、装置、电子设备以及存储介质,以解决图像视频进行对比度增强时由于全局曲线造成的图像细节变弱甚至丢失的问题。The present disclosure provides an image processing method, an apparatus, an electronic device and a storage medium to solve the problem of weakening or even loss of image details due to a global curve during contrast enhancement of an image and video.
根据本公开的第一方面,本公开提供一种图像处理方法,所述方法包括:获取YUV图像;获取所述YUV图像中Y通道的输入信号的低频信号;根据所述输入信号和所述低频信号,计算高频信号;将所述输入信号和所述低频信号分别进行曲线拉伸,得到第一信号和第二信号;根据所述高频信号和所述第二信号,计算第三信号;以及根据所述第一信号和所述第三信号,计算 输出信号。According to a first aspect of the present disclosure, the present disclosure provides an image processing method, the method comprising: acquiring a YUV image; acquiring a low-frequency signal of an input signal of a Y channel in the YUV image; signal, calculate the high-frequency signal; perform curve stretching on the input signal and the low-frequency signal respectively to obtain the first signal and the second signal; calculate the third signal according to the high-frequency signal and the second signal; and calculating an output signal based on the first signal and the third signal.
在一些实施例中,在获取所述YUV图像中Y通道的输入信号的低频信号的步骤中,通过对所述输入信号进行低通滤波,以获取所述低频信号。In some embodiments, in the step of acquiring the low-frequency signal of the input signal of the Y channel in the YUV image, the low-frequency signal is acquired by performing low-pass filtering on the input signal.
在一些实施例中,所述高频信号的计算公式为:In some embodiments, the calculation formula of the high-frequency signal is:
Y
ac=Y
in-Y
dc,
Y ac =Y in -Y dc ,
其中,Y
ac为所述高频信号,Y
in为所述输入信号,Y
dc为所述低频信号。
Wherein, Y ac is the high frequency signal, Y in is the input signal, and Y dc is the low frequency signal.
在一些实施例中,所述第三信号的计算公式为:In some embodiments, the calculation formula of the third signal is:
Y′
ac=Y′
dc+Y
ac,
Y′ ac =Y′ dc +Y ac ,
其中,Y′
ac为所述第三信号,Y′
dc为所述第二信号,Y
ac为所述高频信号。
Wherein, Y' ac is the third signal, Y' dc is the second signal, and Y ac is the high-frequency signal.
在一些实施例中,所述输出信号的计算公式为:In some embodiments, the calculation formula of the output signal is:
Y
out=k*Y′
in+(1-k)*Y′
ac,
Y out =k*Y′ in +(1-k)*Y′ ac ,
其中,Y
out为所述输出信号,Y′
in为所述第一信号,Y′
ac为所述第三信号,k为拉伸曲线的斜率。
Wherein, Y out is the output signal, Y' in is the first signal, Y' ac is the third signal, and k is the slope of the stretching curve.
在一些实施例中,当所述拉伸曲线上的相邻两点的纵坐标的差值大于一预设值时,所述斜率k为1,其中所述纵坐标为所述输入信号和所述低频信号的期望被拉升后的信号值。In some embodiments, when the difference between the ordinates of two adjacent points on the stretching curve is greater than a predetermined value, the slope k is 1, wherein the ordinate is the input signal and the The expected signal value after the low frequency signal is pulled up.
在一些实施例中,当所述拉伸曲线上的相邻两点的纵坐标的差值小于或等于一预设值时,所述斜率k为0,其中所述纵坐标为所述输入信号和所述低频信号的期望被拉升后的信号值。In some embodiments, when the difference between the ordinates of two adjacent points on the stretching curve is less than or equal to a predetermined value, the slope k is 0, wherein the ordinate is the input signal and the desired signal value after the low frequency signal is pulled up.
根据本公开的第二方面,本公开提供一种图像处理装置,所述图像处理装置包括:第一获取模块,用于获取YUV图像;第二获取模块,用于获取所述YUV图像中Y通道的输入信号的低频信号;第一计算模块,用于根据所述输入信号和所述低频信号,计算高频信号;拉伸模块,用于将所述输入信号和所述低频信号分别拉伸至第一信号和第二信号;第二计算模块,用于根据所述高频信号和所述第二信号,计算第三信号;以及第三计算模块,用于根据所述第一信号和所述第三信号,计算输出信号。According to a second aspect of the present disclosure, the present disclosure provides an image processing apparatus, the image processing apparatus comprising: a first acquisition module for acquiring a YUV image; a second acquisition module for acquiring a Y channel in the YUV image The low-frequency signal of the input signal of a first signal and a second signal; a second calculation module for calculating a third signal according to the high-frequency signal and the second signal; and a third calculation module for calculating a third signal according to the first signal and the second signal The third signal, the calculated output signal.
根据本公开的第三方面,本公开提供一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如上述的图像处理方法的步骤。According to a third aspect of the present disclosure, the present disclosure provides an electronic device comprising a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being executed by the The processor implements the steps of the image processing method described above when executed.
根据本公开的第四方面,本公开提供一种可读存储介质,所述可读存储 介质上存储程序或指令,所述程序或指令被处理器执行时实现如上述的图像处理方法。According to a fourth aspect of the present disclosure, the present disclosure provides a readable storage medium, on which a program or an instruction is stored, and when the program or the instruction is executed by a processor, implements the above-mentioned image processing method.
与相关技术相比,本公开的有益效果:通过分别对输入信号以及输入信号的低频信号进行曲线拉伸,得到第一信号和第二信号,并根据输入信号的高频信号以及第二信号计算第三信号,当拉伸曲线的斜率大于1,即图像视频的动态范围被拉升时,输出信号取第一信号,当拉伸曲线的斜率小于或等于1,即图像视频的动态范围被压缩时,输出信号取第三信号,从而保护高频信号不被压缩,实现达到更好对比度的同时,避免图像视频的细节变弱或丢失,进而提升图像视频的质量。Compared with the related art, the beneficial effect of the present disclosure is: by performing curve stretching on the input signal and the low-frequency signal of the input signal respectively, the first signal and the second signal are obtained, and the calculation is performed according to the high-frequency signal and the second signal of the input signal. For the third signal, when the slope of the stretching curve is greater than 1, that is, the dynamic range of the image and video is raised, the output signal takes the first signal, and when the slope of the stretching curve is less than or equal to 1, that is, the dynamic range of the image and video is compressed When the output signal is the third signal, the high-frequency signal is protected from being compressed, and better contrast is achieved while avoiding the weakening or loss of details of the image and video, thereby improving the quality of the image and video.
图1为本公开实施例提供的一种图像处理方法的步骤流程示意图。FIG. 1 is a schematic flowchart of steps of an image processing method according to an embodiment of the present disclosure.
图2为本公开实施例提供的一种图像处理装置的结构示意图。FIG. 2 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present disclosure.
图3为本公开实施例提供的电子设备的结构示意图。FIG. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
图4为本公开实施例提供的电子设备的具体结构示意图。FIG. 4 is a schematic diagram of a specific structure of an electronic device provided by an embodiment of the present disclosure.
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only some, but not all, embodiments of the present disclosure. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present disclosure.
如图1所示,本公开实施例提供一种图像处理方法,应用于电子设备,该方法包括步骤S11至步骤S16。As shown in FIG. 1 , an embodiment of the present disclosure provides an image processing method, which is applied to an electronic device, and the method includes steps S11 to S16 .
步骤S11,获取YUV图像。Step S11, acquiring a YUV image.
其中,YUV是一种颜色编码方法。YUV是编译true-color颜色空间(color space)的种类,Y'UV,YUV,YCbCr,YPbPr等专有名词都可以称为YUV,彼此有重叠。“Y”表示明亮度(Luminance、Luma),“U”和“V”则是色度、浓度(Chrominance、Chroma)。Among them, YUV is a color coding method. YUV is a type of compiling true-color color space. Y'UV, YUV, YCbCr, YPbPr and other proper nouns can be called YUV, which overlap each other. "Y" represents brightness (Luminance, Luma), and "U" and "V" represent chromaticity and density (Chrominance, Chroma).
步骤S12,获取所述YUV图像中Y通道的输入信号的低频信号。Step S12, acquiring the low-frequency signal of the input signal of the Y channel in the YUV image.
在本公开实施例中,通过对所述输入信号进行低通滤波,以获取所述低频信号。其中,对进行低通滤波的滤波器不做限定。In this embodiment of the present disclosure, the low-frequency signal is obtained by performing low-pass filtering on the input signal. The filter for low-pass filtering is not limited.
步骤S13,根据所述输入信号和所述低频信号,计算高频信号。Step S13, calculating a high frequency signal according to the input signal and the low frequency signal.
在本公开实施例中,可选的,所述高频信号的计算公式为:Y
ac=Y
in-Y
dc,其中,Y
ac为所述高频信号,Y
in为所述输入信号,Y
dc为所述低频信号。
In the embodiment of the present disclosure, optionally, the calculation formula of the high-frequency signal is: Y ac =Y in -Y dc , where Y ac is the high-frequency signal, Y in is the input signal, Y dc is the low frequency signal.
当然,在本公开的其他一些实施例中,也不排除采用其他计算公式计算高频信号,例如在上述计算公式中为所述输入信号和/或所述低频信号赋予一定的权重等。Certainly, in some other embodiments of the present disclosure, other calculation formulas are not excluded to calculate the high frequency signal, for example, a certain weight is assigned to the input signal and/or the low frequency signal in the above calculation formula.
步骤S14,将所述输入信号和所述低频信号分别进行曲线拉伸,得到第一信号和第二信号。Step S14, the input signal and the low-frequency signal are respectively subjected to curve stretching to obtain a first signal and a second signal.
在一些实施例中,该拉伸曲线可以为S形曲线或直方图均衡化生成的曲线,此处不做限定。In some embodiments, the stretching curve may be an S-shaped curve or a curve generated by histogram equalization, which is not limited here.
步骤S15,根据所述高频信号和所述第二信号,计算第三信号。Step S15, calculating a third signal according to the high-frequency signal and the second signal.
在本公开实施例中,可选的,所述第三信号的计算公式为:Y′
ac=Y′
dc+Y
ac,其中,Y′
ac为所述第三信号,Y′
dc为所述第二信号,Y
ac为所述高频信号。其中,第三信号是包括低频信号和高频信号的完整信号。
In the embodiment of the present disclosure, optionally, the calculation formula of the third signal is: Y' ac =Y' dc +Y ac , where Y' ac is the third signal, and Y' dc is the The second signal, Y ac is the high frequency signal. Wherein, the third signal is a complete signal including a low frequency signal and a high frequency signal.
当然,在本公开的其他一些实施例中,也不排除采用其他计算公式计算第三信号,例如在上述计算公式中为所述高频信号和/或所述第二信号赋予一定的权重等。Certainly, in some other embodiments of the present disclosure, other calculation formulas are not excluded to calculate the third signal, for example, a certain weight is assigned to the high-frequency signal and/or the second signal in the above calculation formula.
步骤S16,根据所述第一信号和所述第三信号,计算输出信号。Step S16, calculating an output signal according to the first signal and the third signal.
在本公开实施例中,可选的,所述输出信号的计算公式为:Y
out=k*Y′
in+(1-k)*Y′
ac,其中,Y
out为所述输出信号,Y′
in为所述第一信号,Y′
ac为所述第三信号,k为拉伸曲线的斜率。
In the embodiment of the present disclosure, optionally, the calculation formula of the output signal is: Y out =k*Y′ in +(1-k)*Y′ ac , where Y out is the output signal, Y ' in is the first signal, Y'ac is the third signal, and k is the slope of the stretching curve.
当然,在本公开的其他一些实施例中,也不排除采用其他计算公式计算输出信号,例如输出信号为第一信号和第三信号之和赋予一定的比例系数等。Certainly, in some other embodiments of the present disclosure, other calculation formulas are not excluded to calculate the output signal, for example, the output signal assigns a certain proportional coefficient to the sum of the first signal and the third signal.
具体的,当所述拉伸曲线上的相邻两点的纵坐标的差值大于一预设值时,所述斜率k为1;当所述拉伸曲线上的相邻两点的纵坐标的差值小于或等于一预设值时,所述斜率k为0。其中所述纵坐标为所述输入信号和所述低频信号的期望被拉升后的信号值。由此,保护高频信号不被压缩,实现达到更 好对比度的同时,避免图像视频的细节变弱或丢失,进而提升图像视频的质量。Specifically, when the difference between the ordinates of two adjacent points on the stretching curve is greater than a preset value, the slope k is 1; when the ordinates of the two adjacent points on the stretching curve are The slope k is 0 when the difference between is less than or equal to a predetermined value. The ordinate is the expected signal value of the input signal and the low-frequency signal after being pulled up. In this way, the high-frequency signal is protected from being compressed, and while achieving better contrast, the details of the image and video are prevented from being weakened or lost, thereby improving the quality of the image and video.
如图2所示,本公开实施例提供一种图像处理装置,该装置包括第一获取模块21、第二获取模块22、第一计算模块23、拉伸模块24、第二计算模块25以及第三计算模块26。As shown in FIG. 2, an embodiment of the present disclosure provides an image processing apparatus, the apparatus includes a first acquisition module 21, a second acquisition module 22, a first calculation module 23, a stretching module 24, a second calculation module 25, and a first Three calculation modules 26 .
第一获取模块21用于获取YUV图像。The first acquisition module 21 is used to acquire YUV images.
第二获取模块22用于获取所述YUV图像中Y通道的输入信号的低频信号。The second acquisition module 22 is configured to acquire the low-frequency signal of the input signal of the Y channel in the YUV image.
在本公开实施例中,通过对所述输入信号进行低通滤波,以获取所述低频信号。其中,对进行低通滤波的滤波器不做限定。In this embodiment of the present disclosure, the low-frequency signal is obtained by performing low-pass filtering on the input signal. The filter for low-pass filtering is not limited.
第一计算模块23用于根据所述输入信号和所述低频信号,计算高频信号。The first calculation module 23 is configured to calculate the high frequency signal according to the input signal and the low frequency signal.
在本公开实施例中,所述高频信号的计算公式为:Y
ac=Y
in-Y
dc,其中,Y
ac为所述高频信号,Y
in为所述输入信号,Y
dc为所述低频信号。
In the embodiment of the present disclosure, the calculation formula of the high-frequency signal is: Y ac =Y in -Y dc , where Y ac is the high-frequency signal, Y in is the input signal, and Y dc is the low frequency signal.
拉伸模块24用于将所述输入信号和所述低频信号分别进行曲线拉伸,得到第一信号和第二信号。The stretching module 24 is configured to perform curve stretching on the input signal and the low-frequency signal respectively to obtain a first signal and a second signal.
在一些实施例中,该拉伸曲线可以为S形曲线或直方图均衡化生成的曲线,此处不做限定。In some embodiments, the stretching curve may be an S-shaped curve or a curve generated by histogram equalization, which is not limited here.
第二计算模块25用于根据所述高频信号和所述第二信号,计算第三信号。The second calculation module 25 is configured to calculate a third signal according to the high frequency signal and the second signal.
在本公开实施例中,所述第三信号的计算公式为:Y′
ac=Y′
dc+Y
ac,其中,Y′
ac为所述第三信号,Y′
dc为所述第二信号,Y
ac为所述高频信号。其中,第三信号是包括低频信号和高频信号的完整信号。
In the embodiment of the present disclosure, the calculation formula of the third signal is: Y' ac =Y' dc +Y ac , where Y' ac is the third signal, Y' dc is the second signal, Y ac is the high frequency signal. Wherein, the third signal is a complete signal including a low frequency signal and a high frequency signal.
第三计算模块26用于根据所述第一信号和所述第三信号,计算输出信号。The third calculation module 26 is configured to calculate the output signal according to the first signal and the third signal.
在本公开实施例中,所述输出信号的计算公式为:Y
out=k*Y′
in+(1-k)*Y′
ac,其中,Y
out为所述输出信号,Y′
in为所述第一信号,Y′
ac为所述第三信号,k为拉伸曲线的斜率。
In the embodiment of the present disclosure, the calculation formula of the output signal is: Y out =k*Y' in +(1-k)*Y' ac , where Y out is the output signal, and Y' in is the The first signal, Y'ac is the third signal, and k is the slope of the stretching curve.
具体的,当所述拉伸曲线上的相邻两点的纵坐标的差值大于一预设值时,所述斜率k为1;当所述拉伸曲线上的相邻两点的纵坐标的差值小于或等于一预设值时,所述斜率k为0。其中所述纵坐标为所述输入信号和所述低频信号的期望被拉升后的信号值。由此,保护高频信号不被压缩,实现达到更 好对比度的同时,避免图像视频的细节变弱或丢失,进而提升图像视频的质量。Specifically, when the difference between the ordinates of two adjacent points on the stretching curve is greater than a preset value, the slope k is 1; when the ordinates of the two adjacent points on the stretching curve are The slope k is 0 when the difference between is less than or equal to a predetermined value. The ordinate is the expected signal value of the input signal and the low-frequency signal after being pulled up. In this way, the high-frequency signal is protected from being compressed, and while achieving better contrast, the details of the image and video are prevented from being weakened or lost, thereby improving the quality of the image and video.
参阅图3,本公开实施例还提供一种电子设备300,该电子设备300可以是手机、平板以及电脑等设备。如图3所示,电子设备300包括处理器301、存储器302。其中,处理器301与存储器302电性连接。Referring to FIG. 3 , an embodiment of the present disclosure further provides an electronic device 300 , and the electronic device 300 may be devices such as a mobile phone, a tablet, and a computer. As shown in FIG. 3 , the electronic device 300 includes a processor 301 and a memory 302 . The processor 301 is electrically connected to the memory 302 .
处理器301是电子设备300的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器302内的应用程序,以及调用存储在存储器302内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。The processor 301 is the control center of the electronic device 300, uses various interfaces and lines to connect various parts of the entire electronic device, executes the electronic device by running or loading the application program stored in the memory 302 and calling the data stored in the memory 302. Various functions of the device and processing data, so as to carry out the overall monitoring of the electronic device.
在本实施例中,该电子设备300设有多个存储分区,该多个存储分区包括***分区和目标分区,电子设备300中的处理器301会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器302中,并由处理器301来运行存储在存储器302中的应用程序,从而实现各种功能:In this embodiment, the electronic device 300 is provided with multiple storage partitions, and the multiple storage partitions include a system partition and a target partition. The instructions corresponding to the process of the program are loaded into the memory 302, and the processor 301 runs the application program stored in the memory 302, thereby realizing various functions:
获取YUV图像;Get YUV image;
获取所述YUV图像中Y通道的输入信号的低频信号;Obtain the low-frequency signal of the input signal of the Y channel in the YUV image;
根据所述输入信号和所述低频信号,计算高频信号;calculating a high frequency signal according to the input signal and the low frequency signal;
将所述输入信号和所述低频信号分别进行曲线拉伸,得到第一信号和第二信号;performing curve stretching on the input signal and the low-frequency signal respectively to obtain a first signal and a second signal;
根据所述高频信号和所述第二信号,计算第三信号;以及calculating a third signal from the high frequency signal and the second signal; and
根据所述第一信号和所述第三信号,计算输出信号。An output signal is calculated from the first signal and the third signal.
参阅图4,图4示出了本公开实施例提供的电子设备400的具体结构框图,该电子设备400可以用于实施上述实施例中提供的图像处理方法。该电子设备400可以为手机或平板。电子设备400还包括以下部件。Referring to FIG. 4 , FIG. 4 shows a specific structural block diagram of an electronic device 400 provided by an embodiment of the present disclosure, and the electronic device 400 may be used to implement the image processing method provided in the foregoing embodiments. The electronic device 400 may be a mobile phone or a tablet. The electronic device 400 also includes the following components.
RF电路410用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。RF电路410可包括各种相关技术中的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。RF电路410可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者 城域网。上述的无线网络可以使用各种通信标准、协议及技术,包括但并不限于全球移动通信***(Global System for Mobile Communication,GSM)、增强型移动通信技术(Enhanced Data GSM Environment,EDGE),宽带码分多址技术(Wideband Code Division Multiple Access,WCDMA),码分多址技术(Code Division Access,CDMA)、时分多址技术(Time Division Multiple Access,TDMA),无线保真技术(Wireless Fidelity,Wi-Fi)(如美国电气和电子工程师协会标准IEEE 802.11a,IEEE 802.11b,IEEE802.11g和/或IEEE802.11n)、网络电话(Voice over Internet Protocol,VoIP)、全球微波互联接入(Worldwide Interoperability for Microwave Access,Wi-Max)、其他用于邮件、即时通讯及短消息的协议,以及任何其他合适的通讯协议,甚至可包括那些当前仍未被开发出来的协议。The RF circuit 410 is used for receiving and sending electromagnetic waves, realizing mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. RF circuitry 410 may include various related art circuit elements for performing these functions, eg, antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, Subscriber Identity Module (SIM) cards, memory, and the like. The RF circuit 410 may communicate with various networks such as the Internet, an intranet, a wireless network, or with other devices over a wireless network. The aforementioned wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network. The above-mentioned wireless network can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), wideband code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Code Division Multiple Access (Code Division Access, CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wireless Fidelity, Wi- Fi) (such as IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE802.11n), Voice over Internet Protocol (VoIP), Worldwide Interoperability for Microwave Access, Wi-Max), other protocols for mail, instant messaging, and short messaging, and any other suitable communication protocols, even those that are not currently being developed.
存储器420可用于存储软件程序以及模块,如上述实施例中图像处理方法对应的程序指令/模块,处理器480通过运行存储在存储器420内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现图像处理方法的功能。存储器420可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器420可进一步包括相对于处理器480远程设置的存储器,这些远程存储器可以通过网络连接至电子设备400。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 420 can be used to store software programs and modules, such as program instructions/modules corresponding to the image processing method in the above-mentioned embodiments, and the processor 480 executes various functional applications and data processing by running the software programs and modules stored in the memory 420. , that is, the function of realizing the image processing method. Memory 420 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 420 may further include memory located remotely from processor 480, which may be connected to electronic device 400 through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
输入单元430可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入单元430可包括触敏表面431以及其他输入设备432。触敏表面431,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面431上或在触敏表面431附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面431可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器480,并能接收处理器480发来的命令并加以执行。此外, 可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面431。除了触敏表面431,输入单元430还可以包括其他输入设备432。具体地,其他输入设备432可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 430 may be used to receive input numerical or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 430 may include a touch-sensitive surface 431 as well as other input devices 432 . Touch-sensitive surface 431, also known as a touch display or trackpad, collects user touch operations on or near it (such as a user using a finger, stylus, etc., any suitable object or accessory on or on touch-sensitive surface 431). operation near the touch-sensitive surface 431), and drive the corresponding connection device according to a preset program. Optionally, the touch-sensitive surface 431 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 480, and can receive the command sent by the processor 480 and execute it. Additionally, the touch-sensitive surface 431 may be implemented using resistive, capacitive, infrared, and surface acoustic wave types. In addition to the touch-sensitive surface 431 , the input unit 430 may also include other input devices 432 . Specifically, other input devices 432 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.
显示单元440可用于显示由用户输入的信息或提供给用户的信息以及电子设备400的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元440可包括显示面板441,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板441。进一步的,触敏表面431可覆盖显示面板441,当触敏表面431检测到在其上或附近的触摸操作后,传送给处理器480以确定触摸事件的类型,随后处理器480根据触摸事件的类型在显示面板441上提供相应的视觉输出。虽然在图4中,触敏表面431与显示面板441是作为两个独立的部件来实现输入和输出功能,但是在某些实施例中,可以将触敏表面431与显示面板441集成而实现输入和输出功能。The display unit 440 may be used to display information input by or provided to the user and various graphical user interfaces of the electronic device 400, which may be composed of graphics, text, icons, videos, and any combination thereof. The display unit 440 may include a display panel 441, and optionally, the display panel 441 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), and the like. Further, the touch-sensitive surface 431 may cover the display panel 441, and when the touch-sensitive surface 431 detects a touch operation on or near it, it is transmitted to the processor 480 to determine the type of the touch event, and then the processor 480 determines the type of the touch event according to the touch event. Type provides corresponding visual output on display panel 441 . Although in FIG. 4, the touch-sensitive surface 431 and the display panel 441 are implemented as two separate components to realize the input and output functions, in some embodiments, the touch-sensitive surface 431 and the display panel 441 may be integrated to realize the input and output functions.
电子设备400还可包括至少一种传感器450,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板441的亮度,接近传感器可在电子设备400移动到耳边时,关闭显示面板441和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于电子设备400还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The electronic device 400 may also include at least one sensor 450, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 441 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 441 when the electronic device 400 is moved to the ear and/or backlight. As a kind of motion sensor, the gravitational acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used for applications that recognize the attitude of mobile phones (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. that can be configured in the electronic device 400, here No longer.
音频电路460、扬声器461,传声器462可提供用户与电子设备400之间的音频接口。音频电路460可将接收到的音频数据转换后的电信号,传输到扬声器461,由扬声器461转换为声音信号输出;另一方面,传声器462将收集的声音信号转换为电信号,由音频电路460接收后转换为音频数据,再将音频数据输出处理器480处理后,经RF电路410以发送给比如另一终端, 或者将音频数据输出至存储器420以便进一步处理。音频电路460还可能包括耳塞插孔,以提供外设耳机与电子设备400的通信。The audio circuit 460 , the speaker 461 , and the microphone 462 may provide an audio interface between the user and the electronic device 400 . The audio circuit 460 can convert the received audio data into an electrical signal, and transmit it to the speaker 461, and the speaker 461 converts it into a sound signal for output; on the other hand, the microphone 462 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 460 After receiving, it is converted into audio data, and then the audio data is output to the processor 480 for processing, and then sent to, for example, another terminal through the RF circuit 410, or the audio data is output to the memory 420 for further processing. Audio circuitry 460 may also include an earplug jack to provide for communication of peripheral headphones with electronic device 400 .
电子设备400通过传输模块470(例如Wi-Fi模块)可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图4示出了传输模块470,但是可以理解的是,其并不属于电子设备400的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。The electronic device 400 can help users to send and receive emails, browse web pages, access streaming media, etc. through the transmission module 470 (eg, a Wi-Fi module), which provides users with wireless broadband Internet access. Although FIG. 4 shows the transmission module 470, it can be understood that it does not belong to the essential structure of the electronic device 400, and can be completely omitted as required within the scope of not changing the essence of the invention.
处理器480是电子设备400的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器420内的软件程序和/或模块,以及调用存储在存储器420内的数据,执行电子设备400的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器480可包括一个或多个处理核心;在一些实施例中,处理器480可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器480中。The processor 480 is the control center of the electronic device 400, uses various interfaces and lines to connect various parts of the entire mobile phone, runs or executes the software programs and/or modules stored in the memory 420, and calls the data stored in the memory 420. , perform various functions of the electronic device 400 and process data, so as to monitor the mobile phone as a whole. Optionally, the processor 480 may include one or more processing cores; in some embodiments, the processor 480 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface and Applications, etc., the modem processor mainly deals with wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 480.
电子设备400还包括给各个部件供电的电源490(比如电池),在一些实施例中,电源可以通过电源管理***与处理器480逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。电源490还可以包括一个或一个以上的直流或交流电源、再充电***、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The electronic device 400 also includes a power source 490 (such as a battery) for powering the various components. In some embodiments, the power source may be logically connected to the processor 480 through a power management system to manage charging, discharging, and power consumption through the power management system. management and other functions. Power supply 490 may also include one or more DC or AC power sources, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and any other components.
尽管未示出,电子设备400还可以包括摄像头(如前置摄像头、后置摄像头)、蓝牙模块等,在此不再赘述。具体在本实施例中,电子设备的显示单元是触摸屏显示器,电子设备还包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行一个或者一个以上程序包含用于进行以下操作的指令:Although not shown, the electronic device 400 may further include a camera (eg, a front-facing camera, a rear-facing camera), a Bluetooth module, and the like, which will not be repeated here. Specifically in this embodiment, the display unit of the electronic device is a touch screen display, the electronic device further includes a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more programs. The above processor executing one or more programs contains instructions for:
获取YUV图像;Get YUV image;
获取所述YUV图像中Y通道的输入信号的低频信号;Obtain the low-frequency signal of the input signal of the Y channel in the YUV image;
根据所述输入信号和所述低频信号,计算高频信号;calculating a high frequency signal according to the input signal and the low frequency signal;
将所述输入信号和所述低频信号分别进行曲线拉伸,得到第一信号和第二信号;performing curve stretching on the input signal and the low-frequency signal respectively to obtain a first signal and a second signal;
根据所述高频信号和所述第二信号,计算第三信号;以及calculating a third signal from the high frequency signal and the second signal; and
根据所述第一信号和所述第三信号,计算输出信号。An output signal is calculated from the first signal and the third signal.
具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个模块的具体实施可参见前面的方法实施例,在此不再赘述。During specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above modules can refer to the previous method embodiments, which will not be repeated here.
本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过指令来完成,或通过指令控制相关的硬件来完成,该指令可以存储于一计算机可读的可读存储介质中,并由处理器进行加载和执行。为此,本公开实施例提供一种可读存储介质,其中存储有多条指令,该指令能够被处理器进行加载,以执行本公开实施例所提供的任一种图像处理方法中的步骤。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructions, or by instructions that control relevant hardware, and the instructions can be stored in a computer-readable readable storage medium, and is loaded and executed by the processor. To this end, the embodiments of the present disclosure provide a readable storage medium in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute steps in any image processing method provided by the embodiments of the present disclosure.
其中,该可读存储介质可以包括:只读存储器(Read Only Memory,ROM)、随机存取记忆体(Random Access Memory,RAM)、磁盘或光盘等。Wherein, the readable storage medium may include: a read only memory (Read Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
由于该可读存储介质中所存储的指令,可以执行本公开实施例所提供的任一种图像处理方法中的步骤,因此,可以实现本公开实施例所提供的任一种图像处理方法所能实现的有益效果,详见前面的实施例,在此不再赘述。以上各个操作的具体实施可参见前面的实施例,在此不再赘述。Since the instructions stored in the readable storage medium can execute the steps in any image processing method provided by the embodiments of the present disclosure, it is possible to realize the functions of any image processing method provided by the embodiments of the present disclosure. For the beneficial effects achieved, see the foregoing embodiments for details, and details are not repeated here. For the specific implementation of the above operations, reference may be made to the foregoing embodiments, and details are not described herein again.
本公开的有益效果在于:通过分别对输入信号以及输入信号的低频信号进行曲线拉伸,得到第一信号和第二信号,并根据输入信号的高频信号以及第二信号计算第三信号,当拉伸曲线的斜率大于1,即图像视频的动态范围被拉升时,输出信号取第一信号,当拉伸曲线的斜率小于或等于1,即图像视频的动态范围被压缩时,输出信号取第三信号,从而保护高频信号不被压缩,实现达到更好对比度的同时,避免图像视频的细节变弱或丢失,进而提升图像视频的质量。The beneficial effect of the present disclosure is that the first signal and the second signal are obtained by curve-stretching the input signal and the low-frequency signal of the input signal respectively, and the third signal is calculated according to the high-frequency signal and the second signal of the input signal. The slope of the stretching curve is greater than 1, that is, when the dynamic range of the image and video is pulled up, the output signal takes the first signal. When the slope of the stretching curve is less than or equal to 1, that is, when the dynamic range of the image and video is compressed, the output signal takes the first signal. The third signal protects the high-frequency signal from being compressed, and achieves better contrast while avoiding the weakening or loss of details of the image and video, thereby improving the quality of the image and video.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
以上对本公开实施例所提供的一种图像处理方法、***、可读存储介质及电子设备进行了详细介绍,本文中应用了具体个例对本公开的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本公开的技术方案及 其核心思想;本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本公开各实施例的技术方案的范围。The image processing method, system, readable storage medium, and electronic device provided by the embodiments of the present disclosure have been described in detail above. Specific examples are used in this paper to illustrate the principles and implementations of the present disclosure. The description is only used to help understand the technical solutions of the present disclosure and their core ideas; those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements to some of the technical features. However, these modifications or substitutions do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present disclosure.
Claims (10)
- 一种图像处理方法,包括:An image processing method, comprising:获取YUV图像;Get YUV image;获取所述YUV图像中Y通道的输入信号的低频信号;Obtain the low-frequency signal of the input signal of the Y channel in the YUV image;根据所述输入信号和所述低频信号,计算高频信号;calculating a high frequency signal according to the input signal and the low frequency signal;将所述输入信号和所述低频信号分别进行曲线拉伸,得到第一信号和第二信号;performing curve stretching on the input signal and the low-frequency signal respectively to obtain a first signal and a second signal;根据所述高频信号和所述第二信号,计算第三信号;以及calculating a third signal from the high frequency signal and the second signal; and根据所述第一信号和所述第三信号,计算输出信号。An output signal is calculated from the first signal and the third signal.
- 如权利要求1所述的图像处理方法,其中,在获取所述YUV图像中Y通道的输入信号的低频信号的步骤中,通过对所述输入信号进行低通滤波,以获取所述低频信号。The image processing method according to claim 1, wherein, in the step of acquiring the low-frequency signal of the input signal of the Y channel in the YUV image, the low-frequency signal is acquired by performing low-pass filtering on the input signal.
- 如权利要求1所述的图像处理方法,其中,所述高频信号的计算公式为:The image processing method according to claim 1, wherein the calculation formula of the high-frequency signal is:Y ac=Y in-Y dc, Y ac =Y in -Y dc ,其中,Y ac为所述高频信号,Y in为所述输入信号,Y dc为所述低频信号。 Wherein, Y ac is the high frequency signal, Y in is the input signal, and Y dc is the low frequency signal.
- 如权利要求1的图像处理方法,其中,所述第三信号的计算公式为:The image processing method of claim 1, wherein the calculation formula of the third signal is:Y′ ac=Y′ dc+Y ac, Y′ ac =Y′ dc +Y ac ,其中,Y′ ac为所述第三信号,Y′ dc为所述第二信号,Y ac为所述高频信号。 Wherein, Y' ac is the third signal, Y' dc is the second signal, and Y ac is the high-frequency signal.
- 如权利要求1的图像处理方法,其中,所述输出信号的计算公式为:The image processing method of claim 1, wherein the calculation formula of the output signal is:Y out=k*Y′ in+(1-k)*Y′ ac, Y out =k*Y′ in +(1-k)*Y′ ac ,其中,Y out为所述输出信号,Y′ in为所述第一信号,Y′ ac为所述第三信号,k为拉伸曲线的斜率。 Wherein, Y out is the output signal, Y' in is the first signal, Y' ac is the third signal, and k is the slope of the stretching curve.
- 如权利要求5的图像处理方法,其中,当所述拉伸曲线上的相邻两点的纵坐标的差值大于一预设值时,所述斜率k为1,其中所述纵坐标为所述输入信号和所述低频信号的期望被拉升后的信号值。The image processing method according to claim 5, wherein when the difference between the ordinates of two adjacent points on the stretch curve is greater than a preset value, the slope k is 1, wherein the ordinate is the The expected boosted signal value of the input signal and the low frequency signal.
- 如权利要求5的图像处理方法,其中,当所述拉伸曲线上的相邻两点的纵坐标的差值小于或等于一预设值时,所述斜率k为0,其中所述纵坐标为所述输入信号和所述低频信号的期望被拉升后的信号值。The image processing method according to claim 5, wherein when the difference between the ordinates of two adjacent points on the stretch curve is less than or equal to a preset value, the slope k is 0, wherein the ordinates is the expected boosted signal value of the input signal and the low frequency signal.
- 一种图像处理方法,包括:An image processing method, comprising:第一获取模块,用于获取YUV图像;The first acquisition module is used to acquire YUV images;第二获取模块,用于获取所述YUV图像中Y通道的输入信号的低频信号;The second acquisition module is used to acquire the low-frequency signal of the input signal of the Y channel in the YUV image;第一计算模块,用于根据所述输入信号和所述低频信号,计算高频信号;a first calculation module, configured to calculate a high frequency signal according to the input signal and the low frequency signal;拉伸模块,用于将所述输入信号和所述低频信号分别拉伸至第一信号和第二信号;a stretching module for stretching the input signal and the low-frequency signal to a first signal and a second signal, respectively;第二计算模块,用于根据所述高频信号和所述第二信号,计算第三信号;以及a second calculation module, configured to calculate a third signal according to the high frequency signal and the second signal; and第三计算模块,用于根据所述第一信号和所述第三信号,计算输出信号。A third calculation module, configured to calculate an output signal according to the first signal and the third signal.
- 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至7任一项所述的图像处理方法的步骤。An electronic device, comprising a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being executed by the processor to achieve as claimed in claims 1 to 7 The steps of any one of the image processing methods.
- 一种可读存储介质,其中,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至7任一项所述的图像处理方法。A readable storage medium, wherein a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the image processing method according to any one of claims 1 to 7 is implemented.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011329774.0A CN112532958B (en) | 2020-11-24 | 2020-11-24 | Image processing method, device, electronic equipment and readable storage medium |
CN202011329774.0 | 2020-11-24 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022110687A1 true WO2022110687A1 (en) | 2022-06-02 |
Family
ID=74993428
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/094570 WO2022110687A1 (en) | 2020-11-24 | 2021-05-19 | Image processing method and apparatus, electronic device, and readable storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112532958B (en) |
WO (1) | WO2022110687A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112532958B (en) * | 2020-11-24 | 2022-09-06 | 海宁奕斯伟集成电路设计有限公司 | Image processing method, device, electronic equipment and readable storage medium |
CN113160095B (en) * | 2021-05-25 | 2023-05-19 | 烟台艾睿光电科技有限公司 | Infrared detection signal pseudo-color processing method, device, system and storage medium |
CN115187465A (en) * | 2022-05-30 | 2022-10-14 | 中国矿业大学 | Flotation froth image enhancement method based on NSCT and image matching |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070009170A1 (en) * | 2005-07-05 | 2007-01-11 | Ali Corporation | Image enhancing system |
US20100303374A1 (en) * | 2009-06-01 | 2010-12-02 | Canon Kabushiki Kaisha | Image processing apparatus, image processing method, and storage medium |
CN102750680A (en) * | 2012-06-30 | 2012-10-24 | 四川农业大学 | Tea image enhancement method based on empirical mode decomposition and color space |
CN108665437A (en) * | 2018-05-10 | 2018-10-16 | 句容康泰膨润土有限公司 | A kind of image enchancing method based on layered shaping |
CN109788170A (en) * | 2018-12-25 | 2019-05-21 | 合肥芯福传感器技术有限公司 | It is a kind of based on infrared with video image processing system and method for visible light |
CN110232670A (en) * | 2019-06-19 | 2019-09-13 | 重庆大学 | A method of the image visual effect enhancing based on low-and high-frequency separation |
CN112532958A (en) * | 2020-11-24 | 2021-03-19 | 海宁奕斯伟集成电路设计有限公司 | Image processing method, image processing device, electronic equipment and readable storage medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0272783A (en) * | 1988-09-08 | 1990-03-13 | Toshiba Corp | Image signal processing device |
US5150433A (en) * | 1989-12-01 | 1992-09-22 | Eastman Kodak Company | Histogram/variance mechanism for detecting presence of an edge within block of image data |
US5394195A (en) * | 1993-06-14 | 1995-02-28 | Philips Electronics North America Corporation | Method and apparatus for performing dynamic gamma contrast control |
US20040120599A1 (en) * | 2002-12-19 | 2004-06-24 | Canon Kabushiki Kaisha | Detection and enhancement of backlit images |
CN103295204B (en) * | 2013-06-20 | 2015-12-02 | 河海大学常州校区 | A kind of image self-adapting enhancement method based on non-down sampling contourlet transform |
CN104902141B (en) * | 2015-06-08 | 2018-06-26 | 西安诺瓦电子科技有限公司 | Image processing method and device |
-
2020
- 2020-11-24 CN CN202011329774.0A patent/CN112532958B/en active Active
-
2021
- 2021-05-19 WO PCT/CN2021/094570 patent/WO2022110687A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070009170A1 (en) * | 2005-07-05 | 2007-01-11 | Ali Corporation | Image enhancing system |
US20100303374A1 (en) * | 2009-06-01 | 2010-12-02 | Canon Kabushiki Kaisha | Image processing apparatus, image processing method, and storage medium |
CN102750680A (en) * | 2012-06-30 | 2012-10-24 | 四川农业大学 | Tea image enhancement method based on empirical mode decomposition and color space |
CN108665437A (en) * | 2018-05-10 | 2018-10-16 | 句容康泰膨润土有限公司 | A kind of image enchancing method based on layered shaping |
CN109788170A (en) * | 2018-12-25 | 2019-05-21 | 合肥芯福传感器技术有限公司 | It is a kind of based on infrared with video image processing system and method for visible light |
CN110232670A (en) * | 2019-06-19 | 2019-09-13 | 重庆大学 | A method of the image visual effect enhancing based on low-and high-frequency separation |
CN112532958A (en) * | 2020-11-24 | 2021-03-19 | 海宁奕斯伟集成电路设计有限公司 | Image processing method, image processing device, electronic equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112532958B (en) | 2022-09-06 |
CN112532958A (en) | 2021-03-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022110687A1 (en) | Image processing method and apparatus, electronic device, and readable storage medium | |
TWI696146B (en) | Method and apparatus of image processing, computer reading storage medium and mobile terminal | |
WO2022100048A1 (en) | Image processing method and apparatus, electronic device, and readable storage medium | |
CN107093418B (en) | Screen display method, computer equipment and storage medium | |
TWI536847B (en) | Method and apparatus for adjusting the color gamut of a color image | |
WO2020199878A1 (en) | Display brightness adjusting method and related product | |
EP3040967A1 (en) | Color adjustment method and device | |
CN107705247B (en) | Image saturation adjusting method, terminal and storage medium | |
US11050942B2 (en) | Screen fill light photographing method for mobile terminal, system and mobile terminal | |
CN108280813A (en) | A kind of image processing method, terminal and computer readable storage medium | |
WO2020134789A1 (en) | Mobile terminal and method for controlling on and off of screen, and computer storage medium | |
US11915633B2 (en) | Screen color temperature control method, apparatus, storage medium, and mobile terminal | |
US11887276B2 (en) | Image processing method and display apparatus for adjusting format and resolution of input image in parallel and matrix manner | |
US11955098B2 (en) | Determining compensation value | |
CN111182236A (en) | Image synthesis method and device, storage medium and terminal equipment | |
WO2022100082A1 (en) | Image processing method and apparatus, electronic device, and readable storage medium | |
CN111158815B (en) | Dynamic wallpaper blurring method, terminal and computer readable storage medium | |
CN117116203A (en) | Screen brightness adjustment method and device, storage medium and electronic equipment | |
CN111263216B (en) | Video transmission method, device, storage medium and terminal | |
CN108320265B (en) | Image processing method, terminal and computer readable storage medium | |
CN112489082A (en) | Position detection method, position detection device, electronic equipment and readable storage medium | |
WO2022127790A1 (en) | Channel configuration method and apparatus, electronic device, and readable storage medium | |
CN111124327A (en) | Screen control method, multi-screen terminal and computer readable storage medium | |
CN112867171B (en) | WIFI connection method and device, storage medium and mobile terminal | |
CN111614901A (en) | Image shooting method and device, storage medium and terminal |
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: 21896202 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: 21896202 Country of ref document: EP Kind code of ref document: A1 |