motion dialog box

 

Description:

This dialog box is used for describling motion track of a video or an image.

 

GUI preview:

State: This is initial state of the motion dialog box

Description:

The big canvas

There is a line in the big canvas.It is used for decribling the motion track of a vedio scene or an image.scene.There are two initial key-frames,0 and 100, they are displayed in the canvas by the blue square..

 

The green virtual rectangle in the big canvas is used for showing the vedio scene or the image scene.  

 

The small canvas

There are two verticality lines in the small canvas on the initial state.They show that there are two key-frame on the current initial state.

 

The red triangle shows that the homologous frame is current processing frame.

 

Scale

The scale is used for choose a key-frame.

 

Button  

This button is used for ensuring to add one key-frame.

 

Spinbox  

The spinbox dx is used for changing the horizontal offset of the frame relative to the Visual Region.

 

Spinbox

The spinbox dy is used for changing the verticality offset of the frame relative to the Visual Region.

 

Notice:If you want to change the horizontal offset or the verticality offset of the frame relativing to the Visual Region.There is another way . You can complete the operation by dragging the blue square relative to frame. But you must select accurately the blue square, or else something unexcepted will happen.

 

Spinbox

The spinbox resize is used for changing the size of the frame.

Spinbox

The spinbox rotate is used for changing the angle of the frame. relativing to horizontal line

 

Button Reset:

Press the button Reset , you can clear the value you have set.And return to the initial state.

 

Button OK:

Press the button OK , you can save the value you have set.

 

Button Cancel:

Press the button Cancel , you can exit sub-GUI ,. Return to main-GUI

 

 

Example: Now we can set the parameter of motion track of a vedio or an image. We will ensure seven  key-frames.0  19  28  45  69  83  100

 

Step 1:add the key-frame

Move the scale ,choose the value 19 .  As follows:

 

 

And then press the button  .The operation of adding the key-frame 19 is completed. As follows

 

Step 2 : set the action(include dx ,dy ,resize,rotate)

      Change dx and dy: you can press the spinbox dx or the spinbox dy.

You can do it by changing the value of spinbox dx and dy .Also you can do it by dragging

the blue square,but you must select the blue square,or else something unexcepted will happen. 

As follows

 

 

Change size: 0.7times  As follows

 

Change angle: rotate 36° As follows

 

 

The process to add other frame is similary to the frame 19.

When all attribute of all key frames is set,the interface as follows: