CN103092628A - Method and device for image processing - Google Patents

Method and device for image processing Download PDF

Info

Publication number
CN103092628A
CN103092628A CN2013100485703A CN201310048570A CN103092628A CN 103092628 A CN103092628 A CN 103092628A CN 2013100485703 A CN2013100485703 A CN 2013100485703A CN 201310048570 A CN201310048570 A CN 201310048570A CN 103092628 A CN103092628 A CN 103092628A
Authority
CN
China
Prior art keywords
model square
point
angle
circle
plane
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
CN2013100485703A
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.)
TVMining Beijing Media Technology Co Ltd
Original Assignee
TVMining Beijing Media 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 TVMining Beijing Media Technology Co Ltd filed Critical TVMining Beijing Media Technology Co Ltd
Priority to CN2013100485703A priority Critical patent/CN103092628A/en
Publication of CN103092628A publication Critical patent/CN103092628A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a method for image processing. The method is used for achieving a three-dimensional display effect. The method comprises that radian angles which divide a circle in an equal mode are confirmed according to the number of materials; a plurality of points which divide the circle in an equal mode are obtained on the preset circle according to the confirmed radian angles, and the coordinate of each point which divides the circle in an equal mode is computed; a three-dimensional 3D model diamond is constructed on the points which divide the circle in an equal mode, and the central point of the 3D model diamond coincides with the points which divide the circle in an equal mode. A dihedral angle with a preset angle degree exists between the plane where the circle locates and a first plane, and the range of the preset angle degree varies from 0 degree to 90 degrees. The materials are mapped on the 3D model diamond which is arranged with equal radians, the 3D model diamond with the materials are projected on a second plane which is perpendicular to the first plane and is parallel to a display interface. The invention further discloses the device for achieving the method.

Description

