CN104574473B - Method and device for generating dynamic effect on basis of static image - Google Patents

Method and device for generating dynamic effect on basis of static image Download PDF

Info

Publication number
CN104574473B
CN104574473B CN201410854768.5A CN201410854768A CN104574473B CN 104574473 B CN104574473 B CN 104574473B CN 201410854768 A CN201410854768 A CN 201410854768A CN 104574473 B CN104574473 B CN 104574473B
Authority
CN
China
Prior art keywords
pixel
point
line
characteristic
picture
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.)
Expired - Fee Related
Application number
CN201410854768.5A
Other languages
Chinese (zh)
Other versions
CN104574473A (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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410854768.5A priority Critical patent/CN104574473B/en
Publication of CN104574473A publication Critical patent/CN104574473A/en
Priority to PCT/CN2015/095933 priority patent/WO2016107356A1/en
Application granted granted Critical
Publication of CN104574473B publication Critical patent/CN104574473B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)

Abstract

The embodiment of the invention provides a method and device for generating a dynamic effect on the basis of a static image. The method includes the steps of selecting a characteristic region in the static image, wherein the characteristic region comprises characteristic points; determining one or more reference points in the characteristic region; mapping pixel points of the static image to one or more frames of twisted pictures according to the characteristic points or the reference points; generating the dynamic effect on the basis of the one or more frames of twisted images. According to the method and the device, calculation is simple, the method and the device do not need to rely on software development kits or library files or tools of a third party, the rendering generation speed is high, the resource consumption is low, and the cross-platform effect can be easily achieved.

Description

