CN102169594A - Method and device for realizing tweening animation in any region - Google Patents

Method and device for realizing tweening animation in any region Download PDF

Info

Publication number
CN102169594A
CN102169594A CN2010101164890A CN201010116489A CN102169594A CN 102169594 A CN102169594 A CN 102169594A CN 2010101164890 A CN2010101164890 A CN 2010101164890A CN 201010116489 A CN201010116489 A CN 201010116489A CN 102169594 A CN102169594 A CN 102169594A
Authority
CN
China
Prior art keywords
reference mark
gradual change
linear interpolation
default
core
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
CN2010101164890A
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 CN2010101164890A priority Critical patent/CN102169594A/en
Publication of CN102169594A publication Critical patent/CN102169594A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention provides a method for realizing tweening animation in any region, and the method comprises the following steps: presetting a group of control points, and sequentially connecting the control points to obtain a predetermined region; obtaining a control point coordinate; performing the linear interpolation processing on one or multiple control points; and realizing the tweening animation effect on the position and shape of the predetermined region. By using the method for realizing tweening animation in any region, the tweening animation effect in any region is realized by performing the interpolation processing on the control points; and compared with the prior art in which the interpolation processing is required to be performed on each picture, the method provided by the invention is simple in process program.

Description

A kind of realization arbitrary region gradual change cartoon method and device
Technical field
The present invention relates to the animation design technique field, particularly relate to a kind of realization arbitrary region gradual change cartoon method and device.
Background technology
In weather forecast system, usually need to draw various gradation zones, for example sexual intercourse district, haze district etc.With the sexual intercourse district is example, in order to embody different (the raining heavily moderate rain under the fringe region as the central area) of central area and the sexual intercourse amount of fringe region, need do regional fade effect.In addition, because the sexual intercourse district is along with the conversion of time, its position, shape all may change, so, also need to do the gradual change animation of arbitrary region.
In order to realize the animation of regional change, generally the regional picture with a series of variations of occurrence positions in regular turn and change of shape carries out interpolation processing, just can realize the animation effect of regional location, shape in the prior art.In the prior art in order to realize the fade effect of central area and fringe region, also be that the situation of change of a series of these central areas and fringe region is made many pieces of picture, afterwards these pictures are carried out interpolation processing, just can realize the fade effect of central area and fringe region.
Adopt the interior center of variation and zone of existing techniques in realizing arbitrary region shape, position and the fade effect of fringe region to carry out interpolation processing to a series of picture, obtain this a series of pictures and need the time, carry out interpolation processing again and need the time again, consumed time is long like this, and the program of processing is also more loaded down with trivial details.
Summary of the invention
Technical matters to be solved by this invention provides a kind of realization arbitrary region gradual change cartoon method, can produce arbitrary region gradual change animation simply, efficiently.
In order to address the above problem, the invention discloses a kind of realization arbitrary region gradual change cartoon method, comprising:
Default one group of reference mark connects the reference mark in regular turn and to obtain a predeterminable area;
Obtain described reference mark coordinate;
One or more reference mark coordinate is done linear interpolation processing;
Realize the gradual change animation effect of predeterminable area position and shape.
Further, obtaining the reference mark coordinate comprises:
Making is with the identical dull and stereotyped grid model that has texture coordinate of predeterminable area size;
The predeterminable area that obtains is pasted on the dull and stereotyped grid model;
Correspondence finds the position of described reference mark on dull and stereotyped grid model;
Obtain the coordinate at reference mark.
Further, the reference mark is connected in regular turn obtain a predeterminable area after, also comprise and realize described regional center part gradual change animation:
Core color and transparency in the default described zone;
Described core color and transparency are done linear interpolation;
Realize the gradual change animation effect of core.
Further, default core color refers to the rgb value of default core.
Further, the core color being done linear interpolation comprises:
Three components to the rgb value of core are done linear interpolation respectively.
Further, the reference mark is connected in regular turn obtain a predeterminable area after, also comprise and realize described edges of regions part gradual change animation:
Default described regional inward flange part color and transparency;
Described marginal portion color and transparency are done linear interpolation;
Realize the gradual change animation effect of marginal portion.
Further, preset the rgb value that the marginal portion color refers to default marginal portion.
Further, the marginal portion color being done linear interpolation comprises: three components to the rgb value of marginal portion are done linear interpolation respectively.
The embodiment of the invention also provides a kind of device of realizing arbitrary region gradual change animation, comprising:
Point face unit is used for default one group of reference mark, the reference mark is connected in regular turn obtain a predeterminable area;
Acquiring unit is used to obtain described reference mark coordinate;
First processing unit is used for one or more reference mark coordinate is done linear interpolation processing; Realize the gradual change animation effect of predeterminable area position and shape.
Further, this device also comprises:
The unit is set, is used for core color and transparency in the default described zone;
Second processing unit is done linear interpolation to described core color and transparency; Realize the animation effect of core.
Compared with prior art, the present invention has the following advantages:
The realization arbitrary region gradual change cartoon method that provides among the inventive method embodiment, by interpolation processing is done at the reference mark, realized the gradual change animation effect of arbitrary region, in prior art, need do the method for interpolation processing for many pieces of picture, method handling procedure provided by the invention is simple.
Description of drawings
Fig. 1 is a kind of process flow diagram of realizing arbitrary region gradual change cartoon method embodiment one of the present invention;
Fig. 2 is a kind of process flow diagram of realizing obtaining among the arbitrary region gradual change cartoon method embodiment one the reference mark coordinate of the present invention;
Fig. 3 is a kind of process flow diagram of realizing arbitrary region gradual change cartoon method embodiment two of the present invention;
Fig. 4 is a kind of process flow diagram of realizing arbitrary region gradual change cartoon method embodiment three of the present invention;
Fig. 5 is the structural representation of apparatus of the present invention embodiment four;
Fig. 6 adopts the inventive method to realize arbitrary region gradual change animation effect figure.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
Embodiment one
With reference to Fig. 1, show a kind of process flow diagram of realizing arbitrary region gradual change cartoon method embodiment one of the present invention, comprising:
Step 101 is preset one group of reference mark, the reference mark is connected in regular turn obtain a predeterminable area;
After getting access to weather data, can get access to the positional information in relevant meteorology zone, for example can know which piece zone in a period of time, sleety weather has the variation of progressively strengthening, the variation in the regional sky that can rainyly clear up of which piece.According to the above-mentioned information of obtaining, in the band of position that gradual change weather occurs, choose a time period, in the zero-time position of this time period and the position of concluding time, two key frames are set.In the band of position scope of gradual change weather occurring, choose one group of reference mark, these reference mark are connected in regular turn obtain a gradation zone, the zone that just default needs are realized weather gradual change animation.
Step 102 is obtained described reference mark coordinate;
When implementing this step, specifically can obtain the reference mark coordinate as follows, referring to Fig. 2, comprising:
Step 1021 is made with the identical dull and stereotyped grid model that has texture coordinate of predeterminable area size;
Step 1022 pastes the predeterminable area that obtains on the dull and stereotyped grid model;
Step 1023, correspondence find the position of described reference mark on dull and stereotyped grid model;
Step 1024, the coordinate at acquisition reference mark.
Step 103 is done linear interpolation processing to one or more reference mark coordinate;
Method of interpolation claims " interpolation method " again.Utilize the functional value of function some points in certain interval, make suitable specific function, get given value on these aspects, with the value of this specific function approximate value as function, this method is called method of interpolation on other aspects in interval.If this specific function is a polynomial expression, just claim that it is an interpolation polynomial.Utilizing method of interpolation to choose coordinate points has multiple way of realization, and it belongs to the known technology field, and the present invention does not do qualification at this.
Step 104, the gradual change animation effect of realization predeterminable area position and shape.
The invention described above embodiment by interpolation processing is done at the reference mark, has realized the gradual change animation effect of arbitrary region, in prior art, need do the method for interpolation processing for many pieces of picture, and method handling procedure provided by the invention is simple.
Adopt the method for the foregoing description one can realize the position of arbitrary region and the animation effect of shape, but in weather forecast, sometimes need to embody the different of center and marginal position sexual intercourse amount in certain zone, in weather forecast, need to realize the animation effect of center and marginal position sexual intercourse quantitative changeization in a period of time sometimes.The following examples have just provided how to realize center and marginal position gradual change cartoon method.
Embodiment two
With reference to Fig. 3, show a kind of process flow diagram of realizing arbitrary region gradual change cartoon method embodiment two of the present invention, comprising:
Step 301, the selected zone that needs to realize sexual intercourse amount gradual change animation is provided with this regional center part color and transparency;
PathGradientBrush paintbrush function by using the GDI+ application software to provide can easily be provided with central point color and transparency.The color setting of core is to set by the parameter value of three amounts of RGB to realize, RGB is the parameter of expression color commonly used in the prior art, and the RGB span is 0-255 generally speaking, when RGB value 0, represent, be that R, G, three parameter values of B are that 0,0,0 o'clock color is the whitest; When RGB value 255, R, G, three parameter values of B are 255,255,255 o'clock, and the expression color is the most black.
Step 302 is done linear interpolation to selection area core color and transparency;
When implementing this step the core color is done linear interpolation, can do linear interpolation respectively to three components of R, G, B of the rgb value of core.
Step 303, the gradual change animation effect of realization core.
Top embodiment two has introduced gradual change animation how to realize core, also needs to realize the gradual change animation of predeterminable area marginal portion in weather forecast sometimes, so just can better demonstrate the weather condition of this regional center part with the marginal portion.Following embodiment three has provided, and how to realize marginal portion gradual change cartoon method.
Embodiment three
Referring to Fig. 4, realize that gradual change cartoon method in marginal portion can comprise:
Step 401, the selected zone that needs to realize sexual intercourse amount gradual change animation is provided with this edges of regions part color and transparency;
Step 402 is done linear interpolation to described marginal portion color and transparency;
Step 403 realizes the gradual change animation effect of marginal portion.
The mode of each step specific implementation can repeat no more referring to the mode among the embodiment two.
Embodiment four
Referring to Fig. 5, the present invention also provides a kind of device of realizing arbitrary region gradual change animation, comprising:
Point face unit 501 is used for default one group of reference mark, the reference mark is connected in regular turn obtain a predeterminable area;
Acquiring unit 502 is used to obtain described reference mark coordinate;
First processing unit 503 is used for one or more reference mark coordinate is done linear interpolation processing; Realize the gradual change animation effect of predeterminable area position and shape.
This device can also comprise:
Unit 504 is set, is used for core color and transparency in the default described zone;
Second processing unit 505 is done linear interpolation to described core color and transparency; Realize the animation effect of core.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.
More than to a kind of realization arbitrary region gradual change cartoon method provided by the present invention and device, be described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. realize arbitrary region gradual change cartoon method for one kind, it is characterized in that, comprising:
Default one group of reference mark connects the reference mark in regular turn and to obtain a predeterminable area;
Obtain described reference mark coordinate;
One or more reference mark coordinate is done linear interpolation processing;
Realize the gradual change animation effect of predeterminable area position and shape.
2. method according to claim 1 is characterized in that, the described reference mark coordinate that obtains comprises:
Making is with the identical dull and stereotyped grid model that has texture coordinate of predeterminable area size;
The predeterminable area that obtains is pasted on the dull and stereotyped grid model;
Correspondence finds the position of described reference mark on dull and stereotyped grid model;
Obtain the coordinate at reference mark.
3. method according to claim 1 is characterized in that, the reference mark is connected in regular turn obtain a predeterminable area after, also comprise and realize described regional center part gradual change animation:
Core color and transparency in the default described zone;
Described core color and transparency are done linear interpolation;
Realize the gradual change animation effect of core.
4. method according to claim 3 is characterized in that, described default core color refers to the rgb value of default core.
5. method according to claim 4 is characterized in that, describedly the core color is done linear interpolation comprises:
Three components to the rgb value of core are done linear interpolation respectively.
6. method according to claim 1 is characterized in that, the reference mark is connected in regular turn obtain a predeterminable area after, also comprise and realize described edges of regions part gradual change animation:
Default described regional inward flange part color and transparency;
Described marginal portion color and transparency are done linear interpolation;
Realize the gradual change animation effect of marginal portion.
7. method according to claim 3 is characterized in that, described default marginal portion color refers to the rgb value of default marginal portion.
8. method according to claim 7 is characterized in that, describedly the marginal portion color is done linear interpolation comprises:
Three components to the rgb value of marginal portion are done linear interpolation respectively.
9. a device of realizing arbitrary region gradual change animation is characterized in that, comprising:
Point face unit is used for default one group of reference mark, the reference mark is connected in regular turn obtain a predeterminable area;
Acquiring unit is used to obtain described reference mark coordinate;
First processing unit is used for one or more reference mark coordinate is done linear interpolation processing; Realize the gradual change animation effect of predeterminable area position and shape.
10. device according to claim 9 is characterized in that, also comprises:
The unit is set, is used for core color and transparency in the default described zone;
Second processing unit is done linear interpolation to described core color and transparency; Realize the animation effect of core.
CN2010101164890A 2010-02-26 2010-02-26 Method and device for realizing tweening animation in any region Pending CN102169594A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101164890A CN102169594A (en) 2010-02-26 2010-02-26 Method and device for realizing tweening animation in any region

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101164890A CN102169594A (en) 2010-02-26 2010-02-26 Method and device for realizing tweening animation in any region

