转场函数
根据转场的实现方式,可以将所有的函数分为两大类:
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 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 函数都为此类。
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为模板名称,它们都使用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 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
此函数也需要使用模板,与Mask不同的是,模板的大小要根据rate值的不同来调整。