CN102739999A - Weighted compensation method and system for two-dimensional subtitle deformation - Google Patents
Weighted compensation method and system for two-dimensional subtitle deformation Download PDFInfo
- Publication number
- CN102739999A CN102739999A CN201110126951XA CN201110126951A CN102739999A CN 102739999 A CN102739999 A CN 102739999A CN 201110126951X A CN201110126951X A CN 201110126951XA CN 201110126951 A CN201110126951 A CN 201110126951A CN 102739999 A CN102739999 A CN 102739999A
- Authority
- CN
- China
- Prior art keywords
- value
- coordinate
- weight
- point
- unit
- 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
Landscapes
- Image Generation (AREA)
Abstract
The invention discloses a weighted compensation method and system for two-dimensional subtitle deformation, which mainly relate to processing of special effects of subtitles in the fields of manufacturing and broadcasting of radio and television programs. The method comprises the following steps of: picking up a position coordinate value of a target pixel point, performing floating-point calculation on the position coordinate value to obtain a novel position coordinate value; judging whether a decimal place is present in the coordinate value, if so, performing weighted judgment on the coordinate value according to a weight value in a weight interval to determine a weight point; and determining a novel decimal place value through the weight point, accumulating the novel decimal place value with the original integer coordinate value to obtain a final coordinate value. The weighted compensation system comprises a floating point coordinate unit, an integer taking unit, a weighting judgment unit and a weight assignment unit, wherein the floating point coordinate unit outputs the coordinate value to the integer taking unit and inputs an integer taking result into the weighting judgment unit to obtain a weighting value, and the weight assignment unit is used for performing assignment on the pixel. The weighted compensation method and system have the advantages that the floating point calculation result is decomposed, and the decimal place part is optimized, so that the image display precision is determined in a mode of establishing the weighting interval; and the multi-dimensional weighting interval is established, so that different image precision selecting modes are realized, and the system can make selection according to the requirements on the operational capability and precision of the system.
Description
Technical field
The present invention relates to making of program captions and broadcast and correlative technology field, relate in particular to a kind of weighting compensation method and system of two-dimentional captions distortion.
Background technology
In existing program making and broadcast and correlative technology field, in the process to the program material making, in order better literal to be showed; Need a large amount of captions to synthesize, particularly in large-scale 3D film, material are made and play, in order to obtain better effect; Usually need in captions, insert special effects, improve constantly, occur 3D effect captions stunt successively along with what stunt was required; 3D captions stunt need be calculated lot of data in implementation procedure, and will carry out great amount of calculation by the GPU of graphic display card usually, in order to obtain the picture of high-quality; To the graphic operation processing speed, call the GPU function so hardware is had higher requirement because calculating can relate to, in the prior art; Film titler in making, playing process, provide hardware and software environment preferably in 3D captions special efficacy, and handles the restriction that the material processing speed receives the GPU disposal ability; And when playing, also there is a same requirement; In 3D captions building-up process, because handled a large amount of image files, so file needs bigger memory space and spatial cache.
Particularly in captions metamorphic animation manufacturing process, because need play order according to frame, every frame picture is calculated, therefore increased amount of calculation, particularly when resolution requirement was higher, problem was particularly outstanding.
Between above situation, in realizing process of the present invention, the inventor finds that there are the following problems at least in the prior art:
Be out of shape in the making, in building-up process owing to need jumbo memory space to reach the speed of service fast at the 3D captions; So having relatively high expectations to graphic display card and GPU; In carrying out simple special efficacy building-up process, caused the waste of system, simultaneously; Also there are many-sided restrictions such as the speed of service and disposal ability for playback equipment, give the making of 3D captions distortion special efficacy and use generation to come restriction.
Simultaneously, in the prior art, because therefore floating-point operation under the situation that keeps former resolution, can have influence on the display quality and the precision of image, thus the image fault of causing.
Summary of the invention
To deficiency of the prior art, to the technical problem that the present invention will solve, the present invention provides a kind of weighting compensation method and system of two-dimentional captions distortion, is used in captions special efficacy manufacturing process two-dimentional captions distortion being made:
A kind of weighting compensation method of two-dimentional captions distortion, said step specifically comprises: 1) pick up the position coordinate value of target pixel points, obtain new position coordinate value through Floating-point Computation; 2) judge whether there is decimal place in the coordinate figure, if, carry out weighting according to weighted value in the weight interval and judge, confirm the weight point; 3) through said weight point, confirm new decimal place value, add up, obtain final coordinate figure with former rounded coordinate value.
Preferably, concrete steps comprise said step 2): 21) judge whether there is decimal place in the coordinate figure, if then coordinate figure is separated into integer part and fractional part; 22) set up the weight interval, said fractional part correspondence is filled up in the interval of response; 23) position of the interval angle point of judging distance is definite weight point with nearest position.
Preferably, said step 2) the weight interval can be: one dimension is interval, two dimension is interval.
Preferably, the interval weight point of said one dimension can be: (0,0) (0,1)
Preferably, said two-dimentional interval can be: (0,0) (0,1) (1,0) (1,1).
Preferably, concrete steps comprise in the said step 3): the emphasis of 3A) holding power is near (0,0) when point, confirm new decimal place value (x, y) value is 0; When the emphasis of holding power was put near (0,1), confirm new decimal place: the x value was 0; The y value is 1; Add up 1 with former y value rounded coordinate value, obtain new coordinate figure; When the emphasis of holding power was put near (1,0), confirm new decimal place: the y value was 0; The x value is 1; Add up 1 with former x value rounded coordinate value, obtain new coordinate figure; When the emphasis of holding power was put near (1,1), confirm new decimal place: the x value was 1; The y value is 1; With former x, y value rounded coordinate value adds up 1, obtains new coordinate figure.
The present invention provides a kind of weighting bucking-out system of two-dimentional captions distortion, it is characterized in that said system comprises:
Floating-point coordinate unit, round unit, weighting judging unit, weight assignment unit, wherein floating-point coordinate unit outputs to and rounds the unit, and will round the result and be input to the weighting judging unit, draws weighted value, and carries out the pixel assignment through the weight assignment unit.
Wherein, said floating-point coordinate unit is used to pick up the position coordinate value of target pixel points, obtains new position coordinate value through Floating-point Computation.
Wherein, the said unit that rounds is used for judging whether coordinate figure exists decimal place, if then coordinate figure is separated into integer part and fractional part.
Wherein, said weighting judging unit is used to set up the weight interval, said fractional part correspondence is filled up in the interval of response, and the position of the interval angle point of judging distance, be definite weight point with nearest position.
Wherein, said weight assignment unit is used for confirming new decimal place value through said weight point, adds up with former rounded coordinate value, obtains final coordinate figure.
Above technical scheme can find out that the present invention has the following advantages:
At first, the present invention partly is optimized decimal place through the floating-point operation result is decomposed, thereby through setting up the interval mode of weight, confirms the image display precision;
Secondly, the present invention is interval through the weight of setting up multidimensional, thereby realizes pictures different accuracy selection mode, and system can make a choice according to operational capability and the required precision of self.
Description of drawings
Fig. 1 is the weighting compensation method sketch map of a kind of two-dimentional captions distortion of the present invention;
Fig. 2 is the interval sketch map of two-dimentional weight during the inventive method first is implemented;
Fig. 3 is the weighting bucking-out system sketch map of a kind of two-dimentional captions distortion of the present invention.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below; Technical scheme in the embodiment of the invention is carried out clear, complete description; Obvious described embodiment only is a part of embodiment of the present invention, is not whole embodiment, based on the embodiment among the present invention; Those of ordinary skills are not paying the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Embodiment one:
See also Fig. 1,2, the inventive method first embodiment, the present invention provides a kind of weighting compensation method of two-dimentional captions distortion:
Suppose to pick up the position coordinate value of target pixel points, through Floating-point Computation obtain new position coordinate value for (1.7,2.7) wherein respectively corresponding (x.y) coordinate; In above coordinate figure, have decimal place, then coordinate figure is separated into integer part and fractional part, then integer part is that (1,2) fractional part is (0.7; 0.7) set up that weight is interval to be interval (0,0) (0,1) (1,0) (1 of two dimension shown in Fig. 2; 1), also can set up one dimension interval (0,0) (0,1) as required; Said fractional part correspondence is filled up in the interval of response, like X=0.7 among the figure, the display position of Y=0.7, at this moment; When the emphasis of holding power was put near (1,1), confirm new decimal place: the x value was 1; The y value is 1; With former x, y value rounded coordinate value adds up 1, obtains new coordinate figure (3,3), and following for the situation of other weight points:
Hold power emphasis near (0,0) when point, confirm new decimal place value (x, y) value is 0;
When the emphasis of holding power was put near (0,1), confirm new decimal place: the x value was 0; The y value is 1; Add up 1 with former y value rounded coordinate value, obtain new coordinate figure;
When the emphasis of holding power was put near (1,0), confirm new decimal place: the y value was 0; The x value is 1; Add up 1 with former x value rounded coordinate value, obtain new coordinate figure.
Embodiment two:
See also Fig. 3, the inventive method second embodiment, the present invention provides a kind of weighting bucking-out system of two-dimentional captions distortion, it is characterized in that said system comprises:
Floating-point coordinate unit, round unit, weighting judging unit, weight assignment unit, wherein floating-point coordinate unit outputs to and rounds the unit, and will round the result and be input to the weighting judging unit, draws weighted value, and carries out the pixel assignment through the weight assignment unit.
Wherein, said floating-point coordinate unit is used to pick up the position coordinate value of target pixel points, obtains new position coordinate value through Floating-point Computation.
Wherein, the said unit that rounds is used for judging whether coordinate figure exists decimal place, if then coordinate figure is separated into integer part and fractional part.
Wherein, said weighting judging unit is used to set up the weight interval, said fractional part correspondence is filled up in the interval of response, and the position of the interval angle point of judging distance, be definite weight point with nearest position.
Wherein, said weight assignment unit is used for confirming new decimal place value through said weight point, adds up with former rounded coordinate value, obtains final coordinate figure.
Claims (11)
1. the weighting compensation method of a two-dimentional captions distortion, it is characterized in that: said step specifically comprises:
1) picks up the position coordinate value of target pixel points, obtain new position coordinate value through Floating-point Computation;
2) judge whether there is decimal place in the coordinate figure, if, carry out weighting based on weighted value in the weight interval and judge, confirm the weight point;
3) through said weight point, confirm new decimal place value, add up, obtain final coordinate figure with former rounded coordinate value.
2. the method described in claim 1 is characterized in that: concrete steps comprise said step 2):
21) judge whether there is decimal place in the coordinate figure, if then coordinate figure is separated into integer part and fractional part;
22) set up the weight interval, said fractional part correspondence is filled up in the interval of response;
23) position of the interval angle point of judging distance is definite weight point with nearest position.
3. the method described in claim 2, it is characterized in that: said step 2) the weight interval can be:
One dimension is interval, two dimension is interval.
4. the method described in claim 3 is characterized in that, the interval weight point of said one dimension can be:
(0,0)(0,1)
5. the method described in claim 3 is characterized in that, said two-dimentional interval can be:
(0,0)(0,1)(1,0)(1,1)。
6. the method described in claim 1 is characterized in that, concrete steps comprise in the said step 3):
3A) hold power emphasis near (0,0) when point, confirm new decimal place value (x, y) value is 0; When the emphasis of holding power was put near (0,1), confirm new decimal place: the x value was 0; The y value is 1; Add up 1 with former y value rounded coordinate value, obtain new coordinate figure; When the emphasis of holding power was put near (1,0), confirm new decimal place: the y value was 0; The x value is 1; Add up 1 with former x value rounded coordinate value, obtain new coordinate figure; When the emphasis of holding power was put near (1,1), confirm new decimal place: the x value was 1; The y value is 1; With former x, y value rounded coordinate value adds up 1, obtains new coordinate figure.
7. the weighting bucking-out system of a two-dimentional captions distortion is characterized in that said system comprises:
Floating-point coordinate unit, round unit, weighting judging unit, weight assignment unit, wherein floating-point coordinate unit outputs to and rounds the unit, and will round the result and be input to the weighting judging unit, draws weighted value, and carries out the pixel assignment through the weight assignment unit.
8. the system described in claim 7 is characterized in that, said floating-point coordinate unit is used to pick up the position coordinate value of target pixel points, obtains new position coordinate value through Floating-point Computation.
9. the system described in claim 7 is characterized in that, the said unit that rounds is used for judging whether coordinate figure exists decimal place, if then coordinate figure is separated into integer part and fractional part.
10. the system described in claim 7; It is characterized in that said weighting judging unit is used to set up the weight interval, said fractional part correspondence is filled up in the interval of response; And the position of the interval angle point of judging distance, be definite weight point with nearest position.
11. the system described in claim 7 is characterized in that, said weight assignment unit is used for confirming new decimal place value through said weight point, adds up with former rounded coordinate value, obtains final coordinate figure.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110126951XA CN102739999A (en) | 2011-05-17 | 2011-05-17 | Weighted compensation method and system for two-dimensional subtitle deformation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110126951XA CN102739999A (en) | 2011-05-17 | 2011-05-17 | Weighted compensation method and system for two-dimensional subtitle deformation |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102739999A true CN102739999A (en) | 2012-10-17 |
Family
ID=46994699
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110126951XA Pending CN102739999A (en) | 2011-05-17 | 2011-05-17 | Weighted compensation method and system for two-dimensional subtitle deformation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102739999A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023029049A1 (en) * | 2021-09-06 | 2023-03-09 | 深圳市大疆创新科技有限公司 | Subtitle switching method, terminal device, and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101236602A (en) * | 2007-02-02 | 2008-08-06 | 索尼株式会社 | Image processing apparatus, image processing method and computer program |
CN101661162A (en) * | 2009-09-09 | 2010-03-03 | 谭洪舟 | Distortion compensation method based on wide-angle lens |
US20100253862A1 (en) * | 2008-01-25 | 2010-10-07 | Mitsuru Takahashi | Projection display device and caption display method |
-
2011
- 2011-05-17 CN CN201110126951XA patent/CN102739999A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101236602A (en) * | 2007-02-02 | 2008-08-06 | 索尼株式会社 | Image processing apparatus, image processing method and computer program |
US20100253862A1 (en) * | 2008-01-25 | 2010-10-07 | Mitsuru Takahashi | Projection display device and caption display method |
CN101661162A (en) * | 2009-09-09 | 2010-03-03 | 谭洪舟 | Distortion compensation method based on wide-angle lens |
Non-Patent Citations (1)
Title |
---|
陆佳炜等: "基于二维插值的图像变形算法", 《微型电脑应用》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023029049A1 (en) * | 2021-09-06 | 2023-03-09 | 深圳市大疆创新科技有限公司 | Subtitle switching method, terminal device, and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106375748B (en) | Stereoscopic Virtual Reality panoramic view joining method, device and electronic equipment | |
US9055277B2 (en) | Image rendering device, image rendering method, and image rendering program for rendering stereoscopic images | |
US8907968B2 (en) | Image rendering device, image rendering method, and image rendering program for rendering stereoscopic panoramic images | |
CN107146274B (en) | Image data processing system, texture mapping compression method and method for generating panoramic video | |
CN104618648A (en) | Panoramic video splicing system and splicing method | |
CN110599586A (en) | Semi-dense scene reconstruction method and device, electronic equipment and storage medium | |
Suenaga et al. | A practical implementation of free viewpoint video system for soccer games | |
WO2005091221A1 (en) | Creating a depth map | |
KR20180136873A (en) | Method and apparatus for processing omnidirectional image | |
CN104751506A (en) | Cluster rendering method and equipment for realizing three-dimensional graphic and image | |
Ceulemans et al. | Efficient MRF-based disocclusion inpainting in multiview video | |
CN102739999A (en) | Weighted compensation method and system for two-dimensional subtitle deformation | |
CN108230454B (en) | Panorama picture cutting method and device and storage medium | |
CN101882307A (en) | Making method of super-pixel rendering | |
JP2012105019A (en) | Image processing device, method, and program thereof | |
CN104601950B (en) | A kind of video frequency monitoring method | |
CN102724444A (en) | Method and system for square object mode transformation of two-dimensional caption | |
CN102739976A (en) | Method and system for realizing dynamic two-dimensional subtitle of shadow | |
CN104113704A (en) | Game image processing method and device | |
CN104079915B (en) | A kind of parallel virtual visual point synthesizing method | |
CN102724419B (en) | Method and system for amplitude mode transformation of two-dimensional caption | |
CN102724414B (en) | A kind of method and system of multitask realization of caption special effect | |
CN102780852A (en) | Method for realizing spherical transition special effects | |
CN102724412B (en) | Method and system for realizing special effect of caption by pixel assignment | |
CN102724413A (en) | Method and system for realizing caption special effect by self-defining polygon unit |
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: 20121017 |
|
RJ01 | Rejection of invention patent application after publication |