Publications (1)

Publication Number Publication Date
CN102169594A true CN102169594A (en) 2011-08-31

Family

ID=44490743

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101164890A Pending CN102169594A (en) 2010-02-26 2010-02-26 Method and device for realizing tweening animation in any region

Country Status (1)

Country Link
CN (1) CN102169594A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104167009A (en) * 2014-08-12 2014-11-26 厦门美图移动科技有限公司 Animation effect implementation method
KR20150012291A (en) * 2012-09-04 2015-02-03 시아오미 아이엔씨. Animation playing method, device and apparatus
CN104700444A (en) * 2015-03-10 2015-06-10 上海鸿利数码科技有限公司 Achievement method of picture animation
CN106157349A (en) * 2015-04-24 2016-11-23 苏宁云商集团股份有限公司 The automatic generation method of a kind of motion tweening and automatic creation system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1653487A (en) * 2002-05-10 2005-08-10 比特波伊斯有限责任公司 Graphics engine with edge drawing unit and electronic device and memory incorporating a graphics engine
WO2009002111A1 (en) * 2007-06-26 2008-12-31 Core Logic, Inc. Apparatus and method for automatically computing gamma correction curve
CN101339668A (en) * 2008-08-08 2009-01-07 浙江大学 Three-dimensional animations cartoon flame creation method
CN101369145A (en) * 2008-09-28 2009-02-18 浙江大学 Interactive shoehorn modeling method based on human foot characteristic size
CN101536078A (en) * 2006-09-25 2009-09-16 奥多比公司 Improving image masks

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1653487A (en) * 2002-05-10 2005-08-10 比特波伊斯有限责任公司 Graphics engine with edge drawing unit and electronic device and memory incorporating a graphics engine
CN101536078A (en) * 2006-09-25 2009-09-16 奥多比公司 Improving image masks
WO2009002111A1 (en) * 2007-06-26 2008-12-31 Core Logic, Inc. Apparatus and method for automatically computing gamma correction curve
CN101339668A (en) * 2008-08-08 2009-01-07 浙江大学 Three-dimensional animations cartoon flame creation method
CN101369145A (en) * 2008-09-28 2009-02-18 浙江大学 Interactive shoehorn modeling method based on human foot characteristic size

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨金钟 等: "基于控制点的图像变形方法及其应用", 《中国图像图形学报》, 30 November 2001 (2001-11-30) *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150012291A (en) * 2012-09-04 2015-02-03 시아오미 아이엔씨. Animation playing method, device and apparatus
EP2869272A4 (en) * 2012-09-04 2016-01-27 Xiaomi Inc Animation playing method, device and apparatus
KR101656167B1 (en) * 2012-09-04 2016-09-08 시아오미 아이엔씨. Method, apparatus, device, program and recording medium for displaying an animation
RU2598802C2 (en) * 2012-09-04 2016-09-27 Сяоми Инк. Animation playing method, device and apparatus
US9684990B2 (en) 2012-09-04 2017-06-20 Xiaomi Inc. Method and terminal for displaying an animation
CN104167009A (en) * 2014-08-12 2014-11-26 厦门美图移动科技有限公司 Animation effect implementation method
CN104167009B (en) * 2014-08-12 2018-12-11 厦门美图移动科技有限公司 A kind of implementation method of animation effect
CN104700444A (en) * 2015-03-10 2015-06-10 上海鸿利数码科技有限公司 Achievement method of picture animation
CN106157349A (en) * 2015-04-24 2016-11-23 苏宁云商集团股份有限公司 The automatic generation method of a kind of motion tweening and automatic creation system