Method and device that a kind of image is processed
Technical field
The present invention relates to the computer image processing technology field, relate in particular to method and device that a kind of image is processed
Background technology
Development along with digital media technology, the various forms of information such as the word that exists with digital form, image, sound, video, animation, make the two-way flow of information between sender and recipient become easily a lot, take network or information terminal as the transport vehicle of medium, make Digital Media possess the distinguishing feature of " man-machine interaction " in addition.People are no longer that simple information presents to interface, and the man-machine interaction of nature and good user experience and receive increasing concern.
Three-dimensional is presented on vision and provides to the user and well represent effect, due to the difference of hardware condition and software implementation method, how to realize better that the three-dimensional of figure, image, video, document etc. presents, and is the technical problem underlying that we face.
The present inventor finds, a kind of by means of Flash(animation creation and application development platform) technology can realize that multimedia file is in the animation effect of the first-class radian arrangement of circle, but can not realize certain multimedia file such as is play, suspends, zooms in or out at the operation, need another way of presentation.
Summary of the invention
The embodiment of the present invention provides a kind of material is mapped on default circle, is used for realizing that three-dimensional presents effect.
A kind of method that image is processed comprises the following steps: according to the quantity of material, determine the radian of Equal round; According to the radian of determining, obtain the point of a plurality of Equal rounds on default circle, and calculate the coordinate of the point of each Equal round; Three-dimensional (3D) model square of structure on the point of Equal round, 3D model square central point overlaps with the point of Equal round; Wherein, there are the dihedral angle of predetermined angle in described plane, round place and the first plane; The scope of predetermined angle is (0,90); On 3D model square with radian arrangements such as material are mapped to; The 3D model square that will have material projects on the second plane, and wherein the second plane is vertical with the first plane, and the second plane is parallel with display interface.In the present embodiment, material is mapped on the 3D model square on default circle, its radian such as grade is arranged, realize that three-dimensional presents effect, provide better visual effect and user to experience.
Preferably, material comprises one or more in picture, video and text.Support various file layouts in the present embodiment.
Preferably, the step of the point of acquisition Equal round comprises: determine initial point position on default circle; From initial point position, according to the radian of the every skew Equal round of preset direction, obtain the point of an Equal round, until the number of the point of Equal round is consistent with the quantity of material.Obtain the point of an Equal round in the present embodiment according to the radian of the every skew Equal round of preset direction, the method for point that is offset at every turn and obtains Equal round is identical, and computing machine can repetitive operation, is convenient to realize, saves size of code.
Preferably, determine that the step of initial point position comprises: in default three-dimensional cartesian coordinate system, on plane, circle place, be parallel to the tangent line that X-axis is made circle; Determine to be parallel to two point of contacts that the tangent line of X-axis is handed over Z axis; To be designated as initial point position near the point of contact outside display interface in two point of contacts.Can unique definite initial point position in the present embodiment, and meet people's visual perception, make 3D present effect more true to nature.
Preferably, 3D model square is that the right-angle triangle by 2 congruences is spliced, and the hypotenuse of 2 right-angle triangles overlaps.Can determine a plane at 3, in the present embodiment, 3D model square can be spliced by plane, two triangle places, utilizes the stability of triangular structure, and by two definite planes of two triangles, make 3D model square more stable, can improve the success ratio of material mapping.
Preferably, 3D model square being placed on the point of Equal round, is the Dihedral angel adjustment of the XOZ face in circle plane, place and three-dimensional cartesian coordinate system predetermined angle; Be the Dihedral angel adjustment of circle plane, place and XOZ face perhaps predetermined angle, 3D model square be placed on the point of Equal round.All can realize structure 3D model square on the point of Equal round by two kinds of operations, the first operation with respect to the second simplified control calculate the calculated amount of four apex coordinates of 3D model square.
A kind of method that image is processed comprises the following steps: catch the user for the click commands of the 3D model square place window input of the first-class radian arrangement of circle; Whether the position of the click commands that judgement is caught belongs to the 3D model square that is positioned at initial point position; Wherein, initial point position is the central point position of the 3D model square of below, the most close interface on circle; If the position of the click commands of catching belongs to the 3D model square that is positioned at initial point position, export the material that the icon in the 3D model square of initial point position links; If the position of the click commands of catching does not belong to the 3D model square that is positioned at initial point position, the central point of the 3D model square that will choose by click commands moves to initial point position, the material that the icon in the 3D model square of output initial point position links.Carry out clicking operation by the icon on the 3D model square that the first-class radian of circle is arranged in the present embodiment, realize simultaneously the movement of icon on circle and the output of material on 3D model square, providing preferably, the user experiences.
Preferably, described move operation comprises: the central point of the 3D model square that will choose by click commands, press preset direction one or many skew θ angle, until the central point of the described 3D model square of choosing overlaps with starting point; Wherein, the θ angle is that the central point of the 3D model square chosen of click commands is by the corresponding central angle of the circular arc between preset direction and starting point; Perhaps the θ angle is the radian of Equal round; Perhaps θ=2 π/(N*M), N is the quantity of material, and M is parameter preset.All can realize the movement of icon on circle on 3D model square by being offset different angles, the mobile effect that every kind of deviation angle presents is not identical.The translational speed of the first scheme is the fastest, and first scheme can embody the moving process of 3D model square, and the third scheme can embody mobile track preferably.
Preferably, in mobile process, with the round upward central point of the 3D model square of other position except the 3D model square that click commands is chosen, be offset direction and the angle identical with the central point of the 3D model square of choosing by click commands.The present embodiment guarantees that the upper all 3D model squares of circle wait radian to arrange all the time on circle in moving process.
A kind of method that image is processed comprises the following steps: catch the user for the instruction that drags of the 3D model square place window input of justifying first-class radian arrangement; According to dragging instruction, determine the initial point position, final position and the direction that drag; According to the drawing direction of determining, the 3D model square at initial point position place is moved to the final position.Carry out drag operation by the icon on the 3D model square that the first-class radian of circle is arranged in the present embodiment, realize the movement of icon on circle on 3D model square, providing preferably, the user experiences.
Preferably, described drag operation comprises: will be by dragging the central point of the 3D model square that instruction chooses, by the direction one or many skew θ angle that drags, until the central point of the described 3D model square of choosing overlaps with terminal point; Wherein, the θ angle is to drag initial point position that instruction chooses by the corresponding central angle of the circular arc between drawing direction and final position; Perhaps θ=2 π/(N*M), N is the quantity of material, and M is parameter preset.All can realize the movement of icon on circle on 3D model square by being offset different angles, the mobile effect that every kind of deviation angle presents is not identical, and the translational speed of the first scheme is the fastest, and first scheme can embody mobile track preferably.
Preferably, in the process that drags, with the central point of the 3D model square of circle upper other position except dragging the 3D model square that instruction chooses, be offset direction and the angle identical with central point by dragging the 3D model square that instruction chooses.The present embodiment guarantees that the upper all 3D model squares of circle wait radian to arrange all the time on circle in dragging process.
The device that the embodiment of the present invention provides a kind of image to process comprises:
Analysis module is used for the quantity according to material, determines the radian of Equal round;
The first processing module is used for obtaining the point of a plurality of Equal rounds according to the radian of determining on default circle, and calculates the coordinate of the point of each Equal round;
The second processing module is used for structure 3D model square on the point of Equal round, and 3D model square central point overlaps with the point of Equal round; Wherein, there are the dihedral angle of predetermined angle in described plane, round place and the first plane; The scope of predetermined angle is (0,90);
Mapping block is used for the 3D model square with radian arrangements such as material are mapped to;
Projection module projects to the second plane for the 3D model square that will have material, and wherein the second plane is vertical with the first plane, and the second plane is parallel with display interface.
Material comprises one or more in picture, video and text.
The first processing module is used for obtaining the point of Equal round: determine initial point position on default circle; From initial point position, according to the radian of the every skew Equal round of preset direction, obtain the point of an Equal round, until the number of the point of Equal round is consistent with the quantity of material.
The first processing module is used for determining initial point position: at default three-dimensional cartesian coordinate system, on plane, circle place, be parallel to the tangent line that X-axis is made circle; Determine to be parallel to two point of contacts that the tangent line of X-axis is handed over Z axis; To be designated as initial point position near the point of contact outside display interface in two point of contacts.
3D model square is that the right-angle triangle by 2 congruences is spliced, and the hypotenuse of 2 right-angle triangles overlaps.
The second processing module is used for 3D model square is placed on the point of Equal round, is the Dihedral angel adjustment of the XOZ face in circle plane, place and three-dimensional cartesian coordinate system predetermined angle; Be the Dihedral angel adjustment of circle plane, place and XOZ face perhaps predetermined angle, 3D model square be placed on the point of Equal round.
The device that the embodiment of the present invention provides a kind of image to process comprises:
Receiver module is used for catching the user for the click commands of the 3D model square place window input of the first-class radian arrangement of circle;
Processing module is used for judging whether the position of the click commands of catching belongs to the 3D model square that is positioned at initial point position; Wherein, initial point position is the central point position of the 3D model square of below, the most close interface on circle; If the position of the click commands of catching belongs to the 3D model square that is positioned at initial point position, export the material that the icon in the 3D model square of initial point position links; If the position of the click commands of catching does not belong to the 3D model square that is positioned at initial point position, the central point of the 3D model square that will choose by click commands moves to initial point position, the material that the icon in the 3D model square of output initial point position links.
The central point of the 3D model square that processing module will be chosen by click commands is pressed preset direction one or many skew θ angle, until the central point of the described 3D model square of choosing overlaps with starting point; Wherein, the θ angle is that the central point of the 3D model square chosen of click commands is by the corresponding central angle of the circular arc between preset direction and starting point; Perhaps the θ angle is the radian of Equal round; Perhaps θ=2 π/(N*M), N is the quantity of material, and M is parameter preset.
Processing module is used in mobile process, with the round upward central point of the 3D model square of other position except the 3D model square that click commands is chosen, is offset direction and the angle identical with the central point of the 3D model square of choosing by click commands.
The device that the embodiment of the present invention provides a kind of image to process comprises:
Receiver module is used for catching the user for the instruction that drags of the 3D model square place window input of justifying first-class radian arrangement;
The first processing module is used for determining according to dragging instruction the initial point position, final position and the direction that drag;
The second processing module is used for according to the drawing direction of determining, the 3D model square at initial point position place is moved to the final position.
The second processing module will be by dragging the central point of the 3D model square that instruction chooses, by the direction one or many skew θ angle that drags, until the central point of the described 3D model square of choosing overlaps with terminal point; Wherein, the θ angle be drag that instruction chooses icon place initial point position by the corresponding central angle of the circular arc between drawing direction and final position; Perhaps θ=2 π/(N*M), N is the quantity of material, and M is parameter preset.
The second processing module is used in the process that drags, and with the central point of the 3D model square of circle upper other position except dragging the 3D model square that instruction chooses, is offset direction and the angle identical with central point by dragging the 3D model square that instruction chooses.
Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from instructions, perhaps understand by implementing the present invention.Purpose of the present invention and other advantages can realize and obtain by specifically noted structure in the instructions of writing, claims and accompanying drawing.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Description of drawings
Accompanying drawing is used to provide a further understanding of the present invention, and consists of the part of instructions, is used for together with embodiments of the present invention explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the main process flow diagram of a kind of image shows method in the embodiment of the present invention;
Fig. 2 is the detail flowchart of the first image shows method in the embodiment of the present invention;
Fig. 3 A is the coordinate diagram of the point of Equal round in three-dimensional system of coordinate in the embodiment of the present invention;
Fig. 3 B is that in the embodiment of the present invention, the radian such as 3D model square is arranged schematic diagram;
Fig. 4 is coordinate mapping schematic diagram in the embodiment of the present invention;
Fig. 5 A is the detail flowchart of the second image shows method in the embodiment of the present invention;
Fig. 5 B is that in the embodiment of the present invention, 3D model square is arranged the effect exploded view at the first-class radian of circle;
Fig. 6 is the detail flowchart of the first image manipulating method in the embodiment of the present invention;
Fig. 7 is the detail flowchart of the second image manipulating method in the embodiment of the present invention;
Fig. 8 is the structural drawing of a kind of image demonstration apparatus in the embodiment of the present invention;
Fig. 9 is the structural drawing of the first image operating device in the embodiment of the present invention;
Figure 10 is the structural drawing of the second image operating device in the embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein only is used for description and interpretation the present invention, is not intended to limit the present invention.
Adopt graphics system form of new generation to present basis (Windows Presentation Foundation in the embodiment of the present invention, WPF) three-dimensional that provides presents technology, material is mapped on the 3D model square that the first-class radian of circle is arranged, to present 3-D effect.The material here refers to the multimedia files such as picture, video, text, and 3D model square is that the right-angle triangle by 2 congruences is spliced, and the hypotenuse of 2 right-angle triangles overlaps.
Referring to Fig. 1, to show in the present embodiment that a plurality of 3D model squares are as follows in the main flow process of method of the first-class radian arrangement of circle:
Step 101: according to the quantity of material, determine the radian of Equal round; Wherein, material comprises one or more in picture, video and text.
Step 102: according to the radian of determining, obtain the point of a plurality of Equal rounds on default circle, and calculate the coordinate of the point of each Equal round.
Preferably, the step of the point of acquisition Equal round comprises: determine initial point position on default circle; From initial point position, according to the radian of the every skew Equal round of preset direction, obtain the point of an Equal round, until the number of the point of Equal round is consistent with the quantity of material.Certainly, can obtain the point of a plurality of Equal rounds by any means on default circle, all be applicable to the present embodiment.
Can be with any point on circle as initial point position.Preferably, determine that the step of initial point position comprises: in default three-dimensional cartesian coordinate system, on plane, circle place, be parallel to the tangent line that X-axis is made circle; Determine to be parallel to two point of contacts that the tangent line of X-axis is handed over Z axis; To be designated as initial point position near point of contact, the display interface outside in two point of contacts.
Step 103: structure 3D model square on the point of Equal round, 3D model square central point overlaps with the point of Equal round; Wherein, there are the dihedral angle of predetermined angle in described plane, round place and the first plane; The scope of predetermined angle is (0,90), predetermined angle be 15 ° than the figure of merit.
Preferably, 3D model square is that the right-angle triangle by 2 congruences is spliced, and the hypotenuse of 2 right-angle triangles overlaps.
Preferably, 3D model square being placed on the point of Equal round, is the Dihedral angel adjustment of the XOZ face in circle plane, place and three-dimensional cartesian coordinate system predetermined angle; Be the Dihedral angel adjustment of circle plane, place and XOZ face perhaps predetermined angle, 3D model square be placed on the point of Equal round.
Step 104: on the 3D model square with radian arrangements such as material are mapped to.
Step 105: the 3D model square that will have material projects on the second plane, and wherein the second plane is vertical with the first plane, and the second plane is parallel with display interface.
Introduce in detail below by an exemplary embodiments implementation procedure that a plurality of 3D model squares are arranged at the first-class radian of circle, as shown in Figure 2, specifically comprise the following steps:
Step 201, coordinate system of initialization are determined the initial point of described coordinate system, generate a circle take initial point as the center of circle.Specifically, coordinate system of initialization, the display interface right is X-axis, and on display interface, direction is Y-axis, and Z axis is outside perpendicular to XOY plane, and on the XOZ plane, take O as initial point, R is that radius generates a circle.
Step 202, according to the quantity of material, determine the radian of Equal round.If the quantity of material is N(N is positive integer), the radian of Equal round is 2 π/N.
Step 203, determine the initial point position of Equal round on circle.Specifically, be parallel to the tangent line that X-axis is made circle, hand over Z axis that two point of contacts are arranged, will be designated as starting point 1 position near the point of contact in the display interface outside in two point of contacts.
Step 204, from initial point position, according to the radian of the every skew Equal round of preset direction, obtain the point of an Equal round, until the number of the point of Equal round is consistent with the quantity of material.Specifically, from starting point 1 position, be offset clockwise 2 π/N, obtain point 2 positions, continue skew 2 π/N, obtain point 3 positions, by that analogy, obtain the point of Equal round, from 1 to N.
Step 205, for the point of each Equal round, according to the position of the point of Equal round, calculate the coordinate of the point of Equal round.Specifically, α be the point of Equal round and X-axis positive dirction at the angle of circle centre position, the coordinate of point on Y-axis of Equal round is 0, the coordinate of the point of described Equal round is (R*Cos α, 0, R*Sin α), as shown in Figure 3A.
Step 206, on the point of Equal round structure 3D model square, the central point of 3D model square overlaps with the point of Equal round.Specifically, take long as a, wide is b, structure 3D model square, the coordinate of the point of Equal round is the coordinate of the central point of 3D model square, and the coordinate of the central point of 3D model square is (R*Cos α, 0, R*Sin α), the coordinate of four points of 3D model square is represented by the coordinate of the central point of a, b and 3D model square.
Step 207, the Dihedral angel adjustment that will justify the XOZ face in plane, place and three-dimensional cartesian coordinate system are predetermined angle, and the scope of predetermined angle is (0,90), predetermined angle be 15 ° than the figure of merit.Specifically, be predetermined angle β with the Dihedral angel adjustment of justifying plane, place and XOZ face, while 3D plane, model square place and XOY plane keeping parallelism are as shown in Fig. 3 B.
Preferably, in the process of adjusting, the coordinate of point on X-axis and Z axis of Equal round remains unchanged, be adjusted into by 0 at the coordinate on Y-axis: (R-|R*Sin α |) * tan β (when R*Sin α 〉=0), perhaps, (R+|R*Sin α |) * tan β (when R*Sin α<0), correspondingly, the coordinate of 3D model square central point on X-axis and Z axis remains unchanged, be adjusted into by 0 at the coordinate on Y-axis: (R-|R*Sin α |) * tan β (when R*Sin α 〉=0), perhaps, (R+|R*Sin α |) * tan β (when R*Sin α<0).
On step 208, the 3D model square with radian arrangements such as material are mapped to.specifically, 3D model square is to be spliced by 2 triangle hypotenuses, because coordinate system is different in the two and three dimensions degree, and leg-of-mutton normal (right-hand rule) is determining visible surface, so need to specify texture coordinate " 10 when material is mapped on the triangle that forms 3D model square, 00, 01, 11 ", in general, material can be defined as a figure, A, B, C, D is four points of material, P0, P1, P2, P3 is four points of 3D model square, that is to say, A is mapped to P0, B is mapped to P1, C is mapped to P2, D is mapped to P3, as shown in Figure 4.
Step 209, the 3D model square that will have a material project on two-dimentional interface.Specifically, in the process of projection, extract the described 3D model square coordinate on X-axis and Y-axis respectively, the coordinate of described 3D model square on Z axis is 0.
Being first 3D model square to be placed on the point of Equal round in above-described embodiment, is the Dihedral angel adjustment of circle plane, place and XOZ face then predetermined angle, has simplified the calculated amount of calculating four apex coordinates of 3D model square.
Can first 3D model square be placed on the point of Equal round, be the Dihedral angel adjustment of circle plane, place and XOZ face then predetermined angle; Can be the Dihedral angel adjustment of circle plane, place and XOZ face also predetermined angle, then 3D model square is placed on the point of Equal round.Referring to the following examples, as shown in Fig. 5 A.
Step 501, coordinate system of initialization are determined the initial point of described coordinate system, generate a circle take initial point as the center of circle.Specifically, coordinate system of initialization, the display interface right is X-axis, and on display interface, direction is Y-axis, and Z axis is outside perpendicular to XOY plane, and on the XOZ plane, take O as initial point, R is that radius generates a circle.
Step 502, according to the quantity of material, determine the radian of Equal round.If the quantity of material is N(N is positive integer), the radian of Equal round is 2 π/N.
Step 503, determine the initial point position of Equal round on circle.Specifically, be parallel to the tangent line that X-axis is made circle, hand over Z axis that two point of contacts are arranged, will be designated as starting point 1 position near the point of contact in the display interface outside in two point of contacts.
Step 504, from initial point position, according to the radian of the every skew Equal round of preset direction, obtain the point of an Equal round, until the number of the point of Equal round is consistent with the quantity of material.Specifically, from starting point 1 position, be offset clockwise 2 π/N, obtain point 2 positions, continue skew 2 π/N, obtain point 3 positions, by that analogy, obtain the point of Equal round, from 1 to N.
Step 505, for the point of each Equal round, according to the position of the point of Equal round, calculate the coordinate of the point of Equal round.Specifically, α be the point of Equal round and X-axis positive dirction at the angle of circle centre position, the coordinate of point on Y-axis of Equal round is 0, the coordinate of the point of described Equal round is (R*Cos α, 0, R*Sin α), as shown in Figure 3A.
Step 506, the Dihedral angel adjustment that will justify the XOZ face in plane, place and three-dimensional cartesian coordinate system are predetermined angle β, and the scope of predetermined angle is (0,90), predetermined angle be 15 ° than the figure of merit.
Preferably, in adjustment process, the coordinate of point on X-axis and Z axis of Equal round remains unchanged, and is adjusted into by 0 at the coordinate on Y-axis: (R-|R*Sin α |) * tan β (when R*Sin α 〉=0), perhaps, (R+|R*Sin α |) * tan β (when R*Sin α<0).
Step 507, on the point of Equal round structure 3D model square, 3D model square central point overlaps with the point of Equal round.Specifically, take long as a, wide is b, structure 3D model square, 3D model square is in the XOY plane keeping parallelism, and the coordinate of the point of Equal round is the coordinate of the central point of 3D model square, and the coordinate of four points of 3D model square is represented by the coordinate of the central point of a, b and 3D model square.
On step 508, the 3D model square with radian arrangements such as material are mapped to.
Step 509, the 3D model square that will have a material project on two-dimentional interface.Specifically, in the process of projection, extract the described 3D model square coordinate on X-axis and Y-axis respectively, the coordinate of described 3D model square on Z axis is 0.
Can also add the light source animation to 3D model square, the 3 d effect graph with 3D model square of material just can better present, as shown in Fig. 5 B.
More than introduced 3D model square and arranged at the first-class radian of circle the implementation procedure that presents 3-D effect, below by the process that an exemplary embodiments introduction operates the icon on the 3D model square of the first-class radian arrangement of circle, the material in the present embodiment on 3D model square is presented as the icon form in window.
Catch the user by the instruction of mouse or touch-screen input, user instruction is included in the window at 3D model square place and carries out clicking operation and carry out drag operation in the window at 3D model square place here.At first the below take user instruction as carrying out clicking operation as example in the window at 3D model square place, provides an exemplary embodiments, realizes the movement of icon on circle on 3D model square.Referring to Fig. 6.
Step 601, catch the click commands of the 3D model square place window input that the user arranges for the first-class radian of circle.
Whether the position of the click commands that step 602, judgement are caught belongs to the 3D model square that is positioned at initial point position, if continue step 603, otherwise continue step 604.
The material that icon in the 3D model square of step 603, output initial point position links.
Step 604, will move to initial point position according to preset direction by the 3D model square that click commands is chosen, then continue step 603.
Preferably, described move operation comprises: according to the coordinate of the central point of the 3D model square of choosing by click commands, calculate the central point of this 3D model square according to the corresponding central angle of the circular arc between preset direction and starting point, with the described central angle of central point skew of 3D model square, realization directly moves to starting point according to preset direction by the central point of the 3D model square that click commands is chosen;
Perhaps, the central point of described 3D model square is offset the radian of Equal round according to preset direction, until the central point of described 3D model square overlaps with starting point, the coordinate of the central point of the square of 3D model described in this move operation replaces with the coordinate of the radian position of every skew Equal round, and computing velocity is fast;
Perhaps, every decile radian 2 π/N is divided into M part, M is parameter preset, the radian of every equal portions is θ=2 π/(N*M), the central point of the 3D model square that will choose by click commands is according to preset direction skew θ angle, until the central point of described 3D model square overlaps with starting point, the central point that has represented the 3D model square of choosing by click commands is followed the moving process of gesture clockwise, moves to starting point.
In mobile process, with the round upward central point of the 3D model square of other position except the 3D model square that click commands is chosen, be offset direction and the angle identical with the central point of the 3D model square of choosing by click commands.
The below provides an exemplary embodiments take user instruction as carrying out drag operation as example in the window at 3D model square place, realizes the movement of icon on circle on 3D model square.Referring to Fig. 7.
Step 701, catch the instruction that drags of 3D model square place window input that the user arranges for the first-class radian of circle.
Step 702, basis drag instruction, determine the initial point position, final position and the direction that drag.
Step 703, according to the drawing direction of determining, the 3D model square at initial point position place is moved to the final position.
Preferably, described drag operation comprises: directly drag to by dragging the icon that instruction chooses the final position that drags, in the process that drags, calculate the corresponding central angle of circular arc between initial point position and final position, with the position of drag object according to the described central angle of direction skew that drags;
Perhaps, according to dragging instruction, be accompanied by to drag progressively and move, every decile radian 2 π/N is divided into M part, and M is parameter preset, and the radian of every equal portions is θ=2 π/(N*M), to repeatedly be offset the θ angle according to drawing direction by the central point that drags the 3D model square that instruction chooses, until the coordinate of the position of described drag object overlaps with the coordinate in final position, represent described drag object and followed the moving process of gesture according to drawing direction, drag to the final position.
In the process that drags, with the 3D model square central point of upper other position except dragging the 3D model square that instruction chooses of circle, be offset direction and the angle identical with the central point of icon place 3D model square by dragging that instruction chooses.
Understood by above introduction the implementation procedure that image is processed, this process can be by the device realization, and the below is introduced inner structure and the function of this device.
Referring to Fig. 8, the device that in the present embodiment, image is processed comprises: analysis module 801, the first processing module 802, the second processing module 803, mapping block 804 and projection module 805.
Analysis module 801 is used for the quantity according to material, determines the radian of Equal round;
The first processing module 802 is used for obtaining the point of a plurality of Equal rounds according to the radian of determining on default circle, and calculates the coordinate of the point of each Equal round;
The second processing module 803 is used for structure 3D model square on the point of Equal round, and 3D model square central point overlaps with the point of Equal round; Wherein, there are the dihedral angle of predetermined angle in described plane, round place and the first plane; The scope of predetermined angle is (0,90);
Mapping block 804 is used for the 3D model square with radian arrangements such as material are mapped to;
Projection module 805 projects to the second plane for the 3D model square that will have material, and wherein the second plane is vertical with the first plane.
More excellent, material comprises one or more in picture, video and text.
More excellent, the first processing module 802 is used for obtaining the point of Equal round: determine initial point position on default circle; From initial point position, according to the radian of the every skew Equal round of preset direction, obtain the point of an Equal round, until the number of the point of Equal round is consistent with the quantity of material.
More excellent, the first processing module 802 is used for determining initial point position: on plane, circle place, be parallel to the tangent line that X-axis is made circle; Determine to be parallel to two point of contacts that the tangent line of X-axis is handed over Y-axis; To be designated as initial point position near the point of contact of below, interface.
More excellent, 3D model square is that the right-angle triangle by 2 congruences is spliced, and the hypotenuse of 2 right-angle triangles overlaps.
More excellent, the second processing module 803 is used for 3D model square is placed on the point of Equal round, is the Dihedral angel adjustment of the XOZ face in circle plane, place and three-dimensional cartesian coordinate system predetermined angle; Be the Dihedral angel adjustment of circle plane, place and XOZ face perhaps predetermined angle, 3D model square be placed on the point of Equal round.
Referring to Fig. 9, the device that in the present embodiment, image is processed comprises: receiver module 901 and processing module 902.
Receiver module 901 is used for catching the user for the click commands of the 3D model square place window input of the first-class radian arrangement of circle;
Processing module 902 is used for judging whether the position of the click commands of catching belongs to the 3D model square that is positioned at initial point position; Wherein, initial point position is the central point position of the 3D model square of below, the most close interface on circle; If the position of the click commands of catching belongs to the 3D model square that is positioned at initial point position, export the material that the icon in the 3D model square of initial point position links; If the position of the click commands of catching does not belong to the 3D model square that is positioned at initial point position, the central point of the 3D model square that will choose by click commands moves to initial point position, the material that the icon in the 3D model square of output initial point position links.
More excellent, the central point of the 3D model square that processing module 902 will be chosen by click commands is pressed preset direction one or many skew θ angle, until the central point of the described 3D model square of choosing overlaps with starting point; Wherein, the θ angle is that the central point of the 3D model square chosen of click commands is by the corresponding central angle of the circular arc between preset direction and starting point; Perhaps the θ angle is the radian of Equal round; Perhaps θ=2 π/(N*M), N is the quantity of material, and M is parameter preset.
More excellent, processing module 902 is used in mobile process, with the round upward central point of the 3D model square of other position except the 3D model square that click commands is chosen, be offset direction and the angle identical with the central point of the 3D model square of choosing by click commands.
Referring to Figure 10, the device that in the present embodiment, image is processed comprises: receiver module 1001, the first processing module 1002 and the second processing module 1003.
Receiver module 1001 is used for catching the user for the instruction that drags of the 3D model square place window input of justifying first-class radian arrangement;
The first processing module 1002 is used for determining according to dragging instruction the initial point position, final position and the direction that drag.
The second processing module 1003 is used for according to the drawing direction of determining, the 3D model square at initial point position place is moved to the final position.
More excellent, the second processing module 1003 is used for the central point with the icon place 3D model square by dragging that instruction chooses, by the direction one or many skew θ angle that drags, until the central point of the described 3D model square of choosing overlaps with terminal point; Wherein, the θ angle be drag that instruction chooses icon place initial point position by the corresponding central angle of the circular arc between drawing direction and final position; Perhaps θ=2 π/(N*M), N is the quantity of material, and M is parameter preset.
More excellent, the second processing module 1003 is for the process that is dragging, with the central point of the 3D model square of circle upper other position except dragging the 3D model square that instruction chooses, be offset direction and the angle identical with central point by dragging the 3D model square that instruction chooses.
The embodiment of the present invention adopts the three-dimensional in the WPF technology to present technology and realizes that 3D model square dynamically presents in the first-class radian arrangement of circle, and can realize certain material such as is play, suspends, zooms in or out at the operation, complete realization the interaction display effect, provide better visual effect and user to experience.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt complete hardware implementation example, implement software example or in conjunction with the form of the embodiment of software and hardware aspect fully.And the present invention can adopt the form that wherein includes the upper computer program of implementing of computer-usable storage medium (including but not limited to magnetic disk memory and optical memory etc.) of computer usable program code one or more.
The present invention is that reference is described according to process flow diagram and/or the block scheme of method, equipment (system) and the computer program of the embodiment of the present invention.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or the combination of square frame.Can provide these computer program instructions to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, make the instruction of carrying out by the processor of computing machine or other programmable data processing device produce to be used for the device of realizing in the function of flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, make the instruction that is stored in this computer-readable memory produce the manufacture that comprises command device, this command device is realized the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame.
These computer program instructions also can be loaded on computing machine or other programmable data processing device, make on computing machine or other programmable devices and to carry out the sequence of operations step producing computer implemented processing, thereby be provided for realizing the step of the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame in the instruction of carrying out on computing machine or other programmable devices.
Obviously, those skilled in the art can carry out various changes and modification and not break away from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of claim of the present invention and equivalent technologies thereof, the present invention also is intended to comprise these changes and modification interior.

