Image contrast adjusting method, display device and storage medium

文档序号:1188221 发布日期:2020-09-22 浏览:17次 中文

阅读说明:本技术 一种图像对比度调整方法、显示装置及存储介质 (Image contrast adjusting method, display device and storage medium ) 是由 胡丽丽 于 2020-06-16 设计创作,主要内容包括:本发明公开了一种图像对比度调整方法、显示装置及存储介质,方法包括:获取图像的对比度增加值,根据对比度增加值确定原始对比度调整曲线;获取修正角度,根据修正角度确定修正曲线;根据修正曲线对原始对比度调整曲线进行修正,获取目标对比度调整曲线;根据目标对比度调整曲线对图像对比度进行调整;其中,修正曲线的斜率小于原始对比度调整曲线的斜率。本发明根据对比度增加值确定原始对比度调整曲线和修正曲线,然后利用斜率小于原始对比度调整曲线的修正曲线对原始对比度调整曲线进行修正,使用修正后的原始对比度调整曲线对图像对比度进行调整,拉低图像高灰阶部分的亮度,提高图像对比度的同时消除图像高灰阶反白的现象。(The invention discloses an image contrast adjusting method, a display device and a storage medium, wherein the method comprises the following steps: acquiring a contrast increasing value of the image, and determining an original contrast adjusting curve according to the contrast increasing value; acquiring a correction angle, and determining a correction curve according to the correction angle; correcting the original contrast adjustment curve according to the correction curve to obtain a target contrast adjustment curve; adjusting the image contrast according to the target contrast adjustment curve; wherein the slope of the correction curve is less than the slope of the original contrast adjustment curve. The original contrast adjustment curve and the correction curve are determined according to the contrast increase value, then the correction curve with the slope smaller than that of the original contrast adjustment curve is used for correcting the original contrast adjustment curve, the corrected original contrast adjustment curve is used for adjusting the image contrast, the brightness of the high gray scale part of the image is reduced, the image contrast is improved, and meanwhile the phenomenon of image high gray scale whitening is eliminated.)

1. An image contrast adjusting method, comprising the steps of:

obtaining a contrast increasing value of an image, and determining an original contrast adjusting curve according to the contrast increasing value;

acquiring a correction angle, and determining a correction curve according to the correction angle; wherein the slope of the correction curve is less than the slope of the original contrast adjustment curve;

correcting the original contrast adjustment curve according to the correction curve to obtain a target contrast adjustment curve;

and adjusting the image contrast according to the target contrast adjusting curve.

2. The method for adjusting image contrast of claim 1, wherein the original contrast adjustment curve corresponds to the following equation:

Yadd=256/(256-A)*Xadd

wherein, YaddFor the output gray scale, X, corresponding to the original contrast adjustment curveaddA is the contrast increment value for the input gray scale corresponding to the original contrast adjustment curve.

3. The method for adjusting image contrast according to claim 2, wherein the correction curve corresponds to an equation:

Yclip=256-[(256-Xgray)*tanΘ]

wherein, YclipFor correcting the output gray scale corresponding to the curve, XgrayTo correct the input gray level corresponding to the curve, Θ is the correction angle, which is determined or preset by the contrast increment value.

4. The method for adjusting image contrast according to claim 3, wherein the step of correcting the original contrast adjustment curve according to the correction curve to obtain a target contrast adjustment curve specifically includes:

acquiring an intersection point of the correction curve and the original contrast curve;

replacing the output gray scale corresponding to the original contrast curve from the intersection point to the high-order highest point with the output gray scale corresponding to the correction curve to obtain a target contrast adjustment curve; and the high-order highest point is a point corresponding to the maximum input gray scale of the original contrast curve.

5. The method for adjusting image contrast according to claim 4, wherein the correction angle is set according to a user requirement or determined according to a corresponding relationship between the correction angle and the contrast increase value.

6. The method for adjusting image contrast according to claim 5, wherein when the correction angle is determined according to the correspondence between the correction angle and the contrast increase value, the step of obtaining the correction angle specifically includes:

determining the corresponding relation between the correction angle and a preset angle threshold according to the corresponding relation between the contrast increasing value and a preset contrast threshold;

and acquiring the correction angle according to the corresponding relation between the correction angle and the preset angle threshold.

7. The image contrast adjusting method according to claim 6, wherein the preset angle threshold is in a range of 0 ° to 45 °.

8. The method for adjusting image contrast according to claim 4, wherein the step of replacing the output gray scale corresponding to the original contrast curve from the intersection point to the highest point of the higher order with the output gray scale corresponding to the correction curve, and the step of obtaining the target contrast adjustment curve further comprises:

and smoothing the intersection points.

9. A display device, comprising: a processor, a storage medium communicatively coupled to the processor, the storage medium adapted to store a plurality of instructions; the processor is adapted to invoke instructions in the storage medium to perform the steps of implementing the image contrast adjustment method of any of the preceding claims 1-8.

10. A storage medium having stored thereon a plurality of instructions adapted to be loaded and executed by a processor to perform the steps of implementing the image contrast adjustment method of any of claims 1-8.

Technical Field

The present invention relates to the field of image processing technologies, and in particular, to an image contrast adjustment method, a display device, and a storage medium.

Background

The image digital processing technology is a technology for digitizing an image and performing various kinds of processing. Various techniques for image quality processing, such as saturation adjustment, noise reduction, contrast adjustment, edge enhancement, and the like, can greatly improve and enhance image quality.

