CN102750673A - Method for improving image contrast - Google Patents

Method for improving image contrast Download PDF

Info

Publication number
CN102750673A
CN102750673A CN2011103919955A CN201110391995A CN102750673A CN 102750673 A CN102750673 A CN 102750673A CN 2011103919955 A CN2011103919955 A CN 2011103919955A CN 201110391995 A CN201110391995 A CN 201110391995A CN 102750673 A CN102750673 A CN 102750673A
Authority
CN
China
Prior art keywords
value
image
brightness
maximum
minimum
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011103919955A
Other languages
Chinese (zh)
Inventor
陈伟伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Digital Video Beijing Ltd
Original Assignee
China Digital Video Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Digital Video Beijing Ltd filed Critical China Digital Video Beijing Ltd
Priority to CN2011103919955A priority Critical patent/CN102750673A/en
Publication of CN102750673A publication Critical patent/CN102750673A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Television Receiver Circuits (AREA)
  • Transforming Electric Information Into Light Information (AREA)

Abstract

The invention discloses a method for improving image contrast. The method comprises the steps of reading an image and obtaining brightness values of all pixels of the image; according to the maximum critical value, the minimum critical value, the maximum threshold value, the minimum threshold value and an image modification area which are set by a user, comparing brightness values of all pixels with the maximum critical value and the minimum critical value in the image modification area one by one; adjusting the brightness value of the pixel, which is larger than the maximum critical value, as the maximum threshold value, and enabling the brightness value to be the maximum brightness value after adjustment; adjusting the brightness value of the pixel, which is smaller than the minimum critical value, as the minimum threshold value, and enabling the brightness value to be the minimum brightness value after adjustment; and regarding the obtained image as the image with high contrast. By the aid of an embodiment of the method, the user can produce the image with the high contrast accurately, quickly and freely, the producing quality of the image brightness effect is greatly improved, the producing efficiency of the image brightness effect is improved, and the cost is reduced.

Description