Claims (24)

1. the method that image is processed, is characterized in that, comprises the following steps:
According to the quantity of material, determine the radian of Equal round;
According to the radian of determining, obtain the point of a plurality of Equal rounds on default circle, and calculate the coordinate of the point of each Equal round;
The three-dimensional 3D model square of structure on the point of Equal round, 3D model square central point overlaps with the point of Equal round; Wherein, there are the dihedral angle of predetermined angle in described plane, round place and the first plane; The scope of predetermined angle is (0,90);
On 3D model square with radian arrangements such as material are mapped to;
The 3D model square that will have material projects on the second plane, and wherein the second plane is vertical with the first plane, and the second plane is parallel with display interface.
2. the method for claim 1, is characterized in that, material comprises one or more in picture, video and text.
3. the method for claim 1, is characterized in that, the step that obtains the point of Equal round comprises:
Determine initial point position on default circle;
From initial point position, according to the radian of the every skew Equal round of preset direction, obtain the point of an Equal round, until the number of the point of Equal round is consistent with the quantity of material.
4. method as claimed in claim 3, is characterized in that, determines that the step of initial point position comprises:
In default three-dimensional cartesian coordinate system, on plane, circle place, be parallel to the tangent line that X-axis is made circle;
Determine to be parallel to two point of contacts that the tangent line of X-axis is handed over Z axis;
To be designated as initial point position near the point of contact outside display interface in two point of contacts.
5. the method for claim 1, is characterized in that, 3D model square is that the right-angle triangle by 2 congruences is spliced, and the hypotenuse of 2 right-angle triangles overlaps.
6. the method for claim 1, is characterized in that, 3D model square is placed on the point of Equal round, and be the Dihedral angel adjustment of the XOZ face in circle plane, place and three-dimensional cartesian coordinate system predetermined angle; Perhaps
Be the Dihedral angel adjustment of circle plane, place and XOZ face predetermined angle, 3D model square be placed on the point of Equal round.
7. the method that image is processed, is characterized in that, comprises the following steps:
Catch the user for the click commands of the 3D model square place window input of the first-class radian arrangement of circle;
Whether the position of the click commands that judgement is caught belongs to the 3D model square that is positioned at initial point position; Wherein, initial point position is the central point position of the 3D model square of below, the most close interface on circle;
If the position of the click commands of catching belongs to the 3D model square that is positioned at initial point position, export the material that the icon in the 3D model square of initial point position links;
If the position of the click commands of catching does not belong to the 3D model square that is positioned at initial point position, the central point of the 3D model square that will choose by click commands moves to initial point position, the material that the icon in the 3D model square of output initial point position links.
8. method as claimed in claim 7, is characterized in that, described move operation comprises:
The central point of the 3D model square that will choose by click commands is pressed preset direction one or many skew θ angle, until the central point of the described 3D model square of choosing overlaps with starting point;
Wherein, the θ angle is that the central point of the 3D model square chosen of click commands is by the corresponding central angle of the circular arc between preset direction and starting point; Perhaps
The θ angle is the radian of Equal round; Perhaps
θ=2 π/(N*M), N is the quantity of material, and M is parameter preset.
9. method as claimed in claim 8, it is characterized in that, also comprise step: in mobile process, with the round upward central point of the 3D model square of other position except the 3D model square that click commands is chosen, be offset direction and the angle identical with the central point of the 3D model square of choosing by click commands.
10. the method that image is processed, is characterized in that, comprises the following steps:
Catch the user for the instruction that drags of the 3D model square place window input of justifying first-class radian arrangement;
According to dragging instruction, determine the initial point position, final position and the direction that drag;
According to the drawing direction of determining, the 3D model square at initial point position place is moved to the final position.
11. method as claimed in claim 10 is characterized in that, described drag operation comprises:
Will be by dragging the central point of the 3D model square that instruction chooses, by the direction one or many skew θ angle that drags, until the central point of the described 3D model square of choosing overlaps with terminal point;
Wherein, the θ angle is to drag initial point position that instruction chooses by the corresponding central angle of the circular arc between drawing direction and final position; Perhaps
θ=2 π/(N*M), N is the quantity of material, and M is parameter preset.
12. method as claimed in claim 11, it is characterized in that, also comprise step: in the process that drags, with the central point of the 3D model square of circle upper other position except dragging the 3D model square that instruction chooses, be offset direction and the angle identical with central point by dragging the 3D model square that instruction chooses.
13. the device that image is processed is characterized in that, comprising:
Analysis module is used for the quantity according to material, determines the radian of Equal round;
The first processing module is used for obtaining the point of a plurality of Equal rounds according to the radian of determining on default circle, and calculates the coordinate of the point of each Equal round;
The second processing module is used for structure 3D model square on the point of Equal round, and 3D model square central point overlaps with the point of Equal round; Wherein, there are the dihedral angle of predetermined angle in described plane, round place and the first plane; The scope of predetermined angle is (0,90);
Mapping block is used for the 3D model square with radian arrangements such as material are mapped to;
Projection module projects to the second plane for the 3D model square that will have material, and wherein the second plane is vertical with the first plane, and the second plane is parallel with display interface.
14. device as claimed in claim 13 is characterized in that, material comprises one or more in picture, video and text.
15. device as claimed in claim 13 is characterized in that, the first processing module is used for obtaining the point of Equal round: determine initial point position on default circle; From initial point position, according to the radian of the every skew Equal round of preset direction, obtain the point of an Equal round, until the number of the point of Equal round is consistent with the quantity of material.
16. device as claimed in claim 15 is characterized in that, the first processing module is used for determining initial point position: at default three-dimensional cartesian coordinate system, on plane, circle place, be parallel to the tangent line that X-axis is made circle; Determine to be parallel to two point of contacts that the tangent line of X-axis is handed over Z axis; To be designated as initial point position near the point of contact outside display interface in two point of contacts.
17. device as claimed in claim 13 is characterized in that, 3D model square is that the right-angle triangle by 2 congruences is spliced, and the hypotenuse of 2 right-angle triangles overlaps.
18. device as claimed in claim 13 is characterized in that, the second processing module is used for 3D model square is placed on the point of Equal round, is the Dihedral angel adjustment of the XOZ face in circle plane, place and three-dimensional cartesian coordinate system predetermined angle; Be the Dihedral angel adjustment of circle plane, place and XOZ face perhaps predetermined angle, 3D model square be placed on the point of Equal round.
19. the device that image is processed is characterized in that, comprising:
Receiver module is used for catching the user for the click commands of the 3D model square place window input of the first-class radian arrangement of circle;
Processing module is used for judging whether the position of the click commands of catching belongs to the 3D model square that is positioned at initial point position; Wherein, initial point position is the central point position of the 3D model square of below, the most close interface on circle; If the position of the click commands of catching belongs to the 3D model square that is positioned at initial point position, export the material that the icon in the 3D model square of initial point position links; If the position of the click commands of catching does not belong to the 3D model square that is positioned at initial point position, the central point of the 3D model square that will choose by click commands moves to initial point position, the material that the icon in the 3D model square of output initial point position links.
20. device as claimed in claim 19 is characterized in that, the central point of the 3D model square that processing module will be chosen by click commands is pressed preset direction one or many skew θ angle, until the central point of the described 3D model square of choosing overlaps with starting point; Wherein, the θ angle is that the central point of the 3D model square chosen of click commands is by the corresponding central angle of the circular arc between preset direction and starting point; Perhaps the θ angle is the radian of Equal round; Perhaps θ=2 π/(N*M), N is the quantity of material, and M is parameter preset.
21. device as claimed in claim 20, it is characterized in that, processing module is used in mobile process, with the round upward central point of the 3D model square of other position except the 3D model square that click commands is chosen, be offset direction and the angle identical with the central point of the 3D model square of choosing by click commands.
22. the device that image is processed is characterized in that, comprising:
Receiver module is used for catching the user for the instruction that drags of the 3D model square place window input of justifying first-class radian arrangement;
The first processing module is used for determining according to dragging instruction the initial point position, final position and the direction that drag;
The second processing module is used for according to the drawing direction of determining, the 3D model square at initial point position place is moved to the final position.
23. device as claimed in claim 22, it is characterized in that, the second processing module will be by dragging the central point of the 3D model square that instruction chooses, by the direction one or many skew θ angle that drags, until the central point of the described 3D model square of choosing overlaps with terminal point; Wherein, the θ angle be drag that instruction chooses icon place initial point position by the corresponding central angle of the circular arc between drawing direction and final position; Perhaps θ=2 π/(N*M), N is the quantity of material, and M is parameter preset.
24. device as claimed in claim 23, it is characterized in that, the second processing module is for the process that is dragging, with the central point of the 3D model square of circle upper other position except dragging the 3D model square that instruction chooses, be offset direction and the angle identical with central point by dragging the 3D model square that instruction chooses.
CN2013100485703A 2013-02-06 2013-02-06 Method and device for image processing Pending CN103092628A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013100485703A CN103092628A (en) 2013-02-06 2013-02-06 Method and device for image processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013100485703A CN103092628A (en) 2013-02-06 2013-02-06 Method and device for image processing

