CN102752544A - Method for conducting image color correction and district election by using chroma keys - Google Patents

Method for conducting image color correction and district election by using chroma keys Download PDF

Info

Publication number
CN102752544A
CN102752544A CN2011103707097A CN201110370709A CN102752544A CN 102752544 A CN102752544 A CN 102752544A CN 2011103707097 A CN2011103707097 A CN 2011103707097A CN 201110370709 A CN201110370709 A CN 201110370709A CN 102752544 A CN102752544 A CN 102752544A
Authority
CN
China
Prior art keywords
slope
transition point
value
threshold value
chroma key
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.)
Granted
Application number
CN2011103707097A
Other languages
Chinese (zh)
Other versions
CN102752544B (en
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 CN201110370709.7A priority Critical patent/CN102752544B/en
Publication of CN102752544A publication Critical patent/CN102752544A/en
Application granted granted Critical
Publication of CN102752544B publication Critical patent/CN102752544B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

An embodiment of the invention discloses a method for conducting image color correction and district election by using chroma keys. Each chroma key is composed of a central point, a threshold and a soft side, and the method comprises the following steps of arranging a transition point between the central point and the threshold and calculating a transition point value according to a threshold value; calculating a first slope according to the transition point value and the threshold value; calculating a second slope according to the threshold value and the soft side value; and selecting a target color area according to the first slope and the second slope. In the embodiment, hue, saturation and lum (HSL) chroma keys can smoothly select the target color area through the transition point arranged between the HSL chroma key central point and the threshold according to the first slope of the transition point and the threshold and the second slope of the threshold and the soft side.

Description

A kind of method of utilizing chroma key to carry out image color correction constituency
Technical field
The present invention relates to video and technical field of image processing, relate in particular to a kind of method of utilizing chroma key to carry out image color correction constituency.
Background technology
The HSL color mode is a kind of color standard of industrial quarters; Be to obtain color miscellaneous through variation and their stacks each other to tone (H), saturation (S), three Color Channels of brightness (L); HSL represents tone, saturation, the color of three passages of brightness; This standard almost comprised human eyesight can perception all colours, be one of the widest color system of utilization at present.The HSL color mode uses the HSL model to distribute one 0~255 intensity level in the scope as the HSL component of each pixel in the image.The HSL image only uses three kinds of passages, just can make them according to different mixed, on screen, reappears 16777216 kinds of colors.Under the HSL pattern, every kind of HSL composition all can use from 0 to 255 value, and wherein L is to white (255) gradual change from black (0).
The chroma key function is a kind of trick play functionality of being accomplished with the electronics technical method, is a kind of keying special effects, and its keying signal is taken from the chromatic component of colour TV signal, is used for controlling a high speed electronic switch.It makes principle, and video camera A takes performer or the material object in the studio, and it makes background with the monochromatic curtain of dark saturation after one's death, (adopting blue usually).Other program materials (moving frame) that video camera B films the exterior picture or resets.In the signal of video camera A output, select end curtain color by the chroma key signal generator and produce the chroma key signal.When the chroma key signal, select the background signal of video camera B shooting owing to the effect of electronic switch in the stunt switch.When colourless key signals, then select performer's picture signal of video camera A.Both just can obtain the performer and place oneself in the midst of the stingy picture picture in the outdoor scene background after in stunt is switched, mixing.In simple terms, become one or more specific colors in the image transparent exactly so that synthetic.In most of accurate specialties and the professional nonlinear video editor software chroma key function is arranged all, good linear editing device also has the chroma key function.
In the secondary color correction, the color of object district that uses the HSL chroma key to choose in the picture usually is the constituency of needs, and according to the color of object district of selecting image/video is carried out color correction.
In realizing process of the present invention, the inventor finds that there is following technical problem in prior art:
In the prior art, when using the HSL chroma key to choose the color of object district in the picture, color of object of choosing and primitive color transition are unsmooth.
Summary of the invention
The embodiment of the invention provides a kind of method of utilizing chroma key to carry out image color correction constituency; Through between HSL chroma key central point and thresholding, transition point being set; Calculate first slope of said transition point and said thresholding; Second slope on said thresholding and said soft limit, and then through said first slope and the second slope select target chromatic zones.
The embodiment of the invention provides a kind of method of utilizing chroma key to carry out image color correction constituency, may further comprise the steps:
Between said central point and said thresholding, a transition point is set, calculates the transition point value according to threshold value;
Calculate first slope according to said transition point value and said threshold value;
Calculate second slope according to said threshold value and soft boundary values;
According to said first slope and the said second slope select target chromatic zones.
Saidly between said central point and said thresholding, a transition point is set, calculates the transition point value, comprising according to threshold value:
If T≤S, P=255-T/S*100
If T>S, P=S/T*150
P transition point value wherein, T is a threshold value, S is soft boundary values.
Saidly calculate first slope, comprising according to said transition point value and said threshold value:
Slope k 1=2* (255-P)/T
Wherein, k1 is the first slope slope, P transition point value wherein, and T is a threshold value.
Saidly calculate second slope, comprising according to said threshold value and soft boundary values:
Slope k 2=P/S
Wherein k2 is the second slope slope, P transition point value wherein, and S is soft boundary values.
Said according to said first slope and the said second slope select target chromatic zones, comprising:
According to first slope and the definite broken line of second slope, calculate the corresponding value of longitudinal axis every bit of said broken line in color of object district transverse axis value 0 to 255 scope.
The beneficial effect that the technical scheme of the embodiment of the invention is brought is following: through between HSL chroma key central point and thresholding, transition point being set; And according to first slope of said transition point and said thresholding; Second slope on said thresholding and said soft limit, realization HSL chroma key is smoothly chosen the color of object district.。
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, 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 property, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the sketch map that the prior art chroma key is chosen the color of object district;
Fig. 2 is the sketch map that chroma key of the present invention is chosen the color of object district;
Fig. 3 is a kind of method flow diagram that utilizes chroma key to carry out image color correction constituency in the embodiment of the invention;
Fig. 4 is a kind of method particular flow sheet that utilizes chroma key to carry out image color correction constituency in the embodiment of the invention;
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment is the present invention's part embodiment, 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.
One one kinds of methods of utilizing chroma key to carry out image color correction constituency of the embodiment of the invention, as shown in Figure 3, may further comprise the steps:
Step S101 is provided with a transition point between said central point and said thresholding, calculate the transition point value according to threshold value.
Step S102 calculates first slope according to said transition point value and said threshold value.
Step S103 calculates second slope according to said threshold value and soft boundary values.
Step S104 is according to said first slope and the said second slope select target chromatic zones.
The beneficial effect that the technical scheme of the embodiment of the invention is brought is following: through between HSL chroma key central point and thresholding, transition point being set; And according to first slope of said transition point and said thresholding; Second slope on said thresholding and said soft limit, realization HSL chroma key is smoothly chosen the color of object district.
21 kinds of methods of utilizing chroma key to carry out image color correction constituency of the embodiment of the invention, as shown in Figure 4, may further comprise the steps:
Step S201 obtains the primitive color district of image, selects chroma key according to said primitive color district, between said central point and said thresholding, a transition point is set.
Step S202 calculates the transition point value according to threshold value, like formula 1 and formula 2:
If T≤S, P=255-T/S*100 (1)
If T>S, P=S/T*150 (2)
P transition point value wherein, T is a threshold value, S is soft boundary values.
Step S103 calculates first slope according to said transition point value and said threshold value, like formula 3:
Slope k 1=2* (255-P)/T (3)
Wherein k1 is the first slope slope.
Step S104 calculates second slope according to said threshold value and soft boundary values, like formula 4:
Slope k 2=P/S (4)
Wherein k3 is the second slope slope.
Step S105 according to said first slope and the said second slope select target chromatic zones, comprising:
According to first slope and the definite broken line of second slope, calculate the corresponding value of longitudinal axis every bit of said broken line in color of object district transverse axis value 0 to 255 scope.
The beneficial effect that the technical scheme of the embodiment of the invention is brought is following: through between HSL chroma key central point and thresholding, transition point being set; And according to first slope of said transition point and said thresholding; Second slope on said thresholding and said soft limit, realization HSL chroma key is smoothly chosen the color of object district.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize through hardware, 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.
In a word, the above is merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (5)

1. method of utilizing chroma key to carry out image color correction constituency, said chroma key is made up of central point, thresholding and soft limit, it is characterized in that, may further comprise the steps:
Between said central point and said thresholding, a transition point is set, calculates the transition point value according to threshold value;
Calculate first slope according to said transition point value and said threshold value;
Calculate second slope according to said threshold value and soft boundary values;
According to said first slope and the said second slope select target chromatic zones.
2. a kind of according to claim 1 method of utilizing chroma key to carry out image color correction constituency is characterized in that, saidly between said central point and said thresholding, a transition point is set, and calculates the transition point value according to threshold value, comprising:
If T≤S, P=255-T/S*100
If T>S, P=S/T*150
P transition point value wherein, T is a threshold value, S is soft boundary values.
3. a kind of according to claim 1 method of utilizing chroma key to carry out image color correction constituency is characterized in that, saidly calculates first slope according to said transition point value and said threshold value, comprising:
Slope k 1=2* (255-P)/T
Wherein, k1 is the first slope slope, P transition point value wherein, and T is a threshold value.
4. a kind of according to claim 1 method of utilizing chroma key to carry out image color correction constituency is characterized in that, saidly calculates second slope according to said threshold value and soft boundary values, comprising:
Slope k 2=P/S
Wherein k2 is the second slope slope, P transition point value wherein, and S is soft boundary values.
5. a kind of according to claim 1 method of utilizing chroma key to carry out image color correction constituency is characterized in that, and is said according to said first slope and the said second slope select target chromatic zones, comprising:
According to first slope and the definite broken line of second slope, calculate the corresponding value of longitudinal axis every bit of said broken line in color of object district transverse axis value 0 to 255 scope.
CN201110370709.7A 2011-11-21 2011-11-21 A kind of method that image calibration color sorting area is carried out using chroma key Active CN102752544B (en)

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 true CN102752544A (en) 2012-10-24
CN102752544B 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)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
CN102752544B (en) 2017-06-13