A kind of method and apparatus for generating dynamic effect based on static images
Technical field
The present invention relates to technical field of image processing, more particularly to a kind of side that dynamic effect is generated based on static images Method and a kind of device that dynamic effect is generated based on static images.
Background technology
With computer science and technology development, especially mobile device is widely available, computer based be widely used into Enter the various aspects of people's life.
Animation effect is automatically generated based on picture, there are many applications in terms of the Internet amusement.
Typically now all can be led to using the kits such as openGL (Open Graphics Library) interface or instrument Cross and render generation, on the one hand this mode relies on third party's kit, library file or instrument, on the other hand to system configuration and Resource has particular/special requirement, therefore, consumption resource is big, it is slow to render formation speed, and is unfavorable for cross-platform transplanting.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome the problems referred to above or at least in part solve on A kind of method and a kind of corresponding static images that are based on for generating dynamic effect based on static images for stating problem generates dynamic effect The device of fruit.
According to one aspect of the present invention, there is provided a kind of method for generating dynamic effect based on static images, including:
The selected characteristic region in static images;There is in the characteristic area characteristic point;
One or more reference points are determined in the characteristic area;
The pixel of the static images is mapped to by a frame according to the characteristic point and one or more of reference points Or in multiframe distortion picture;
Dynamic effect is generated based on a frame or multiframe distortion picture.
Alternatively, the characteristic area includes convex domain, and the characteristic point includes focus point.
Alternatively, it is described according to the characteristic point and one or more of reference points by the pixel of the static images Step in being mapped to a frame or multiframe distortion picture includes:
Generate distortion picture;
Pixel on the first line in the characteristic area is mapped on the second line;
Copy the pixel on second line to same position in the distortion picture;
Wherein, first line is the line between the characteristic point and marginal point, and second line is current ginseng The line of examination point and marginal point, the marginal point is the coordinate points on the characteristic area edge.
Alternatively, the pixel by the first line in the characteristic area is mapped to the step on the second line Including:
Calculate the pixel in the characteristic area on the first line, the relative position on the first line;
According to the relative position, the pixel is copied on the second line.
Alternatively, it is described according to the characteristic point and one or more of reference points by the pixel of the static images Step in being mapped to a frame or multiframe distortion picture also includes:
Pixel outside the characteristic area is mapped to the same position in the distortion picture.
Alternatively, it is described according to the characteristic point and one or more of reference points by the pixel of the static images Step in being mapped to a frame or multiframe distortion picture also includes:
Pixel to distorting location overlap in picture carries out pixel overlap-add procedure.
Alternatively, it is described according to the characteristic point and one or more of reference points by the pixel of the static images Step in being mapped to a frame or multiframe distortion picture also includes:
Pixel interpolation processing is carried out to distorting the blank position in picture.
Alternatively, it is described to be included the step of generating dynamic effect based on a frame or multiframe distortion picture:
Dynamic picture is generated using the static images and a frame or multiframe distortion picture.
Alternatively, it is described to be included the step of generating dynamic effect based on a frame or multiframe distortion picture:
Multidate information is generated based on the characteristic area;
The multidate information and scripting object are write in the static images, to generate dynamic interaction file.
Alternatively, include the step of the generation multidate information based on the characteristic area:
Multidate information is generated using the characteristic area, the characteristic point and one or more of reference points.
According to a further aspect in the invention, there is provided it is a kind of based on static images generate dynamic effect device, including:
Module is chosen, the selected characteristic region in static images is suitable to;There is in the characteristic area characteristic point;
Determining module, is suitable to one or more reference points are determined in the characteristic area;
Mapping block, is suitable to the pixel of the static images according to the characteristic point and one or more of reference points Point is mapped in a frame or multiframe distortion picture;
Generation module, is suitable to generate dynamic effect based on a frame or multiframe distortion picture.
Alternatively, the characteristic area includes convex domain, and the characteristic point includes focus point.
Alternatively, the mapping block is further adapted for:
Generate distortion picture;
Pixel on the first line in the characteristic area is mapped on the second line;
Copy the pixel on second line to same position in the distortion picture;
Wherein, first line is the line between the characteristic point and marginal point, and second line is current ginseng The line of examination point and marginal point, the marginal point is the coordinate points on the characteristic area edge.
Alternatively, the mapping block is further adapted for:
Calculate the pixel in the characteristic area on the first line, the relative position on the first line;
According to the relative position, the pixel is copied on the second line.
Alternatively, the mapping block is further adapted for:
Pixel outside the characteristic area is mapped to the same position in the distortion picture.
Alternatively, the mapping block is further adapted for:
Pixel to distorting location overlap in picture carries out pixel overlap-add procedure.
Alternatively, the mapping block is further adapted for:
Pixel interpolation processing is carried out to distorting the blank position in picture.
Alternatively, the generation module is further adapted for:
Dynamic picture is generated using the static images and a frame or multiframe distortion picture.
Alternatively, the generation module is further adapted for:
Multidate information is generated based on the characteristic area;
The multidate information and scripting object are write in the static images, to generate dynamic interaction file.
Alternatively, the generation module is further adapted for:
Multidate information is generated using the characteristic area, the characteristic point and one or more of reference points.
During the embodiment of the present invention is to the characteristic area of static images, one or more reference points are determined, by static images Pixel be mapped in a frame or multiframe distortion picture, generate dynamic effect, calculate it is simple, third party's exploitation need not be relied on Bag, library file or instrument, render formation speed soon, few to resource consumption, easily cross-platform.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of description, and in order to allow the above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the specific embodiment of the present invention.
Description of the drawings
By the detailed description for reading hereafter preferred implementation, various other advantages and benefit are common for this area Technical staff will be clear from understanding.Accompanying drawing is only used for the purpose for illustrating preferred implementation, and is not considered as to the present invention Restriction.And in whole accompanying drawing, it is denoted by the same reference numerals identical part.In the accompanying drawings:
Fig. 1 shows that a kind of method for generating dynamic effect based on static images according to an embodiment of the invention is implemented Example the step of flow chart;
Fig. 2 shows a kind of exemplary plot of static images according to an embodiment of the invention;
Fig. 3 shows a kind of exemplary plot in selected characteristic region in static images according to an embodiment of the invention;
Fig. 4 shows a kind of Mapping Examples figure of pixel according to an embodiment of the invention;
Fig. 5 A and Fig. 5 B show a kind of exemplary plot of warp image according to an embodiment of the invention;And
Fig. 6 shows that a kind of device for generating dynamic effect based on static images according to an embodiment of the invention is implemented The structured flowchart of example.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should not be by embodiments set forth here Limited.On the contrary, there is provided these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
With reference to Fig. 1, a kind of side that dynamic effect is generated based on static images according to an embodiment of the invention is shown The step of method embodiment flow chart, specifically may include steps of:
Step 101, the selected characteristic region in static images;
It should be noted that the embodiment of the present invention is can apply in mobile device, and for example, mobile phone, PDA (Personal Digital Assistant, personal digital assistant), laptop computer, palm PC etc., it is also possible to be applied to fixation and setting In standby, for example, PC (Personal Computer, PC), notebook computer etc., the embodiment of the present invention is not added with to this To limit.
These mobile devices or fixing equipment can typically be supported to include Android (ARIXTRA), IOS, WindowsPhone Or the operating system of windows etc., can generally store static images.
Static images, can for dynamic picture, i.e., not have the picture of dynamic effect.
The static images can including JPG, JPEG, PNG, BMP etc. form, the embodiment of the present invention is not any limitation as to this.
In embodiments of the present invention, some region can be chosen in static images as characteristic area, this feature area Domain can be the shapes such as polygon, circle, ellipse, carry out the life of dynamic effect for the view data in this feature region Into.
For example, for static images as shown in Figure 2, an oval choice box as shown in Figure 3, user can be provided The shape of the oval choice box can be changed, and select which for the position of static images, the position is can determine as spy Levy region.
Wherein, there can be characteristic point in the characteristic area, to the generation for carrying out dynamic effect.
In a kind of optional example of the embodiment of the present invention, the characteristic area can include convex domain, the characteristic point Focus point can be included.
Convex domain, may refer to figure toward evagination from geometrically seeing, where not falling in.
Convex domain can be so defined on algebraically:Appoint in set and take two points a, b, there are t*a+ (1-t) * b to still fall within this Set, wherein 0<t<1, the meaning of this expression formula can be the straightway for connecting two point a b also in set.
Center of gravity geometrically, is also called geometric center, and when object is homogenizing (density is definite value), barycenter is equal to the centre of form, Such as, the intersection point of Atria bar center line.
Step 102, determines one or more reference points in the characteristic area;
In implementing, can be when the interactive operation event specified be listened to, according to specified interactive operation event Determine one or more reference points.
The interactive operation event can be to interact the caused event of operation by user.
By the triggering of the interactive operation event, characteristic area can be caused to carry out the shake effect similar to physics water polo (approximately filling the balloon of water), and its jitter direction and mode are changed according to the different interactive operation of user, such as handss The direction of machine shake, the position of screen taps etc..
In a kind of situation, the interactive operation event that this is specified can include rocking event, then can be according to the event of rocking Rock direction, one or more reference points are chosen in the characteristic area of static images.
In this kind of situation, user can interact operation by rocking.
Specifically, acceleration transducer can be monitored from the Sensor Events interface of operating system (such as Android) (such as 3-axis acceleration sensor) event.
After receiving acceleration transducer change events, equipment is obtained respectively in level, vertical and three sides of spatial vertical To acceleration, calculate the quadratic sum of all directions acceleration, and obtain its square root, as the comprehensive acceleration of equipment movement.
If comprehensive acceleration may determine that the event of rocking that listens to more than the acceleration rate threshold of setting, assert user's Rock operation to interact.
On direction is rocked, can be with to rock direction identical, it is also possible in opposite direction with rocking, in the feature of static images The reference point of one or more continuous distribution is chosen in region.
In another kind of situation, the interactive operation event that this is specified can include screen taps event, then send out according to sensing The direction of raw screen taps event, chooses one or more reference points in the characteristic area of static images.
In this kind of situation, user can interact operation by clicking on screen (such as characteristic area).
If listening to screen taps event, can be according to the direction for pointing to generation screen taps event, such as characteristic area Central point/focus point point to the direction that screen taps event occurs, can be identical with the direction, it is also possible to direction phase Instead, the reference point of one or more continuous distribution is chosen in the characteristic area of static images.
Certainly, the determination mode of above-mentioned reference point is intended only as example, when the embodiment of the present invention is implemented, can be according to reality Border situation arranges the determination mode of other reference points, and for example, the position of direct specified reference point, the embodiment of the present invention are not added with to this To limit.In addition, in addition to the determination mode of above-mentioned reference point, those skilled in the art can also adopt which according to actual needs The determination mode of its reference point, the embodiment of the present invention are not also any limitation as to this.
The pixel of the static images is reflected by step 103 according to the characteristic point and one or more of reference points It is mapped in a frame or multiframe distortion picture;
In embodiments of the present invention, can be on the basis of characteristic point, using reference point as the amplitude reference of distortion, to static state Picture is mapped, to generate distortion picture.
The pixel in characteristic area in static images can point to the direction mapping of reference point along characteristic point, cause quiet The distortion of state picture.When reference point deviates, characteristic point is bigger, and the amplitude of distortion can be bigger, gets over when reference point deviates characteristic point Little, the amplitude of distortion can be less, especially, when characteristic point is overlapped with reference point, can not produce distortion in distortion picture.
In a kind of alternative embodiment of the present invention, step 103 can include following sub-step:
Sub-step S11, generates distortion picture;
In embodiments of the present invention, the original state for distorting picture can be blank.
Sub-step S12, the pixel on the first line in the characteristic area is mapped on the second line;
Wherein, first line can be line between the characteristic point and marginal point, and second line can be with For current reference point and the line of marginal point, the marginal point can be the coordinate points on the characteristic area edge.
In the embodiment of the present invention, for the pixel in characteristic area, can be mapped according to reference point.
It should be noted that if characteristic area is convex domain, reference point is characterized the pixel in region, then after mapping Pixel is may be located in characteristic area, realizes that the pixel in characteristic area is mapped in characteristic area, without reflecting It is mapped to outside characteristic area.
For example, as shown in figure 4, C0 is characterized point (such as focus point), C1 can be reference point, and E can be with marginal point, then C0E Can be the first line, C1E can be the second line, in the embodiment of the present invention, can be by the pixel on the first line C0E P0, is mapped on the second line C1E, obtains the point P1 being mapped to.
In a kind of optional example of the embodiment of the present invention, sub-step S12 can include following sub-step:
Sub-step S121, calculates the pixel in the characteristic area on the first line, relative on the first line Position;
Sub-step S122, according to the relative position, the pixel is copied on the second line.
In actual applications, the relative position of pixel can be expressed with proportionate relationship.
For example, in one example, as shown in figure 4, the ratio of line segment C0P0 and line segment C0E, as ratio R, Ke Yizuo For relative positions of the pixel P0 on the first line C0E.According to ratio R, the point P1 on line segment C1E is tried to achieve so that line segment The ratio of C1P1 and the second line C1E is R.
Certainly, ratio table between other line segments comprising pixel and the first line can also be adopted in the embodiment of the present invention Up to relative position, the embodiment of the present invention is not any limitation as to this.
Sub-step S13, copies the pixel on second line to same position in the distortion picture;
If it is determined that on the second line pixel position, then can be copied to distort the same position in picture, Carry out the distortion mapping of image.
In a kind of alternative embodiment of the present invention, step 103 can also include following sub-step:
Sub-step S14, the pixel outside the characteristic area are mapped to the same position in the distortion picture.
In the embodiment of the present invention, if pixel is outside convex characteristic area on static images, torsion can be copied directly to Corresponding same position on diagram piece, does not produce distortion.
Certainly, the embodiment of the present invention can not also to characteristic area outside pixel map, be based only upon characteristic area In pixel mapped, the embodiment of the present invention is not any limitation as to this.
In a kind of alternative embodiment of the present invention, step 103 can also include following sub-step:
Sub-step S15, the pixel to distorting location overlap in picture carry out pixel overlap-add procedure.
In embodiments of the present invention, due to static images carry out mapping produce distortion, distortion picture in pixel more The region of concentration, may produce the situation of the location overlap of pixel.
For the situation of the location overlap of pixel, the embodiment of the present invention can carry out pixel overlap-add procedure.
For example, if applying rgb color pattern, can be by red (R), green (G) to pixel, blue (B) three colors The change of passage and their superpositions each other are obtaining color miscellaneous.
Certainly, in order to further reduce amount of calculation, it is also possible to a pixel is chosen from the pixel of superposition (as random Selected pixels point, selection finally copy the pixel of the position to) as the pixel of the position, other modes can also be adopted The pixel of the position is chosen, the embodiment of the present invention is not any limitation as to this.
In a kind of alternative embodiment of the present invention, step 103 can also include following sub-step:
Sub-step S16, carries out pixel interpolation processing to distorting the blank position in picture.
In embodiments of the present invention, due to static images carry out mapping produce distortion, distortion picture in pixel more Sparse region, may be not assigned by some pixels that (i.e. no pixel is mapped to the position, the pixel of the position Point is initial condition, such as white), produce the situation of blank position.
Situation for distorting the blank position in picture, the embodiment of the present invention can carry out pixel interpolation processing, with Completion distorts picture.
For example, for the pixel Px not being assigned, the pixel Py of selected distance its nearest assignment is (as above The pixel of side, the pixel of lower section, the pixel in left side, the pixel on right side etc.), the value of pixel Py is assigned to into pixel Px。
In actual applications, when reference point (C1 as shown in Figure 4) moves to some position, can be according to ginseng The position of examination point (C1 as shown in Figure 4) maps out a distortion picture, as reference point (C1 as shown in Figure 4) is moved to not Same position, distortion picture also change, and distortion picture continuously can be played, so as to form animation effect.
As shown in Figure 5A, it is if reference point (C1 as shown in Figure 4) is in the left side of characteristic point (C0 as shown in Figure 4), special In levying image, entirety can be distorted toward left side;Shown in Fig. 5 B, if reference point is on the right side of characteristic point (C0 as shown in Figure 4), Overall distortion of can turning right in characteristic image.
Further, if according to the interactive operation event specified, the position of reference point determines that reference point can be from feature The position of point is set out, and (such as rocks rocking direction, pointing to generation screen for event along the corresponding direction of interactive operation event specified The direction of click event) it is distributed in characteristic point both sides, finally overlap with characteristic point, then the distortion picture that characteristic area is mapped out can Distorted along the corresponding direction of interactive operation event specified back and forth, shake effect is produced, and it is final static.
For example, as shown in figure 4, reference Point C 1 does concussion movement, reference Point C 1 along in the X-direction through focus point C0 Often move to a position and will generate a distortion picture, distortion picture is played frame by frame, can be produced such as Fig. 5 A and Fig. 5 B institutes The image table in characteristic area shown reveals the dynamic effect of left and right vibrations.
Step 104, generates dynamic effect based on a frame or multiframe distortion picture.
It should be noted that the dynamic effect can be generated currently, it is also possible to be driven after, the present invention is real Apply example not to be any limitation as this.
In a kind of alternative embodiment of the present invention, step 104 can include following sub-step:
Sub-step S21, generates dynamic picture using the static images and a frame or multiframe distortion picture.
In embodiments of the present invention, a frame static images can be preserved, and, a frame or multiframe include this feature region Distortion picture, generates dynamic picture, such as GIF.
Storage relative to traditional GIF, due to reducing the view data beyond distortion picture, it is possible to reduce Dynamic Graph The volume size of piece.
In a kind of alternative embodiment of the present invention, step 104 can include following sub-step:
Sub-step S31, generates multidate information based on the characteristic area;
Multidate information can be the configuration information that the characteristic area of static images is mapped to a frame or multiframe warp image, Such as XML (Extensible Markup Language, extendible identifiable language), json (Javascript Object Notation, data interchange language) etc..
The example of the configuration information designed with json can be as follows:
In a kind of optional example of the embodiment of the present invention, sub-step S31 can include following sub-step:
Sub-step S311, generates dynamic using the characteristic area, the characteristic point and one or more of reference points Information.
In embodiments of the present invention, characteristic area, characteristic point and one or more reference points can be generated multidate information, To support the generation of the dynamic effect based on reference point.
Sub-step S32, the multidate information and scripting object are write in the static images, to generate dynamic interaction text Part.
In embodiments of the present invention, can be by multidate information, scripting object (such as JS scripts) write static images, can be with Be transferred to network or to other users, can also be stored.
After the scripting object is read, it is possible to use scripting object is reflected to the static images according to the multidate information Penetrate, to produce the dynamic effect being change from frame to frame.
During the embodiment of the present invention is to the characteristic area of static images, one or more reference points are determined, by static images Pixel be mapped in a frame or multiframe distortion picture, generate dynamic effect, calculate it is simple, third party's exploitation need not be relied on Bag, library file or instrument, render formation speed soon, few to resource consumption, easily cross-platform.
For embodiment of the method, in order to be briefly described, therefore which is all expressed as a series of combination of actions, but this area Technical staff should know that the embodiment of the present invention is not limited by described sequence of movement, because according to present invention enforcement Example, some steps can adopt other orders or while carry out.Secondly, those skilled in the art should also know, description Described in embodiment belong to preferred embodiment, necessary to the involved action not necessarily embodiment of the present invention.
With reference to Fig. 6, a kind of dress that dynamic effect is generated based on static images according to an embodiment of the invention is shown The structured flowchart of embodiment is put, specifically can be included such as lower module:
Module 601 is chosen, the selected characteristic region in static images is suitable to;There is in the characteristic area characteristic point;
Determining module 602, is suitable to one or more reference points are determined in the characteristic area;
Mapping block 603, is suitable to the static images according to the characteristic point and one or more of reference points Pixel is mapped in a frame or multiframe distortion picture;
Generation module 604, is suitable to generate dynamic effect based on a frame or multiframe distortion picture.
In a kind of optional example of the embodiment of the present invention, the characteristic area can include convex domain, the characteristic point Focus point can be included.
In a kind of alternative embodiment of the present invention, the mapping block 604 can be adapted to:
Generate distortion picture;
Pixel on the first line in the characteristic area is mapped on the second line;
Copy the pixel on second line to same position in the distortion picture;
Wherein, first line is the line between the characteristic point and marginal point, and second line is current ginseng The line of examination point and marginal point, the marginal point is the coordinate points on the characteristic area edge.
In a kind of alternative embodiment of the present invention, the mapping block 604 can be adapted to:
Calculate the pixel in the characteristic area on the first line, the relative position on the first line;
According to the relative position, the pixel is copied on the second line.
In a kind of alternative embodiment of the present invention, the mapping block 604 can be adapted to:
Pixel outside the characteristic area is mapped to the same position in the distortion picture.
In a kind of alternative embodiment of the present invention, the mapping block 604 can be adapted to:
Pixel to distorting location overlap in picture carries out pixel overlap-add procedure.
In a kind of alternative embodiment of the present invention, the mapping block 604 can be adapted to:
Pixel interpolation processing is carried out to distorting the blank position in picture.
In a kind of alternative embodiment of the present invention, the generation module 605 can be adapted to:
Dynamic picture is generated using the static images and a frame or multiframe distortion picture.
In a kind of alternative embodiment of the present invention, the generation module 605 can be adapted to:
Multidate information is generated based on the characteristic area;
The multidate information and scripting object are write in the static images, to generate dynamic interaction file.
In a kind of alternative embodiment of the present invention, the generation module 605 can be adapted to:
Multidate information is generated using the characteristic area, the characteristic point and one or more of reference points.
For device embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, it is related Part is illustrated referring to the part of embodiment of the method.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together based on teaching in this.As described above, construct required by this kind of system Structure be obvious.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use it is various Programming language realizes the content of invention described herein, and the description done to language-specific above is to disclose this Bright preferred forms.
In description mentioned herein, a large amount of details are illustrated.It is to be appreciated, however, that the enforcement of the present invention Example can be put into practice in the case where not having these details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand one or more in each inventive aspect, exist Above to, in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes In example, figure or descriptions thereof.However, should the method for the disclosure be construed to reflect following intention:I.e. required guarantor The more features of feature is expressly recited in each claim by the application claims ratio of shield.More precisely, such as following Claims it is reflected as, inventive aspect is less than all features of single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as the separate embodiments of the present invention.
Those skilled in the art are appreciated that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more different from embodiment equipment.Can be the module or list in embodiment Unit or component are combined into a module or unit or component, and can be divided in addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit is excluded each other, can adopt any Combine to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (includes adjoint power Profit is required, summary and accompanying drawing) disclosed in each feature can it is identical by offers, be equal to or the alternative features of similar purpose carry out generation Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments In some included features rather than further feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment required for protection appoint One of meaning can in any combination mode using.
The present invention all parts embodiment can be realized with hardware, or with one or more processor operation Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that can use in practice Microprocessor or digital signal processor (DSP) are realizing according to embodiments of the present invention generating dynamic effect based on static images The some or all functions of some or all parts in the equipment of fruit.The present invention is also implemented as performing here (for example, computer program and computer program are produced for some or all equipment of described method or program of device Product).Such program for realizing the present invention can be stored on a computer-readable medium, or can have one or more The form of signal.Such signal can be downloaded from internet website and be obtained, or provide on carrier signal, or to appoint What other forms is provided.
It should be noted that above-described embodiment the present invention will be described rather than limits the invention, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference markss between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not Element listed in the claims or step.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can come real by means of the hardware for including some different elements and by means of properly programmed computer It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and be run after fame Claim.