A kind of method that improves picture contrast
Technical field
The present invention relates to the image special effect field, particularly a kind of method that improves picture contrast.
Background technology
The contrast of image refer to light and shade zone in the image the brightest in vain and the darkest black between the measurement of different brightness levels, the big more representative contrast of disparity range is big more, the more little representative contrast of disparity range is more little.
Contrast is very crucial to the influence of visual effect, and in general contrast is big more, ImageClear more eye-catching, color is also distinct more gorgeous; And contrast is little, then can let whole image all dusky.High-contrast all has very great help for sharpness, details performance, the gray-level performance of image.In some black and white ContrastBigger text display, CADAspects such as demonstration and black-and-white photograph demonstration, the high-contrast product all has advantage at aspects such as black and white contrast, sharpness, integralities.
The method that is generally used for improving picture contrast in the prior art is: increase the light and shade contrast; Promptly let and become brighter than bright area; Let become darker than dark areas, but can only be simultaneously during with existing method increase light and shade contrast to brighter or carry out integrally-regulatedly than dark areas, can't make more meticulous adjusting; For example: in the time of only need regulating brightness value making in a certain critical value range, prior art also can't reach.
To sum up; Though prior art is deposited the contrast that can improve image, can't carry out brightness regulation according to brightness critical values according to the selected brightness critical values of user's demand, thereby the image after causing handling still has flaw; Can only regulate repeatedly, strengthen working time and work difficulty.
Summary of the invention
The invention provides a kind of method that improves picture contrast, greatly improve picture contrast and handle quality, improve treatment effeciency, reduce cost.
One aspect of the present invention provides a kind of method that improves picture contrast, comprising:
Reading images;
Obtain the brightness value of each pixel in the said image;
Obtain maximum threshold and minimum threshold that the user sets;
Obtain maximum critical value and lowest critical value that the user sets;
Obtain user's preset image modifier area;
The size of the brightness value of each pixel and said maximum critical value and lowest critical value in the more said one by one amending image zone;
Brightness value is adjusted into said maximum threshold greater than the brightness value of the pixel of said maximum critical value, as adjusted maximum brightness value;
Brightness value is adjusted into said minimum threshold less than the brightness value of the pixel of said lowest critical value, as adjusted minimum luminance value;
According to the image behind the adjusted brightness value of untreated pixel brightness value in said maximum brightness value, minimum luminance value and the said amending image zone;
Said reading images comprises:
Receive individual picture;
Said reading images comprises:
Receiver, video;
The single frames picture of intercepting from the video of said reception.
The maximal value of said threshold value and minimum value scope comprise: maximal value: 0-255, minimum value: 0-255.
The maximal value and the minimum value of said critical value comprise scope: maximal value: 0-255, minimum value: 0-255.
The said user's of obtaining preset image modifier area comprises:
Receive the modifier area instruction that the user sends;
Obtain the boundary parameter of modifier area in the said instruction according to said modifier area instruction;
The threshold value that the said user of obtaining sets comprises:
Extract the timing code of said image;
Call corresponding critical value and threshold value according to said timing code.
When the form of said timing code comprises, branch, second and frame.
Compared with prior art, the technical scheme of the embodiment of the invention has the following advantages:
Technical scheme according to the embodiment of the invention; Embodiment of the present invention; Let the user can carry out high-contrast image more accurate, faster, more freely through the selection of setting maximum critical value, lowest critical value, maximum threshold, minimum threshold and self defined area and make, especially important regional high-lighting is shown to reach through improving contrast to make image more clear, greatly improve picture contrast and handle quality; Improve treatment effeciency, reduce cost.
Description of drawings
Technical scheme for the clearer explanation embodiment of the invention; The accompanying drawing of required use is done simple the introduction in will describing embodiment below; Conspicuous, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is a kind of through setting the process flow diagram that critical value and threshold value improve the method for picture contrast for what the embodiment of the invention provided;
Fig. 2 improves the process flow diagram of the method for dynamic image contrast for a kind of corresponding relation that passes through setting-up time sign indicating number and critical value and threshold value that the embodiment of the invention provided.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention will be carried out clear, intactly description, it is pointed out that described embodiment only is a part of embodiment of the present invention, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Another that provides in the embodiment of the invention one is through regulating method flow diagram that brightness realizes special efficacy, and be as shown in Figure 1, comprising:
Step 101, reading images, image comprise individual picture or the single frames picture of intercepting from the video.
Step 102, obtain the brightness value of each pixel in the said image.
Step 103, obtain maximum critical value and lowest critical value that the user sets, maximum critical value is provided with scope and is: 0-255, lowest critical value are provided with scope and are: 0-255.
Step 104, obtain the user and set maximum threshold and minimum threshold, maximum threshold is provided with scope and is: 0-255, minimum threshold is provided with scope and is: 0-255.
Step 105, obtain user's preset image modifier area, the acquiescence modifier area is the entire image scope, and the user can limit the modification scope according to own needs, and the scope of modification can be the rectangular area, also can be the irregular area of freely choosing.
Step 106, the brightness value of each pixel and the size of said maximum critical value and said lowest critical value in the more said amending image zone one by one.
Step 1071, brightness value is adjusted into said maximum threshold greater than the brightness value of the pixel of said maximum critical value, as adjusted maximum brightness value.
Step 1072, brightness value is adjusted into said minimum threshold less than the brightness value of the pixel of said lowest critical value, as adjusted minimum luminance value.
Step 1073, brightness value is not adjusted smaller or equal to said maximum critical value and more than or equal to the brightness value of the pixel of said lowest critical value.
Step 108, obtain through regulating the image of high-contrast behind the brightness value,, can also regulate, promptly return step 105 repeating step 106 to step 107 through self defined area is set if the contrast that image local is arranged after revising is required dissatisfied.
The image of step 108, acquisition high-contrast.
In the embodiment of the invention,, can regulate the contrast of image targetedly through setting maximum critical value, lowest critical value, max threshold system, minimum gate restriction and modifier area.Not only can be but also can reach and improve the effect of contrast with the sharpness that strengthens image with the outstanding demonstration of important area; And can not impact the pixel of brightness value between maximum critical system and minimum critical system; Shorten the work period, reduced work difficulty, reduced cost.
Provide a kind of through threshold value being set and threshold value being set and the timing code corresponding relation is regulated the method that brightness realizes special efficacy in the embodiment of the invention two, concrete implementation method is as shown in Figure 2, comprising:
Step 201, reading images, image comprise individual picture or the single frames picture of intercepting from the video.
Step 202, obtain the brightness value of each pixel in the said image.
Step 203, obtain maximum critical value and lowest critical value that the user sets, maximum critical value is provided with scope and is: 0-255, lowest critical value are provided with scope and are: 0-255.
Step 204, obtain the user and set maximum threshold and minimum threshold, the maximum threshold scope is: 0-255, minimum threshold is provided with scope and is: 0-255.
Step 205, obtain user's preset image modifier area, the acquiescence modifier area is the entire image scope, and the user can limit the modification scope according to own needs, and the scope of modification can be the rectangular area, also can be the irregular area of freely choosing.
Step 206, the brightness value of each pixel and the size of said maximum critical value and said lowest critical value in the more said amending image zone one by one.
Step 2071, brightness value is adjusted to said maximum threshold greater than the brightness value of the pixel of said maximum critical value, as the maximum brightness value after regulating.
Step 2072, brightness value is adjusted to said minimum threshold less than the brightness value of the pixel of said lowest critical value, as the minimum luminance value after regulating.
Step 2073, brightness value is not adjusted smaller or equal to said maximum critical value and more than or equal to the brightness value of the pixel of said lowest critical value.
The image behind the adjusting brightness value is passed through in step 208, acquisition, if the brightness requirement that image local is arranged after revising is unsatisfied with, can also regulate through self defined area is set, and promptly returns step 204 repeating step 205-step 206.
Step 209, according to timing code call gate limit value, comprise following situation: the corresponding a plurality of timing codes of one group of threshold value, organize the corresponding timing code of threshold value more, organize the corresponding a plurality of timing codes of threshold value more; When the form of timing code comprises, branch, second and frame.
The image of step 210, acquisition high-contrast.
In the embodiment of the invention,, can regulate the contrast of image targetedly through setting maximum critical value, lowest critical value, max threshold system, minimum gate restriction and modifier area.Not only can be but also can reach and improve the effect of contrast with the sharpness that strengthens image with the outstanding demonstration of important area; And can not impact the pixel of brightness value between maximum critical system and minimum critical system; And corresponding relation through predefined threshold value and timing code; Can realize the dynamic adjustments of picture contrast, really reach fast, brightness special efficacy freely makes.
Through the description of above embodiment, those skilled in the art can be well understood to the present invention and can realize through software, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding; Technical scheme of the present invention can be come out with the embodied of software product, this software product can be stored in a non-volatile memory medium (can be CD-ROM, USB flash disk; Portable hard drive etc.) in; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
The above; Be merely a best specific embodiment of the present invention, but characteristic of the present invention is not limited thereto, any people who is familiar with this technology is in field of the present invention; The variation that can expect easily or modification all should be encompassed in the following claim of the present invention.

