CN102750672A - Method for realizing special effect through brightness adjustment - Google Patents
Method for realizing special effect through brightness adjustment Download PDFInfo
- Publication number
- CN102750672A CN102750672A CN2011103915600A CN201110391560A CN102750672A CN 102750672 A CN102750672 A CN 102750672A CN 2011103915600 A CN2011103915600 A CN 2011103915600A CN 201110391560 A CN201110391560 A CN 201110391560A CN 102750672 A CN102750672 A CN 102750672A
- Authority
- CN
- China
- Prior art keywords
- brightness
- value
- image
- threshold
- brightness value
- 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
Links
Images
Abstract
The invention discloses a method for realizing special effect through brightness adjustment. The method comprises the following steps of: reading an image and acquiring the brightness value of each pixel thereof; acquiring maximal and minimal threshold values set by a user and an image modification area; comparing the brightness value of each pixel in the image modification area with the maximal threshold value and the minimal threshold value one by one; adjusting the brightness values of pixels larger than the maximal threshold value to the maximal threshold value; adjusting the brightness values of pixels smaller than the smallest threshold value to the smallest threshold value; and obtaining an adjusted image according to the maximal brightness value, the minimum brightness value and unprocessed pixel brightness values in the image modification area, that is, generating image special effect with thresholds. By carrying out the embodiments of the invention, the user can produce brightness threshold special effect more rapidly and freely, so that the quality of image brightness special effect produced is greatly improved, the efficiency of image brightness special effect produced is increased, and the cost is reduced.
Description
Technical field
The present invention relates to the image special effect field, particularly a kind of through regulating the method for brightness realization special efficacy.
Background technology
Films such as the film that present spectators are watched, TV play all can add special efficacy through post-production.Special efficacy mainly comprises: brightness regulation, special-effects such as saturation degree adjusting.Wherein, brightness regulation is meant the dark brightness of light of film is regulated.Now spectators watch film to be not limited to the plot of film, more are the vision shocks that special efficacy that film adds is brought.Therefore, more special efficacy is by developing gradually.
Most existing non-linear editing software; All have the function of carrying out brightness regulation for film, still, the technology and the imperfection of this respect; For example; Because the reason of light causes a part of zone the excessive even exposure another part of brightness to occur because shade blocks the darker situation of light that occurs, existing brightness regulation can only be carried out integral body and lightened or dim, and wants exposure area and the darker zone of light are regulated simultaneously also and can't be realized at a certain section of film.
To sum up, in the prior art, this special efficacy of brightness regulation is still far from perfect, though can regulate the brightness of film, can only integral body lighten or dim, and can't regulate separately exposure or dark excessively zone according to user's demand.
Summary of the invention
The invention provides a kind of method, greatly improve the fabricating quality of brightness of image special efficacy, improve the make efficiency of brightness of image special efficacy, reduce cost of manufacture through adjusting brightness realization special efficacy.
The technical scheme of the embodiment of the invention is achieved in that
A kind of through regulating the method for brightness realization special efficacy, said method comprises:
Reading images
Obtain the brightness value of each pixel in the said image;
Obtain the user and set maximum threshold and minimum threshold;
Obtain user's preset image modifier area;
The size of the brightness value of each pixel and said maximum threshold and said minimum threshold in the more said one by one amending image zone;
Brightness value is adjusted to said maximum threshold greater than the brightness value of the pixel of said maximum threshold, as the maximum brightness value after regulating;
Brightness value is adjusted to said minimum threshold less than the brightness value of the pixel of said minimum threshold, as the minimum luminance value after regulating;
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;
Generate image special effect with thresholding according to the image behind the said adjusting brightness value;
Said reading images specifically comprises: receive individual picture;
Receiver, video;
Intercepting single frames picture from the said video that receives;
The maximal value of said threshold value and minimum value scope comprise:
Said peaked span is: 0-255;
The span of said minimum value is: 0-255;
The method of 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 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 the making of brightness special efficacy faster, more freely to image through the setting of maximum threshold and minimum threshold and the selection of self defined area, can greatly improve the fabricating quality of brightness of image special efficacy to lightening when especially will dim than dark areas than bright area; Improve the make efficiency of brightness of image special efficacy, reduce cost of manufacture.
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 the process flow diagram that threshold value adjusting brightness realizes the method for special efficacy is set for what the embodiment of the invention provided;
Fig. 2 is that a kind of that the embodiment of the invention provided regulates the process flow diagram that brightness realizes the method for special efficacy through threshold value and said threshold value and timing code corresponding relation are set.
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.
Provide another through regulating the method flow diagram that brightness realizes special efficacy in the embodiment of the invention one, concrete implementation method is 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: the brightness value that obtains each pixel in the said image.
Step 103: 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 104: 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 105: the size of the brightness value of each pixel and said maximum threshold and said minimum threshold in the more said one by one amending image zone.
Step 1061: brightness value is adjusted to said maximum threshold greater than the brightness value of the pixel of said maximum threshold, as the maximum brightness value after regulating.
Step 1062: brightness value is adjusted to said minimum threshold less than the brightness value of the pixel of said minimum threshold, as the minimum luminance value after regulating.
Step 1063: brightness value is not adjusted smaller or equal to said maximum threshold and more than or equal to the brightness value of the pixel of said minimum threshold.
Step 107: obtain through the image behind the adjusting brightness value,, can also regulate, promptly return step 104 repeating step 105 to step through self defined area is set if dissatisfied to the brightness requirement that image local is arranged after revising.
Step 108: generate image special effect according to the image behind the said adjusting brightness value with thresholding.
In the embodiment of the invention, through setting max threshold system and minimum gate restriction and setting and modifying zone, can carry out the adjustment that brightness promotes than dark areas to the carrying out brightness than bright area and reduce of image.So just can remedy owing to light cause too by force making public and the too weak image that causes dash area of light show soft inadequately clear inadequately; And can not impact, really reach fast, brightness special efficacy freely makes the pixel of brightness value between the restriction of max threshold system and minimum gate.
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.
The image behind the adjusting brightness value is passed through in step 207, 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.
In the embodiment of the invention, through setting max threshold system and minimum gate restriction and setting and modifying zone, can carry out the adjustment that brightness promotes than dark areas to the carrying out brightness than bright area and reduce of image.So just can remedy owing to light cause too by force making public and the too weak image that causes dash area of light show soft inadequately clear inadequately; And can not impact the pixel of brightness value between max threshold system and minimum gate restriction; And corresponding relation through predefined threshold value and timing code; Can realize the dynamic adjustments of brightness of image, 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 (7)
1. the method through adjusting brightness realization special efficacy is characterized in that, 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 user's preset image modifier area;
The size of the brightness value of each pixel and said maximum threshold and said minimum threshold in the more said one by one amending image zone;
Brightness value is adjusted to said maximum threshold greater than the brightness value of the pixel of said maximum threshold, as the maximum brightness value after regulating;
Brightness value is adjusted to said minimum threshold less than the brightness value of the pixel of said minimum threshold, as the minimum luminance value after regulating;
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;
Generate image special effect with thresholding according to the image behind the said adjusting brightness value.
2. method according to claim 1 is characterized in that, said reading images specifically comprises:
Receive individual picture.
3. method according to claim 1 is characterized in that, said reading images specifically comprises:
Receiver, video;
Intercepting single frames picture from the said video that receives.
4. method according to claim 1 is characterized in that, the maximal value of said threshold value and minimum value scope comprise:
Said peaked span is: 0-255;
The span of said minimum value is: 0-255.
5. method according to claim 1 is characterized in that, the method for 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.
6. 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 threshold value according to said timing code.
7. method according to claim 6 is characterized in that, when the form of said timing code comprises, branch, second and frame.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011103915600A CN102750672A (en) | 2011-11-30 | 2011-11-30 | Method for realizing special effect through brightness adjustment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011103915600A CN102750672A (en) | 2011-11-30 | 2011-11-30 | Method for realizing special effect through brightness adjustment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102750672A true CN102750672A (en) | 2012-10-24 |
Family
ID=47030822
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011103915600A Pending CN102750672A (en) | 2011-11-30 | 2011-11-30 | Method for realizing special effect through brightness adjustment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102750672A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107680056A (en) * | 2017-09-27 | 2018-02-09 | 深圳市华星光电半导体显示技术有限公司 | A kind of image processing method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1953515A (en) * | 2006-11-21 | 2007-04-25 | 北京中星微电子有限公司 | A method to automatically regulate the image brightness and automatic imaging device |
CN101141595A (en) * | 2006-09-05 | 2008-03-12 | 三星电子株式会社 | Image correction method and apparatus |
CN101377813A (en) * | 2008-09-24 | 2009-03-04 | 上海大学 | Method for real time tracking individual human face in complicated scene |
US20100329518A1 (en) * | 2009-06-25 | 2010-12-30 | Pixart Imaging Inc. | Dynamic image compression method for human face detection |
-
2011
- 2011-11-30 CN CN2011103915600A patent/CN102750672A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101141595A (en) * | 2006-09-05 | 2008-03-12 | 三星电子株式会社 | Image correction method and apparatus |
CN1953515A (en) * | 2006-11-21 | 2007-04-25 | 北京中星微电子有限公司 | A method to automatically regulate the image brightness and automatic imaging device |
CN101377813A (en) * | 2008-09-24 | 2009-03-04 | 上海大学 | Method for real time tracking individual human face in complicated scene |
US20100329518A1 (en) * | 2009-06-25 | 2010-12-30 | Pixart Imaging Inc. | Dynamic image compression method for human face detection |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107680056A (en) * | 2017-09-27 | 2018-02-09 | 深圳市华星光电半导体显示技术有限公司 | A kind of image processing method and device |
US10565742B1 (en) | 2017-09-27 | 2020-02-18 | Shenzhen China Star Optoelectronics Semiconductor Display Technology Co., Ltd. | Image processing method and apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108521859B (en) | Apparatus and method for processing multiple HDR image sources | |
US9685120B2 (en) | Image formats and related methods and apparatuses | |
JP6495552B2 (en) | Dynamic range coding for images and video | |
US10298857B2 (en) | Image processing method and apparatus, integrated circuitry and recording medium for applying gain to a pixel | |
KR101234958B1 (en) | Adaptive contrast enhancement | |
US7573533B2 (en) | Method of generating transfer curves for adaptive contrast enhancement | |
RU2544793C2 (en) | Image processing device and control method therefor | |
US10186066B2 (en) | Method, device and storage medium for image synthesis | |
US8554010B2 (en) | Image processing apparatus combining plural sets of image data and method for controlling the same | |
US9131160B2 (en) | Method for controlling exposure time of high dynamic range image | |
US9396526B2 (en) | Method for improving image quality | |
US10133934B2 (en) | Systems and methods for post processing time-lapse videos | |
US9928582B2 (en) | Method and system for processing image content for enabling high dynamic range (UHD) output thereof and computer-readable medium comprising UHD content created using same | |
US9990702B2 (en) | Method and system for processing image content for enabling high dynamic range (UHD) output thereof and computer-readable medium comprising UHD content created using same | |
WO2020031742A1 (en) | Image processing device, image processing method, and program | |
US10628929B2 (en) | Method and computer system of image enhancement | |
Vo et al. | HDR10+ adaptive ambient compensation using creative intent metadata | |
CN102750672A (en) | Method for realizing special effect through brightness adjustment | |
Mohammadi et al. | A fully automatic content adaptive inverse tone mapping operator with improved color accuracy | |
CN102761751A (en) | Subarea toning method and system | |
KR101180409B1 (en) | Low illumination intensity image enhancement method and apparatus using histogram normalization and gamma correction | |
KR20200127439A (en) | Image processing method and apparatus thereof | |
US9536337B1 (en) | Restoring digital image noise lost in a blur | |
CN102750673A (en) | Method for improving image contrast | |
CN103024284A (en) | Method for two-stage automatic exposure of video image |
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 |
Application publication date: 20121024 |
|
RJ01 | Rejection of invention patent application after publication |