CN102752544B - A kind of method that image calibration color sorting area is carried out using chroma key - Google Patents
A kind of method that image calibration color sorting area is carried out using chroma key Download PDFInfo
- Publication number
- CN102752544B CN102752544B CN201110370709.7A CN201110370709A CN102752544B CN 102752544 B CN102752544 B CN 102752544B CN 201110370709 A CN201110370709 A CN 201110370709A CN 102752544 B CN102752544 B CN 102752544B
- Authority
- CN
- China
- Prior art keywords
- slope
- value
- transition point
- threshold value
- thresholding
- 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.)
- Active
Links
Landscapes
- Processing Of Color Television Signals (AREA)
- Studio Circuits (AREA)
Abstract
The embodiment of the invention discloses a kind of method that image calibration color sorting area is carried out using chroma key, the chroma key is made up of central point, thresholding and soft-sided, the described method comprises the following steps:One transition point is set between the central point and the thresholding, transition point value is calculated according to threshold value;First slope is calculated according to the transition point value and the threshold value;Second slope is calculated according to the threshold value and soft-sided value;According to the first slope and the second slope selection target chromatic zones.In the embodiment of the present invention, by setting transition point between HSL chroma keys central point and thresholding, and according to the first slope of the transition point and the thresholding, the second slope of the thresholding and the soft-sided realizes that HSL chroma keys are smooth and chooses color of object area.
Description
Technical field
The present invention relates to video and technical field of image processing, more particularly to one kind image calibration color sorting is carried out using chroma key
The method in area.
Background technology
HSL color modes are a kind of color standards of industrial quarters, are by tone (H), saturation degree (S), brightness (L) three
The change of individual Color Channel and their superpositions each other obtain color miscellaneous, and HSL is to represent tone,
Saturation degree, three colors of passage of brightness, this standard almost includes all colours that human eyesight can perceive, and is current
With one of most wide color system.HSL color modes are distributed using the HSL components that HSL models are each pixel in image
Intensity level in the range of one 0~255.HSL images only use three kinds of passages, so that it may so that they are mixed according to different ratios
Close, 16777216 kinds of colors are reappeared on screen.Under HSL patterns, every kind of HSL compositions all can be used the value from 0 to 255, its
Middle L is from black (0) to white (255) gradual change.
Chroma key function is the trick play functionality that a kind of use electronics technical method is completed, and is a kind of keyed special effect effect, its key
Control signal takes from the chromatic component of colour TV signal, for controlling a high speed electronic switch.Its producing principle is, video camera
A shoots performer or material object in studio, and it makees background with the monochromatic curtain of deep saturation degree after one's death, (generally using blue).Take the photograph
Camera B films the exterior other program materials (moving frame) of picture or playback.In the signal of video camera A outputs, by color
Key generator selects bottom curtain color and produces chroma key signal.When coloured key signals, due to electronic switch in stunt switch
Effect and select video camera B shoot background signal.When colourless key signals, then performer's picture signal of video camera A is selected.
After both mix in stunt switching, the stingy picture picture during performer places oneself in the midst of outdoor scene background just can be obtained.In simple terms, be exactly
One or more specific colors become transparent to synthesize in image.Most of quasi- specialties and professional nonlinear video editor are soft
There is chroma key function in part, good linear editing device also has chroma key function.
It is the constituency for needing the color of object area that chooses in picture usually using HSL chroma keys in two grades of color corrections, and root
Color correction is carried out to image/video according to the color of object area of selection.
Realize it is of the invention during, inventor find prior art there is following technical problem:
In the prior art, when the color of object area in picture is chosen using HSL chroma keys, the color of object of selection with it is original
Color transition is unsmooth.
The content of the invention
A kind of method that image calibration color sorting area is carried out using chroma key is the embodiment of the invention provides, by HSL chroma keys
Transition point is set between heart dotted or gate limit, the first slope of the transition point and the thresholding is calculated, the thresholding is soft with described
Second slope on side, and then by the first slope and the second slope selection target chromatic zones.
A kind of method that image calibration color sorting area is carried out using chroma key is the embodiment of the invention provides, is comprised the following steps:
One transition point is set between the central point and the thresholding, transition point value is calculated according to threshold value;
First slope is calculated according to the transition point value and the threshold value;
Second slope is calculated according to the threshold value and soft-sided value;
According to the first slope and the second slope selection target chromatic zones.
It is described that a transition point is set between the central point and the thresholding, transition point value, bag are calculated according to threshold value
Include:
If T≤S, P=255-T/S*100
If T > S, P=S/T*150
Wherein P transition point value, T is threshold value, and S is soft-sided value.
It is described that first slope is calculated according to the transition point value and the threshold value, including:
Slope k 1=2* (255-P)/T
Wherein, k1 is first slope, wherein P transition point value, and T is threshold value.
It is described that second slope is calculated according to the threshold value and soft-sided value, including:
Slope k 2=P/S
Wherein k2 is the second slope, wherein P transition point value, and S is soft-sided value.
It is described according to the first slope and the second slope selection target chromatic zones, including:
According to the broken line that first slope and the second slope determine, institute in the range of color of object area transverse axis value 0 to 255 is calculated
State the corresponding value of longitudinal axis every bit of broken line.
What the technical scheme of the embodiment of the present invention was brought has the beneficial effect that:By HSL chroma keys central point and thresholding it
Between transition point is set, and according to the first slope of the transition point and the thresholding, the thresholding is oblique with the second of the soft-sided
Rate, realizes that HSL chroma keys are smooth and chooses color of object area.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also
Other accompanying drawings are obtained with according to these accompanying drawings.
Fig. 1 is the schematic diagram that prior art chroma key chooses color of object area;
Fig. 2 is the schematic diagram that chroma key of the present invention chooses color of object area;
Fig. 3 is a kind of method flow diagram that image calibration color sorting area is carried out using chroma key in the embodiment of the present invention;
Fig. 4 is a kind of method particular flow sheet that image calibration color sorting area is carried out using chroma key in the embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
A kind of method that image calibration color sorting area is carried out using chroma key of the embodiment of the present invention one, as shown in figure 3, including following step
Suddenly:
Step S101, sets a transition point between the central point and the thresholding, and transition point is calculated according to threshold value
Value.
Step S102, first slope is calculated according to the transition point value and the threshold value.
Step S103, the second slope is calculated according to the threshold value and soft-sided value.
Step S104, according to the first slope and the second slope selection target chromatic zones.
What the technical scheme of the embodiment of the present invention was brought has the beneficial effect that:By HSL chroma keys central point and thresholding it
Between transition point is set, and according to the first slope of the transition point and the thresholding, the thresholding is oblique with the second of the soft-sided
Rate, realizes that HSL chroma keys are smooth and chooses color of object area.
A kind of method that image calibration color sorting area is carried out using chroma key of the embodiment of the present invention two, as shown in figure 4, including following step
Suddenly:
Step S201, obtains the primitive color area of image, chroma key is selected according to the primitive color area, in the central point
One transition point is set and the thresholding between.
Step S202, transition point value, such as formula 1 and formula 2 are calculated according to threshold value:
If T≤S, P=255-T/S*100 (1)
If T > S, P=S/T*150 (2)
Wherein P transition point value, T is threshold value, and S is soft-sided value.
Step S203, first slope, such as formula 3 are calculated according to the transition point value and the threshold value:
Slope k 1=2* (255-P)/T (3)
Wherein k1 is first slope.
Step S204, the second slope, such as formula 4 are calculated according to the threshold value and soft-sided value:
Slope k 2=P/S (4)
Wherein k2 is the second slope.
Step S205, according to the first slope and the second slope selection target chromatic zones, including:
According to the broken line that first slope and the second slope determine, institute in the range of color of object area transverse axis value 0 to 255 is calculated
State the corresponding value of longitudinal axis every bit of broken line.
What the technical scheme of the embodiment of the present invention was brought has the beneficial effect that:By HSL chroma keys central point and thresholding it
Between transition point is set, and according to the first slope of the transition point and the thresholding, the thresholding is oblique with the second of the soft-sided
Rate, realizes that HSL chroma keys are smooth and chooses color of object area.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can lead to
Cross hardware realization, it is also possible to can add the mode of necessary general hardware platform by software to realize, based on such understanding, this
The technical scheme of invention can be embodied in the form of software product, and the software product can be stored non-volatile to be deposited at one
In storage media (can be CD-ROM, USB flash disk, mobile hard disk etc.), including some instructions are used to so that computer equipment (can be with
It is personal computer, server, or network equipment etc.) perform method described in each embodiment of the invention.
In a word, presently preferred embodiments of the present invention is the foregoing is only, is not intended to limit the scope of the present invention.
All any modification, equivalent substitution and improvements within the spirit and principles in the present invention, made etc., should be included in of the invention
Within protection domain.
Claims (4)
1. a kind of method that image calibration color sorting area is carried out using chroma key, the chroma key is made up of central point, thresholding and soft-sided, and it is special
Levy and be, comprise the following steps:
One transition point is set between the central point and the thresholding, transition point value is calculated according to threshold value;
First slope is calculated according to the transition point value and the threshold value;
Second slope is calculated according to the threshold value and soft-sided value;
According to the first slope and the second slope selection target chromatic zones;
It is described that a transition point is set between the central point and the thresholding, transition point value is calculated according to threshold value, including:
If T≤S, P=255-T/S*100
If T > S, P=S/T*150
Wherein P transition point value, T is threshold value, and S is soft-sided value.
2. as claimed in claim 1 a kind of method that image calibration color sorting area is carried out using chroma key, it is characterised in that it is described according to institute
State transition point value and the threshold value calculates first slope, including:
Slope k 1=2* (255-P)/T
Wherein, k1 is first slope, wherein P transition point value, and T is threshold value.
3. as claimed in claim 1 a kind of method that image calibration color sorting area is carried out using chroma key, it is characterised in that it is described according to institute
State threshold value and soft-sided value calculates the second slope, including:
Slope k 2=P/S
Wherein k2 is the second slope, wherein P transition point value, and S is soft-sided value.
4. as claimed in claim 1 a kind of method that image calibration color sorting area is carried out using chroma key, it is characterised in that it is described according to institute
First slope and the second slope selection target chromatic zones are stated, including:
According to the broken line that first slope and the second slope determine, the folding in the range of color of object area transverse axis value 0 to 255 is calculated
The corresponding value of longitudinal axis every bit of line.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110370709.7A CN102752544B (en) | 2011-11-21 | 2011-11-21 | A kind of method that image calibration color sorting area is carried out using chroma key |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110370709.7A CN102752544B (en) | 2011-11-21 | 2011-11-21 | A kind of method that image calibration color sorting area is carried out using chroma key |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102752544A CN102752544A (en) | 2012-10-24 |
CN102752544B true CN102752544B (en) | 2017-06-13 |
Family
ID=47032425
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110370709.7A Active CN102752544B (en) | 2011-11-21 | 2011-11-21 | A kind of method that image calibration color sorting area is carried out using chroma key |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102752544B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1318258A (en) * | 1998-09-17 | 2001-10-17 | 通用仪器公司 | Modified chroma keyed tech for simple shape coding for digital video |
CN1520682A (en) * | 2001-06-29 | 2004-08-11 | 皇家菲利浦电子有限公司 | Color key preservation during sample rate conversion |
US7006155B1 (en) * | 2000-02-01 | 2006-02-28 | Cadence Design Systems, Inc. | Real time programmable chroma keying with shadow generation |
CN101569193A (en) * | 2006-11-17 | 2009-10-28 | 迪斯尼实业公司 | Method, system and computer program product for video insertion |
-
2011
- 2011-11-21 CN CN201110370709.7A patent/CN102752544B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1318258A (en) * | 1998-09-17 | 2001-10-17 | 通用仪器公司 | Modified chroma keyed tech for simple shape coding for digital video |
US7006155B1 (en) * | 2000-02-01 | 2006-02-28 | Cadence Design Systems, Inc. | Real time programmable chroma keying with shadow generation |
CN1520682A (en) * | 2001-06-29 | 2004-08-11 | 皇家菲利浦电子有限公司 | Color key preservation during sample rate conversion |
CN101569193A (en) * | 2006-11-17 | 2009-10-28 | 迪斯尼实业公司 | Method, system and computer program product for video insertion |
Also Published As
Publication number | Publication date |
---|---|
CN102752544A (en) | 2012-10-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2082577B1 (en) | Method, system and computer program product for video insertion | |
CN111508450B (en) | Screen color conversion method and device, storage medium and electronic equipment | |
CN101778246B (en) | Method and device for processing multipicture video image | |
CN107005716B (en) | Image encoding method, image decoding method, image encoder, image decoder, and display device | |
CN1977542B (en) | Dominant color extraction using perceptual rules to produce ambient light derived from video content | |
CN1165183C (en) | Adaptive chroma compensation method and compensator | |
CN104076928B (en) | A kind of method for adjusting text importing image | |
CN106576155B (en) | Image processing apparatus, photographic device, image processing method and program | |
CN105393525A (en) | Methods and apparatuses for creating code mapping functions for encoding an hdr image, and methods and apparatuses for use of such encoded images | |
US20080079968A1 (en) | Color adjustment circuit, digital color adjustment device and multimedia apparatus using the same | |
CN109754375A (en) | Image processing method, system, computer equipment, storage medium and terminal | |
US9008418B2 (en) | Image production method and apparatus for mobile terminal | |
CN102696069B (en) | Electronic device | |
KR20080106848A (en) | Color gamut component analysis apparatus, method of analyzing color gamut component, and color gamut component analysis program | |
CN104954690B (en) | Image processing method, system and the camera terminal of colour of skin adjustment | |
CN101399898B (en) | Image processing method and apparatus | |
CN102752544B (en) | A kind of method that image calibration color sorting area is carried out using chroma key | |
CN102447913B (en) | Color migration processing method and system | |
CN101169928B (en) | Color regulation circuit, digit color regulation device and multimedia device applying same | |
Hullfish et al. | Color correction for video: using desktop tools to perfect your image | |
Lukac | New framework for automatic white balancing of digital camera images | |
CN106791741B (en) | Multi-screen marching method and device | |
CN110073656A (en) | Image processing apparatus, photographic device, image processing method and image processing program | |
CN102752612B (en) | A kind of method carrying out image color correction based on look key constituency | |
CN100409306C (en) | Method of displaying color for optimizing display device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |