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 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 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 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 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 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

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