The essence of contrast adjustment is to expand (or compress) the original value range of the image pixel points to another value range, thereby enhancing (or reducing) the pixel point difference and finally achieving the purpose that human eyes can clearly distinguish the image difference. The existing contrast adjusting method is to improve the brightness slope of the picture, and the method can generate a high gray scale reverse white phenomenon while improving the picture brightness.

Accordingly, the prior art is yet to be improved and developed.

Disclosure of Invention

The present invention is directed to an image contrast adjusting method, a display device and a storage medium, which are provided to solve the above-mentioned drawbacks of the prior art, and aims to solve the problem that the method for improving image contrast by improving the brightness slope of a screen in the prior art may cause a high gray-scale reverse white phenomenon.

The technical scheme adopted by the invention for solving the technical problem is as follows:

an image contrast adjusting method, comprising the steps of:

obtaining a contrast increasing value of an image, and determining an original contrast adjusting curve according to the contrast increasing value;

acquiring a correction angle, and determining a correction curve according to the correction angle; wherein the slope of the correction curve is less than the slope of the original contrast adjustment curve;

correcting the original contrast adjustment curve according to the correction curve to obtain a target contrast adjustment curve;

and adjusting the image contrast according to the target contrast adjusting curve.

The image contrast adjusting method is characterized in that an equation corresponding to the original contrast adjusting curve is as follows:

Yadd=256/(256-A)*Xadd

wherein, YaddMapping of original contrast adjustment curvesOutput gray scale of XaddA is the contrast increment value for the input gray scale corresponding to the original contrast adjustment curve.

The image contrast adjusting method is characterized in that the equation corresponding to the correction curve is as follows:

Yclip=256-[(256-Xgray)*tanΘ]

wherein, YclipFor correcting the output gray scale corresponding to the curve, XgrayTo correct the input gray level corresponding to the curve, Θ is the correction angle, which is determined or preset by the contrast increment value.

The image contrast adjusting method, wherein the step of correcting the original contrast adjusting curve according to the correction curve to obtain a target contrast adjusting curve specifically includes:

acquiring an intersection point of the correction curve and the original contrast curve;

replacing the output gray scale corresponding to the original contrast curve from the intersection point to the high-order highest point with the output gray scale corresponding to the correction curve to obtain a target contrast adjustment curve; and the high-order highest point is a point corresponding to the maximum input gray scale of the original contrast curve.

The image contrast adjusting method is characterized in that the correction angle is set according to user requirements or determined according to the corresponding relation between the correction angle and the contrast increasing value.

The method for adjusting the contrast of the image, wherein when the correction angle is determined according to the corresponding relationship between the correction angle and the contrast increase value, the step of obtaining the correction angle specifically includes:

determining the corresponding relation between the correction angle and a preset angle threshold according to the corresponding relation between the contrast increasing value and a preset contrast threshold;

and acquiring the correction angle according to the corresponding relation between the correction angle and the preset angle threshold.

The image contrast adjusting method is characterized in that the preset angle threshold is in a range of 0-45 degrees.

The image contrast adjusting method includes the steps of replacing an output gray scale corresponding to the original contrast curve from the intersection point to the high-order highest point with an output gray scale corresponding to the correction curve, and acquiring a target contrast adjusting curve, and then:

and smoothing the intersection points.

A display device, comprising: a processor, a storage medium communicatively coupled to the processor, the storage medium adapted to store a plurality of instructions; the processor is adapted to invoke instructions in the storage medium to perform the steps of implementing the image contrast adjustment method.

A storage medium having stored thereon a plurality of instructions, wherein the instructions are adapted to be loaded and executed by a processor to perform the steps of implementing the image contrast adjustment method.

The invention has the beneficial effects that: the method determines an original contrast adjustment curve according to the contrast increase value, then corrects the original contrast adjustment curve by using a correction curve with a slope smaller than that of the original contrast adjustment curve, adjusts the image contrast by using the corrected original contrast adjustment curve, reduces the brightness of a high gray scale part of an image, improves the image contrast and eliminates the phenomenon of high gray scale whitening of the image.

Drawings

FIG. 1 is a flowchart of a preferred embodiment of an image contrast adjustment method according to an embodiment of the present invention;

FIG. 2 is a diagram illustrating an original contrast adjustment curve, a correction curve, and a standard contrast adjustment curve corresponding to input and output gray scales of 0-255;

FIG. 3 is a schematic diagram of a target contrast adjustment curve obtained after the original contrast adjustment curve is corrected by the correction curve in FIG. 2;

fig. 4 is a functional schematic diagram of a display device provided in an embodiment of the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

The image contrast adjusting method provided by the invention can be applied to a terminal. The terminal may be, but is not limited to, a television, various personal computers, a notebook computer, a mobile phone, a tablet computer, a vehicle-mounted computer, and a portable wearable device. The terminal of the invention adopts a multi-core processor. The processor of the terminal may be at least one of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a Video Processing Unit (VPU), and the like.

The invention provides an image contrast adjusting method, aiming at solving the problem that the image contrast is improved by improving the brightness slope of a picture in the prior art, and the method can cause a high gray scale reverse white phenomenon while improving the picture brightness.

Referring to fig. 1, fig. 1 is a flowchart illustrating an image contrast adjusting method according to a preferred embodiment of the present invention.

In a preferred embodiment of the present invention, the image contrast adjusting method is applied to a television, and the image contrast adjusting method includes the steps of:

s100, obtaining a contrast increasing value of the image, and determining an original contrast adjusting curve according to the contrast increasing value.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种电视机实时时钟待机唤醒系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类