Claims (18)

1. it is a kind of based on static images generate dynamic effect method, including:
The selected characteristic region in static images;There is in the characteristic area characteristic point;
One or more reference points are determined in the characteristic area;
The pixel of the static images is mapped to by a frame or many according to the characteristic point and one or more of reference points In frame distortion picture;
Dynamic effect is generated based on a frame or multiframe distortion picture;
It is described that the pixel of the static images is mapped to by a frame according to the characteristic point and one or more of reference points Or the step in multiframe distortion picture includes:
Generate distortion picture;
Pixel on the first line in the characteristic area is mapped on the second line;
Copy the pixel on second line to same position in the distortion picture;
Wherein, first line is the line between the characteristic point and marginal point, and second line is current reference point With the line of marginal point, the marginal point is the coordinate points on the characteristic area edge.
2. the method for claim 1, it is characterised in that the characteristic area includes convex domain, and the characteristic point includes Focus point.
3. the method for claim 1, it is characterised in that the pixel by the first line in the characteristic area The step that point is mapped on the second line includes:
Calculate the pixel in the characteristic area on the first line, the relative position on the first line;
According to the relative position, the pixel is copied on the second line.
4. the method for claim 1, it is characterised in that described according to the characteristic point and one or more of references Step during the pixel of the static images is mapped to a frame or multiframe distortion picture by point also includes:
Pixel outside the characteristic area is mapped to the same position in the distortion picture.
5. the method for claim 1, it is characterised in that described according to the characteristic point and one or more of references Step during the pixel of the static images is mapped to a frame or multiframe distortion picture by point also includes:
Pixel to distorting location overlap in picture carries out pixel overlap-add procedure.
6. the method for claim 1, it is characterised in that described according to the characteristic point and one or more of references Step during the pixel of the static images is mapped to a frame or multiframe distortion picture by point also includes:
Pixel interpolation processing is carried out to distorting the blank position in picture.
7. the method as described in any one of claim 1-6, it is characterised in that described based on a frame or multiframe distortion picture The step of generating dynamic effect includes:
Dynamic picture is generated using the static images and a frame or multiframe distortion picture.
8. the method as described in any one of claim 1-6, it is characterised in that described based on a frame or multiframe distortion picture The step of generating dynamic effect includes:
Multidate information is generated based on the characteristic area;
The multidate information and scripting object are write in the static images, to generate dynamic interaction file.
9. method as claimed in claim 8, it is characterised in that described the step of generate multidate information based on the characteristic area Including:
Multidate information is generated using the characteristic area, the characteristic point and one or more of reference points.
10. it is a kind of based on static images generate dynamic effect device, including:
Module is chosen, the selected characteristic region in static images is suitable to;There is in the characteristic area characteristic point;
Determining module, is suitable to one or more reference points are determined in the characteristic area;
Mapping block, is suitable to reflect the pixel of the static images according to the characteristic point and one or more of reference points It is mapped in a frame or multiframe distortion picture;
Generation module, is suitable to generate dynamic effect based on a frame or multiframe distortion picture;
The mapping block is further adapted for:
Generate distortion picture;
Pixel on the first line in the characteristic area is mapped on the second line;
Copy the pixel on second line to same position in the distortion picture;
Wherein, first line is the line between the characteristic point and marginal point, and second line is current reference point With the line of marginal point, the marginal point is the coordinate points on the characteristic area edge.
11. devices as claimed in claim 10, it is characterised in that the characteristic area includes convex domain, the characteristic point bag Include focus point.
12. devices as claimed in claim 10, it is characterised in that the mapping block is further adapted for:
Calculate the pixel in the characteristic area on the first line, the relative position on the first line;
According to the relative position, the pixel is copied on the second line.
13. devices as claimed in claim 10, it is characterised in that the mapping block is further adapted for:
Pixel outside the characteristic area is mapped to the same position in the distortion picture.
14. devices as claimed in claim 10, it is characterised in that the mapping block is further adapted for:
Pixel to distorting location overlap in picture carries out pixel overlap-add procedure.
15. devices as claimed in claim 10, it is characterised in that the mapping block is further adapted for:
Pixel interpolation processing is carried out to distorting the blank position in picture.
16. devices as described in any one of claim 10-15, it is characterised in that the generation module is further adapted for:
Dynamic picture is generated using the static images and a frame or multiframe distortion picture.
17. devices as described in any one of claim 10-15, it is characterised in that the generation module is further adapted for:
Multidate information is generated based on the characteristic area;
The multidate information and scripting object are write in the static images, to generate dynamic interaction file.
18. devices as claimed in claim 17, it is characterised in that the generation module is further adapted for:
Multidate information is generated using the characteristic area, the characteristic point and one or more of reference points.
CN201410854768.5A 2014-12-31 2014-12-31 Method and device for generating dynamic effect on basis of static image Expired - Fee Related CN104574473B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410854768.5A CN104574473B (en) 2014-12-31 2014-12-31 Method and device for generating dynamic effect on basis of static image
PCT/CN2015/095933 WO2016107356A1 (en) 2014-12-31 2015-11-30 Static picture-based dynamic interaction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410854768.5A CN104574473B (en) 2014-12-31 2014-12-31 Method and device for generating dynamic effect on basis of static image

