Transition function

 

All of the transition function can be divide by:

1.       don't require mask

Re=Transition_name(imga,imgb,rate)

2.       require mask

a)         doesn't need resize mask

Re=Mask(imga,imgb,rate, filename

       b) need risize mask

              Re= page (imga,imgb,rate, filename)

 

 

 

1.Transition_name(imga,imgb,rate)

 

Calling Sequence

Re= Transition_name (imga,imgb,rate)

 

Parameters

Imga,imgb:  M*N*3 matrix of a color (0-255 range) image.

Rate:    the rate imga hit in the final outcome, It range from 0 to 1.

 

Description

Trasition from imgb to mga。If your giving matrix doesn’t satisfy the requirement of  imga and imgb,you should use the function “y=uint8(x)”to change it.

The function return a 3 row matrix of integers coded on one, two or four bytes.

 

Examples

Transition name,Band_doors,Band_Silde,Center_Merge,Checker

Cross_Stretch,Diamond,fade,Insert,Iris_cross,Iris_points

Iris_square,push,silding,Spin,Spin_out,Stretch_Over,Swep

Venetian,Zig_zag,zoom etc.

 

 

2.Mask(imga,imgb,rate, filename)

 

Calling Sequence

Re= Mask (imga,imgb,rate, filename)

 

Parameters

Imga,imgb:  M*N*3 matrix of a color (0-255 range) image.

Rate:    the rate imga hit in the final outcome, It range from 0 to 1.

Filename: A string.The mode’s name.

Description

Trasition from imgb to mga。If your giving matrix doesn’t satisfy the requirement of  imga and imgb,you should use the function “y=uint8(x)”to change it.

The function return a M*N*3 matrix.

Examples

       Clock,cloud,cricle,line,paint,swril,wave,wo is mask name,all of them are implement by Mask function.

 

3. page(imga,imgb,rate,filename)

Calling Sequence

Re= page (imga,imgb,rate, filename)

 

Parameters

Imga,imgb:  M*N*3 matrix of a color (0-255 range) image.

Rate:    the rate imga hit in the final outcome, It range from 0 to 1.

Filename: A string.The mode’s name.

Description

Trasition from imgb to mga。If your giving matrix doesn’t satisfy the requirement of  imga and imgb,you should use the function “y=uint8(x)”to change it.

The function return a M*N*3 matrix.

Examples

       The function also need mask, but different is this template need resize by different value of 'rate'.