Publications (1)

Publication Number Publication Date
CN103092628A true CN103092628A (en) 2013-05-08

Family

ID=48205239

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013100485703A Pending CN103092628A (en) 2013-02-06 2013-02-06 Method and device for image processing

Country Status (1)

Country Link
CN (1) CN103092628A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103414760A (en) * 2013-07-22 2013-11-27 天脉聚源(北京)传媒科技有限公司 Microblog aggregation display method and client
CN103412732A (en) * 2013-07-22 2013-11-27 天脉聚源(北京)传媒科技有限公司 Three-dimensional arc based resource display method and client
CN106033411A (en) * 2015-03-20 2016-10-19 广州金山移动科技有限公司 Object layout method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070136681A1 (en) * 2005-12-08 2007-06-14 Syntax Brillian Corp. On-screen display for configuring a display apparatus using graphic icons
CN101784412A (en) * 2007-08-21 2010-07-21 大众汽车有限公司 Method for displying information in a vehicle, and display device for a vehicle
CN102323874A (en) * 2011-09-14 2012-01-18 深圳创维-Rgb电子有限公司 Method and system for realizing three-dimensional user interface, and multimedia terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070136681A1 (en) * 2005-12-08 2007-06-14 Syntax Brillian Corp. On-screen display for configuring a display apparatus using graphic icons
CN101784412A (en) * 2007-08-21 2010-07-21 大众汽车有限公司 Method for displying information in a vehicle, and display device for a vehicle
CN102323874A (en) * 2011-09-14 2012-01-18 深圳创维-Rgb电子有限公司 Method and system for realizing three-dimensional user interface, and multimedia terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
SEVENSUNDARK: "Android随记------GalleryView禁止选中项目向中间滑动", 《HTTP://BLOG.CSDN.NET/SEVENSUNDARK/ARTICLE/DETAILS/7419305》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103414760A (en) * 2013-07-22 2013-11-27 天脉聚源(北京)传媒科技有限公司 Microblog aggregation display method and client
CN103412732A (en) * 2013-07-22 2013-11-27 天脉聚源(北京)传媒科技有限公司 Three-dimensional arc based resource display method and client
CN103412732B (en) * 2013-07-22 2016-12-28 天脉聚源(北京)传媒科技有限公司 A kind of resource exhibition method based on three-dimensional arc and client
CN106033411A (en) * 2015-03-20 2016-10-19 广州金山移动科技有限公司 Object layout method and device
CN106033411B (en) * 2015-03-20 2019-03-29 广州金山移动科技有限公司 A kind of object placement's method and device

