转场函数

 

根据转场的实现方式,可以将所有的函数分为两大类:

1.       不需要使用模板的转场:

Re=Transition_name(imga,imgb,rate)

2.       需要使用模板的转场:

a)         不需要调整模板大小的转场:

Re=Mask(imga,imgb,rate, filename

       b 需要调整模板大小的转场:

              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 mgaIf your giving matrix doesnt satisfy the requirement of  imga and imgbyou 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 nameBand_doorsBand_SildeCenter_MergeChecker

Cross_StretchDiamondfadeInsertIris_crossIris_points

Iris_squarepushsildingSpinSpin_outStretch_OverSwep

VenetianZig_zagzoom 函数都为此类。

 

 

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 mgaIf your giving matrix doesnt satisfy the requirement of  imga and imgbyou should use the function y=uint8(x)to change it.

The function return a M*N*3 matrix.

Examples

       Clockcloudcriclelinepaintswrilwavewo为模板名称,它们都使用Mask函数来实现。

 

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 mgaIf your giving matrix doesnt satisfy the requirement of  imga and imgbyou should use the function y=uint8(x)to change it.

The function return a M*N*3 matrix.

Examples

       此函数也需要使用模板,与Mask不同的是,模板的大小要根据rate值的不同来调整。