Claims (8)

1. a method that improves picture contrast is characterized in that, said method comprises:
Reading images;
Obtain the brightness value of each pixel in the said image;
Obtain maximum critical value and lowest critical value that the user sets;
Obtain maximum threshold and minimum threshold that the user sets;
Obtain user's preset image modifier area;
The size of the brightness value of each pixel and said maximum critical value and lowest critical value in the more said one by one amending image zone;
Brightness value is adjusted into said maximum threshold greater than the brightness value of the pixel of said maximum critical value, as adjusted maximum brightness value;
Brightness value is adjusted into said minimum threshold less than the brightness value of the pixel of said lowest critical value, as adjusted minimum luminance value;
According to the image behind the adjusted brightness value of untreated pixel brightness value in said maximum brightness value, minimum luminance value and the said amending image zone.
2. method according to claim 1 is characterized in that, said reading images comprises:
Receive individual picture.
3. method according to claim 1 is characterized in that, said reading images comprises:
Receiver, video;
The single frames picture of intercepting from the video of said reception.
4. method according to claim 1 is characterized in that, the maximal value of said threshold value and minimum value scope comprise: maximal value: 0-255, minimum value: 0-255.
5. method according to claim 1 is characterized in that, the maximal value and the minimum value of said critical value comprise scope: maximal value: 0-255, minimum value: 0-255.
6. method according to claim 1 is characterized in that, the said user's of obtaining preset image modifier area comprises:
Receive the modifier area instruction that the user sends;
Obtain the boundary parameter of modifier area in the said instruction according to said modifier area instruction.
7. method according to claim 1 is characterized in that, the threshold value that the said user of obtaining sets comprises:
Extract the timing code of said image;
Call corresponding critical value and threshold value according to said timing code.
8. method according to claim 7 is characterized in that, when the form of said timing code comprises, branch, second and frame.
CN2011103919955A 2011-11-30 2011-11-30 Method for improving image contrast Pending CN102750673A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103919955A CN102750673A (en) 2011-11-30 2011-11-30 Method for improving image contrast

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103919955A CN102750673A (en) 2011-11-30 2011-11-30 Method for improving image contrast