Similar Documents

Publication Publication Date Title
US9436369B2 (en) Touch interface for precise rotation of an object
US20220326844A1 (en) Displaying a three dimensional user interface
US8860675B2 (en) Drawing aid system for multi-touch devices
US10290155B2 (en) 3D virtual environment interaction system
US8836646B1 (en) Methods and apparatus for simultaneous user inputs for three-dimensional animation
CN105373291B (en) A kind of interface switching method and device
US9858711B2 (en) Efficient computation of shadows for circular light sources
US10275910B2 (en) Ink space coordinate system for a digital ink stroke
US10628013B2 (en) Closed-loop display control for multi-dimensional user interface generation
KR20160046150A (en) Apparatus and method for drawing and solving a figure content
US20140359508A1 (en) Graphical user interface with dial control for a parameter
KR20120009564A (en) Apparatus and method for generating 3 dimentional mouse pointer
JP2015507783A (en) Display device and screen mode changing method using the same
US10529145B2 (en) Touch gestures for navigation and interacting with content in a three-dimensional space
US10168899B1 (en) Computer-readable media and related methods for processing hand-drawn image elements
WO2016061273A1 (en) Multi-dimensional data visualization, navigation, and menu systems
CN102568253A (en) Method and device used for displaying geometrical characteristic of graph in electronic whiteboard
CN103324400A (en) Method and device for displaying menus in 3D model
US9262861B2 (en) Efficient computation of shadows
CN104504761A (en) Method and device for controlling rotation of 3D (three-dimensional) model
CN103092628A (en) Method and device for image processing
US20130283192A1 (en) Generation of Canvas Elements for Drawing Objects
CN103198518B (en) A kind of resource exhibition method and device
US11398082B2 (en) Affine transformations of 3D elements in a virtual environment using a 6DOF input device
US20180121075A1 (en) Freehand object manipulation

Legal Events

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

Application publication date: 20130508

RJ01 Rejection of invention patent application after publication