Publications (2)

Publication Number Publication Date
CN104574473A CN104574473A (en) 2015-04-29
CN104574473B true CN104574473B (en) 2017-04-12

Family

ID=53090439

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410854768.5A Expired - Fee Related CN104574473B (en) 2014-12-31 2014-12-31 Method and device for generating dynamic effect on basis of static image

Country Status (1)

Country Link
CN (1) CN104574473B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016107356A1 (en) * 2014-12-31 2016-07-07 北京奇虎科技有限公司 Static picture-based dynamic interaction method and device
CN105405155A (en) * 2015-10-21 2016-03-16 努比亚技术有限公司 Information processing method and mobile terminal
CN109361880A (en) 2018-11-30 2019-02-19 三星电子(中国)研发中心 A kind of method and system showing the corresponding dynamic picture of static images or video
CN111464699B (en) * 2020-04-02 2022-10-04 北京小米移动软件有限公司 Call background display method, device and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101061502A (en) * 2004-09-28 2007-10-24 高通股份有限公司 Magnification and pinching of two-dimensional images

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102411791B (en) * 2010-09-19 2013-09-25 三星电子(中国)研发中心 Method and equipment for changing static image into dynamic image
RU2481640C1 (en) * 2011-12-01 2013-05-10 Корпорация "Самсунг Электроникс Ко., Лтд" Method and system of generation of animated art effects on static images
CN103473799B (en) * 2013-09-02 2016-09-14 腾讯科技(深圳)有限公司 The method for dynamically processing of a kind of picture and device, terminal unit

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101061502A (en) * 2004-09-28 2007-10-24 高通股份有限公司 Magnification and pinching of two-dimensional images

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
手机360搜索玩图抖动使用教程;西西小熊;《http://www.cr173.com/html/38305_1.html》;20140805;1-6页 *