Similar Documents

Publication Publication Date Title
CN103093437B (en) Generate the method and device of pencil drawing style image
CN103927727B (en) Method for converting scalar image into vector image
CN103778900B (en) A kind of image processing method and system
GB2455955A (en) Improving image mask
US20090167765A1 (en) System and method of converting edge record based graphics to polygon based graphics
CN104700444A (en) Achievement method of picture animation
CN104574495A (en) Method and device for rendering image
CN102169594A (en) Method and device for realizing tweening animation in any region
CN105389801A (en) Figure outline setting method, shooting terminal, figure image blurring method and system
CN103617596A (en) Image color style transformation method based on flow pattern transition
CN101908216B (en) Method and device for realizing vector fonts
CN108447121A (en) NRIETWebGIS dynamic color spot drawing drawing methods
CN103116898B (en) Generate method and the device of ink and wash style image
CN104732495B (en) A kind of image processing method and system based on fuzzy auto tone
CN111798810A (en) Special-shaped screen contour compensation method with good compensation effect and high efficiency and terminal
CN111701235A (en) Environment switching method, device, server and storage medium
CN106780393B (en) Image de-noising method based on image set
CN104715454B (en) A kind of antialiasing figure stacking method
CN103093417B (en) Generate method and the device of watercolor style image
CN105791764A (en) Video monitoring image display method based on three-dimensional image
CN103744942B (en) Web browser method and device, web page browsing terminal device
CN104952093A (en) Virtual hair coloring method and device
CN103543974B (en) A kind of method and system improving font clarity
CN104504107B (en) The methods of exhibiting and device of search pictures
CN102254332A (en) Oil painting generating method and system based on mobile terminal

Legal Events

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

Application publication date: 20110831