Publications (1)

Publication Number Publication Date
CN102750673A true CN102750673A (en) 2012-10-24

Family

ID=47030823

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103919955A Pending CN102750673A (en) 2011-11-30 2011-11-30 Method for improving image contrast

Country Status (1)

Country Link
CN (1) CN102750673A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105472228A (en) * 2014-06-27 2016-04-06 小米科技有限责任公司 Image processing method, image processing device and terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1995024694A1 (en) * 1994-03-08 1995-09-14 The University Of Connecticut Digital pixel-accurate intensity processing method for image information enhancement
US5524070A (en) * 1992-10-07 1996-06-04 The Research Foundation Of State University Of New York Local adaptive contrast enhancement
TW391130B (en) * 1996-08-20 2000-05-21 Silicon Integrated Sys Corp Method and apparatus for contrast enhancement of color images
CN101123081A (en) * 2007-04-13 2008-02-13 四川长虹电器股份有限公司 Brightness signal processing method
CN101212611A (en) * 2007-12-25 2008-07-02 青岛海信信芯科技有限公司 Contrast enhancement method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5524070A (en) * 1992-10-07 1996-06-04 The Research Foundation Of State University Of New York Local adaptive contrast enhancement
WO1995024694A1 (en) * 1994-03-08 1995-09-14 The University Of Connecticut Digital pixel-accurate intensity processing method for image information enhancement
TW391130B (en) * 1996-08-20 2000-05-21 Silicon Integrated Sys Corp Method and apparatus for contrast enhancement of color images
CN101123081A (en) * 2007-04-13 2008-02-13 四川长虹电器股份有限公司 Brightness signal processing method
CN101212611A (en) * 2007-12-25 2008-07-02 青岛海信信芯科技有限公司 Contrast enhancement method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
周明涛: "《Fireworks3网页图像设计》", 31 July 2000, 北京:机械工业出版社 *
汤晓春: ""遥感图像增强方法的研究及实现"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105472228A (en) * 2014-06-27 2016-04-06 小米科技有限责任公司 Image processing method, image processing device and terminal
CN105472228B (en) * 2014-06-27 2020-03-17 小米科技有限责任公司 Image processing method and device and terminal

Similar Documents

Publication Publication Date Title
CN109801605B (en) Screen brightness adjusting method, electronic equipment, mobile terminal and storage medium
CN102693532B (en) The automatic local directed complete set of image shadow and highlight
CN105574918B (en) A kind of material adding method, device and the terminal of 3D models
CN109313793A (en) Assess and reduce the near-sighted source property effect of electronic console
US9501843B2 (en) Fast face beautifying method for digital images
US10839495B2 (en) Computing devices and methods of image processing with input image data and reference tone mapping strength data
CN105047145A (en) Backlight brightness control method, backlight brightness control device and display terminal
CN105895054A (en) Adjustment method of output brightness, adjustment method of Gamma curve and display device
US8754902B2 (en) Color-space selective darkness and lightness adjustment
CN101707666A (en) Adjusting method and device with high dynamic range
CN111866482B (en) Display method, terminal and storage medium
CN108009997B (en) Method and device for adjusting image contrast
US9934560B2 (en) User sliders for simplified adjustment of images
CN109686342B (en) Image processing method and device
CN103810681B (en) Low-power consumption contrast enhancing method
CN106454303B (en) RGBW image processing methods and device
CN102663741A (en) Method for carrying out visual stereo perception enhancement on color digit image and system thereof
US20160110847A1 (en) Image Anti-Aliasing Method and Apparatus
CN103294429A (en) Display method and device
CN104935902A (en) Image color enhancement method and device, and electronic equipment
CN104200794A (en) Image adjusting method and display
CN103745430A (en) Rapid beautifying method of digital image
EP2500865A3 (en) Image segmentation apparatus, method and program
CN113596573A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
WO2020098624A1 (en) Display method and apparatus, vr display apparatus, device, and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20121024