CN105447814A - Picture deforming method and intelligent terminal - Google Patents

Picture deforming method and intelligent terminal Download PDF

Info

Publication number
CN105447814A
CN105447814A CN201511001602.XA CN201511001602A CN105447814A CN 105447814 A CN105447814 A CN 105447814A CN 201511001602 A CN201511001602 A CN 201511001602A CN 105447814 A CN105447814 A CN 105447814A
Authority
CN
China
Prior art keywords
deformation
picture
formula
processing method
acceleration information
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
CN201511001602.XA
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.)
Excellent Foreign (beijing) Network Technology Co Ltd
Original Assignee
Excellent Foreign (beijing) Network Technology 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 Excellent Foreign (beijing) Network Technology Co Ltd filed Critical Excellent Foreign (beijing) Network Technology Co Ltd
Priority to CN201511001602.XA priority Critical patent/CN105447814A/en
Publication of CN105447814A publication Critical patent/CN105447814A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/18Image warping, e.g. rearranging pixels individually

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Telephone Function (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a picture deforming method and an intelligent terminal. The picture deforming method comprises the following steps: presetting a deformation formula of a picture, wherein at least one deformation parameter in the deformation formula is acceleration data; acquiring an instruction for deforming the picture from a user; acquiring the acceleration data detected via an acceleration sensor; and calculating the deformation formula according to the acceleration data, and deforming the picture according to the calculated deformation formula. According to the picture deforming method, the acceleration data are acquired via the acceleration sensor, and serve as one parameter in the deformation formula, and the picture is deformed according to the deformation formula, so that the final deformation effect of the picture can be determined as long as the user shakes the acceleration sensor.

Description

Picture deformation processing method and intelligent terminal
Technical field
The present invention relates to picture Processing Technique, be specifically related to a kind of picture deformation processing method and intelligent terminal.
Background technology
Take pictures and comparison film to carry out various process be one of life style of fashion crowd, wherein, the method that comparison film carries out deformation process comprise tear, splash and distortion etc.Deformation processing method of the prior art, multiple preset deformation process program, after user sends deformation process instruction, deformation process program is run and picture is out of shape.
In prior art, the result of picture distortion is determined by machine completely, and user cannot determine deformation result, and the desire for participation of user is lower.
Summary of the invention
The object of this invention is to provide a kind of picture deformation processing method and intelligent terminal, to solve the problem of the uncontrollable picture deformation result of user in prior art.
To achieve these goals, the invention provides following technical scheme:
A kind of picture deformation processing method, comprises the following steps:
Preset the deformation formula of picture, at least one deformation parameter of described deformation formula is acceleration information;
Obtain user carries out deformation process instruction to picture;
Obtain the described acceleration information that acceleration transducer detects;
Calculate described deformation formula according to described acceleration information, and according to deformation formula, deformation process is carried out to described picture.
Above-mentioned picture deformation processing method, described acceleration information comprises directional data and absolute figure.
Above-mentioned picture deformation processing method, described deformation formula is for tearing deformation formula.
Above-mentioned picture deformation processing method, describedly calculates described deformation formula according to described acceleration information, and comprises further the step that described picture carries out deformation process according to deformation formula:
Tear direction according to described directional data determination tearing effects, determine the amplitude torn according to described absolute figure.
Above-mentioned picture deformation processing method, described determine the step of the amplitude torn according to described absolute figure after also comprise further:
The random number of normal distribution is generated, according to the position that described random number determination tearing effects occurs by Box-Muller algorithm.
Above-mentioned picture deformation processing method, described deformation formula is splash deformation formula.
Above-mentioned picture deformation processing method, describedly calculates described deformation formula according to described acceleration information, and comprises further the step that described picture carries out deformation process according to deformation formula:
According to the splash direction of described directional data determination splashing effect, according to the quantity in the splash source of described absolute figure determination splash.
Above-mentioned picture deformation processing method, also comprises after the step of the quantity in the described splash source according to described absolute figure determination splash:
For described splash direction adds a random perturbation.
An intelligent terminal for picture deformation process, comprising:
Picture storage module, for picture;
Deformation formula arranges module, for arranging the deformation formula of picture;
Acceleration transducer, for obtaining acceleration information;
Warped processing module, for carrying out deformation process according to described acceleration information and deformation formula to described picture.
Above-mentioned intelligent terminal, described intelligent terminal is mobile phone or panel computer.
In technique scheme, picture deformation processing method provided by the invention, acceleration information is obtained by acceleration transducer, and acceleration information is one of parameter of deformation formula, picture is out of shape by deformation formula, so, user can determine the deformation effect of final picture by rocking acceleration transducer.
Because above-mentioned picture deformation processing method has above-mentioned technique effect, use the intelligent terminal of this picture deformation processing method also should have corresponding technique effect.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment below, apparently, the accompanying drawing that the following describes is only some embodiments recorded in the present invention, for those of ordinary skill in the art, other accompanying drawing can also be obtained according to these accompanying drawings.
The FB(flow block) of the picture deformation processing method of the embodiment that Fig. 1 provides for the embodiment of the present invention;
The FB(flow block) of the picture deformation processing method of another embodiment that Fig. 2 provides for the embodiment of the present invention;
The FB(flow block) of the picture deformation processing method of the yet another embodiment that Fig. 3 provides for the embodiment of the present invention;
The structural representation of the intelligent terminal of the picture deformation process that Fig. 4 provides for the embodiment of the present invention.
Description of reference numerals:
1, deformation formula arranges module; 2, picture storage module; 3, warped processing module; 4, acceleration transducer.
Embodiment
In order to make those skilled in the art understand technical scheme of the present invention better, below in conjunction with accompanying drawing, the present invention is further detailed.
As shown in Figure 1, a kind of picture deformation processing method that the embodiment of the present invention provides, comprises the following steps:
101, preset the deformation formula of picture, at least one deformation parameter of deformation formula is acceleration information.
Concrete, here deformation formula for can be the various deformation methods of picture, as splash, tear, bend, partial enlargement reduces etc., these distortion are all carried out being out of shape rear acquisition according to certain deformation formula by former figure, herein, will speed up degrees of data in deformation formula enrolls wherein as a deformation parameter, namely when acceleration information is different, finally obtains photo local or all different.
102, user carries out deformation process instruction to picture is obtained.
As on mobile phone, user selects picture, and sends the command adapted thereto of deformation process.
103, the acceleration information that acceleration transducer detects is obtained.
Concrete, user holds the mobile device with acceleration transducer, then rocks this mobile device, and corresponding treatment facility such as the processor of mobile phone obtains the associated acceleration data of accelerator sensor this period.
104, calculate deformation formula according to acceleration information, and according to deformation formula, deformation process is carried out to Target Photo.
Concrete, the acceleration information obtained in above-mentioned steps is substituted into deformation formula, and the result of calculation according to deformation formula carries out corresponding deformation process to Target Photo.
The picture deformation processing method that the present embodiment provides, obtain acceleration information by acceleration transducer, and acceleration information is one of parameter of deformation formula, picture is out of shape by deformation formula, so, user can determine the deformation effect of final picture by rocking acceleration transducer.
In the present embodiment, above-mentioned acceleration information can for the primary data directly obtained by acceleration transducer, as the size, duration, direction etc. of acceleration, also can be the secondary data to the acquisition that primary data is processed, as the variation tendency etc. of acceleration.As preferably, acceleration information comprises directional data and absolute figure, directional data is the direction that user shakes acceleration transducer, absolute figure is the acceleration magnitude of rocking acceleration transducer, the direct feel of these two users is comparatively direct, by corresponding with net result for these data, make the operating experience of user more obvious.
As shown in Figure 2, tear distortion for concrete, the present embodiment specifically comprises:
That 201, presets picture tears formula, and at least one deformation parameter tearing formula is acceleration information;
202, user tears process instruction to picture is obtained;
203, the directional data that detects of acceleration transducer and absolute figure is obtained;
204, tear direction according to directional data determination tearing effects, determine the amplitude torn according to absolute figure.
Concrete, acceleration transducer rock direction and picture to tear direction consistent or contrary, the amplitude of tearing is correlated with the size of acceleration, and the operation of user like this has comparatively significantly directly related with the photo finally formed, and user uses the enthusiasm of the method also higher.
205, the random number of normal distribution is generated by Box-Muller algorithm, according to the position that random number determination tearing effects occurs.Random number can promote the number of times of user operation the method.
Obviously, arbitrary data of acceleration transducer all can be relevant by certain formula to arbitrary variable of deformation formula, and above-mentioned interrelational form is only recommendation.
As shown in Figure 3, for concrete splash distortion, the present embodiment specifically comprises:
301, preset the splash formula of picture, at least one deformation parameter of described splash formula is acceleration information;
302, user carries out splash process instruction to picture is obtained;
303, the directional data that detects of acceleration transducer and absolute figure is obtained;
304, according to the splash direction of directional data determination splashing effect, according to the quantity in the splash source of absolute figure determination splash.
User can be had with the splash picture finally formed with dynamics by the direction of mobile device of rocking and is comparatively significantly intuitively connected, lifting user to result can certainty.
As shown in Figure 4, the embodiment of the present invention also provides a kind of intelligent terminal of picture deformation process, comprises picture storage module 2, for picture; Deformation formula arranges mould 1, for arranging the deformation formula of picture; Acceleration transducer 4, for obtaining acceleration information; Warped processing module 3, for carrying out deformation process according to acceleration information and deformation formula to Target Photo.
Concrete, this intelligent terminal can be mobile terminal, as mobile phone or panel computer, can complete above-mentioned method by mobile phone and the built-in acceleration transducer of panel computer.This intelligent terminal can be also fixed terminal simultaneously, and as desktop computer, this fixed terminal connects a moveable equipment, this moveable equipment has acceleration information, so also can complete said method.
In technique scheme, because above-mentioned picture deformation processing method has above-mentioned technique effect, use the intelligent terminal of this picture deformation processing method also should have corresponding technique effect.
Mode above only by illustrating describes some one exemplary embodiment of the present invention, undoubtedly, for those of ordinary skill in the art, when without departing from the spirit and scope of the present invention, can revise described embodiment by various different mode.Therefore, above-mentioned accompanying drawing is illustrative with being described in essence, should not be construed as the restriction to the claims in the present invention protection domain.

Claims (10)

1. a picture deformation processing method, is characterized in that, comprises the following steps:
Preset the deformation formula of picture, at least one deformation parameter of described deformation formula is acceleration information;
Obtain user carries out deformation process instruction to picture;
Obtain the described acceleration information that acceleration transducer detects;
Calculate described deformation formula according to described acceleration information, and according to deformation formula, deformation process is carried out to described picture.
2. picture deformation processing method according to claim 1, is characterized in that, described acceleration information comprises directional data and absolute figure.
3. picture deformation processing method according to claim 2, is characterized in that, described deformation formula is for tearing deformation formula.
4. picture deformation processing method according to claim 3, is characterized in that, describedly calculates described deformation formula according to described acceleration information, and comprises further the step that described picture carries out deformation process according to deformation formula:
Tear direction according to described directional data determination tearing effects, determine the amplitude torn according to described absolute figure.
5. picture deformation processing method according to claim 4, is characterized in that, described determine the step of the amplitude torn according to described absolute figure after also comprise further:
The random number of normal distribution is generated, according to the position that described random number determination tearing effects occurs by Box-Muller algorithm.
6. want the picture deformation processing method described in 2 according to right, it is characterized in that, described deformation formula is splash deformation formula.
7. want the picture deformation processing method described in 6 according to right, it is characterized in that, describedly calculate described deformation formula according to described acceleration information, and according to deformation formula, the step that described picture carries out deformation process is comprised further:
According to the splash direction of described directional data determination splashing effect, according to the quantity in the splash source of described absolute figure determination splash.
8. want the picture deformation processing method described in 7 according to right, it is characterized in that, also comprise after the step of the quantity in the described splash source according to described absolute figure determination splash:
For described splash direction adds a random perturbation.
9. an intelligent terminal for picture deformation process, is characterized in that, comprising:
Picture storage module, for picture;
Deformation formula arranges module, for arranging the deformation formula of picture;
Acceleration transducer, for obtaining acceleration information;
Warped processing module, for carrying out deformation process according to described acceleration information and deformation formula to described picture.
10. want the intelligent terminal described in 9 according to right, it is characterized in that, described intelligent terminal is mobile phone or panel computer.
CN201511001602.XA 2015-12-28 2015-12-28 Picture deforming method and intelligent terminal Pending CN105447814A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511001602.XA CN105447814A (en) 2015-12-28 2015-12-28 Picture deforming method and intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511001602.XA CN105447814A (en) 2015-12-28 2015-12-28 Picture deforming method and intelligent terminal

Publications (1)

Publication Number Publication Date
CN105447814A true CN105447814A (en) 2016-03-30

Family

ID=55557948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511001602.XA Pending CN105447814A (en) 2015-12-28 2015-12-28 Picture deforming method and intelligent terminal

Country Status (1)

Country Link
CN (1) CN105447814A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110148082A (en) * 2019-04-02 2019-08-20 杭州趣维科技有限公司 A kind of mobile terminal facial image face real-time deformation adjusting method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656787A (en) * 2009-08-17 2010-02-24 惠州Tcl移动通信有限公司 Method based on mobile phone for realizing swing stick and mobile phone
CN102681849A (en) * 2012-05-07 2012-09-19 禹芙蓉 Digit time 3D (three-dimensional) display method for handheld mobile terminal
CN104252299A (en) * 2013-06-28 2014-12-31 上海斐讯数据通信技术有限公司 Mobile terminal for controlling wallpaper to change color
CN104603869A (en) * 2012-10-02 2015-05-06 华为技术有限公司 User interface display composition with device sensor/state based graphical effects

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656787A (en) * 2009-08-17 2010-02-24 惠州Tcl移动通信有限公司 Method based on mobile phone for realizing swing stick and mobile phone
CN102681849A (en) * 2012-05-07 2012-09-19 禹芙蓉 Digit time 3D (three-dimensional) display method for handheld mobile terminal
CN104603869A (en) * 2012-10-02 2015-05-06 华为技术有限公司 User interface display composition with device sensor/state based graphical effects
CN104252299A (en) * 2013-06-28 2014-12-31 上海斐讯数据通信技术有限公司 Mobile terminal for controlling wallpaper to change color

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110148082A (en) * 2019-04-02 2019-08-20 杭州趣维科技有限公司 A kind of mobile terminal facial image face real-time deformation adjusting method
CN110148082B (en) * 2019-04-02 2023-03-28 杭州小影创新科技股份有限公司 Mobile terminal face image face real-time deformation adjusting method

Similar Documents

Publication Publication Date Title
CN109087239B (en) Face image processing method and device and storage medium
JP7230055B2 (en) Application program display adaptation method and device, terminal, storage medium, and computer program
CN107817939B (en) Image processing method and mobile terminal
WO2014075889A3 (en) Apparatus, method and computer program for initiating a charging process of an electric vehicle
CN103970411B (en) For preparing the method and electronic installation of screen
CN106997283B (en) Information processing method and electronic equipment
CN106933468A (en) A kind of user interface switching method and terminal
JP2004070956A5 (en)
CN108917113A (en) Auxiliary voice control method and device and air conditioner
WO2015131767A1 (en) Video processing method and apparatus
KR20130059121A (en) Mobile terminal and control method thereof
CN110392375A (en) WiFi network channel amending method, terminal, server and storage medium
CN103677791B (en) A kind of icon processing method and electronic equipment
CN104158935A (en) Information processing method and electronic device
CN104898880A (en) Control method and electronic equipment
KR20220045220A (en) Icon display method and terminal
KR20140102386A (en) Display apparatus and control method thereof
CN114904279A (en) Data preprocessing method, device, medium and equipment
CN107908329B (en) Application icon management method and mobile terminal
CN105447814A (en) Picture deforming method and intelligent terminal
US11100180B2 (en) Interaction method and interaction device for search result
CN103744608B (en) A kind of information processing method and electronic equipment
TW202138971A (en) Interaction method and apparatus, interaction system, electronic device, and storage medium
CN105573746B (en) A kind of control property processing method and processing device
CN106776749A (en) Modes to open a file method to set up and system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20160330