Also Published As

Publication number Publication date
CN104574473A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
CN104571887B (en) Static picture based dynamic interaction method and device
CN106296565B (en) Graphics pipeline method and apparatus
TWI697866B (en) Method and device for implementing color tweening animation
US20120092340A1 (en) Systems, methods, and computer-readable media for manipulating graphical objects
US9881391B2 (en) Procedurally defined texture maps
US9836876B1 (en) Rendering images using ray tracing with multiple light sources
KR100829564B1 (en) 3d graphics rendering method and apparatus for providing motion blur effect efficiently
CN104574473B (en) Method and device for generating dynamic effect on basis of static image
TW201108152A (en) Displaying a visual representation of performance metrics for rendered graphics elements
US9723204B2 (en) Dynamic motion path blur kernel
US8854392B2 (en) Circular scratch shader
KR101993941B1 (en) Caching coverage values for rendering text using anti-aliasing techniques
US9786095B2 (en) Shadow rendering apparatus and control method thereof
US9955065B2 (en) Dynamic motion path blur user interface
CN107924560A (en) Method and apparatus based on anchor frame modification multiple image
US10776996B2 (en) Method and apparatus for processing image
US9779484B2 (en) Dynamic motion path blur techniques
CN114764841A (en) Use of built-in functions for shadow denoising in ray tracing applications
Wahle et al. Multi-scale visualization of molecular architecture using real-time ambient occlusion in sculptor
CN104574483A (en) Method and device for generating customizable dynamic graphs
US9189882B2 (en) Method and apparatus for ray tracing in a 3-dimensional image system
KR101807229B1 (en) Accelerated super-resolution processing method for TV video images, accelerated super-resolution processing device for TV video images that is used in same method, first to sixth accelerated super-resolution processing programs, and first to second storage media
WO2016107356A1 (en) Static picture-based dynamic interaction method and device
GB2547529A (en) 3D digital content interaction and control
US20080165208A1 (en) 3-Dimensional graphic processing apparatus and operating method thereof

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170412

Termination date: 20211231