Similar Documents

Publication Publication Date Title
CN1874410B (en) Imaging device and method for processing imaging result in imaging device
CN101778246B (en) Method and device for processing multipicture video image
CN1977542B (en) Dominant color extraction using perceptual rules to produce ambient light derived from video content
CN101742340B (en) Method and device for optimizing and editing image
CN101764913B (en) Color replacement method base on HSV space
CN104427317A (en) Image acquisition method and electronic equipment
CN102752607B (en) A kind of realize when image moves trail specially good effect method and apparatus
CN100589531C (en) Image processing method and apparatus
US7176909B2 (en) Color correction circuit and image display apparatus including the same
CN102750116A (en) Method for processing over-range signal of luma and chroma (YUV) color space
Choi et al. Adaptive color saturation control for low power RGBW OLED displays
US8687091B2 (en) Image capturing systems and methods utilizing customizable look management
Hullfish et al. Color correction for video: using desktop tools to perfect your image
CN104954690A (en) Image processing method and system for skin color adjustment and shooting terminal
CN102752622B (en) A kind of color space 3 D displaying method
JPWO2006095496A1 (en) Color conversion device, program, image display device, and portable terminal device
CN102752544A (en) Method for conducting image color correction and district election by using chroma keys
CN101420528B (en) Digital image processing apparatus capable of displaying color distribution chart and method of operating the same
CN102752612A (en) Method for conducting image color correction based on color key region selection
US20110206279A1 (en) Apparatus and method for chroma-key processing
Liu et al. The color calibration across multi-projector display
CN102752610A (en) Method and system for overall color matching of image
JP2005085268A (en) Method for adjusting color saturation
CN103456279B (en) Mobile terminal and its color display
JP2011188319A (en) Color correction method and color correction 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