Scilab Function
Last update : 1/9/2006
lp_interp - interpolate (linear) the field into new size and dimension.
Calling Sequence
-
[field_out]=lp_interp(field_in,size_new[,new_number[,x_shift[,y_shift[,angle[,magnif]]]]])
Parameters
-
field_in
:input field. it must be diffractive wavefront.
-
size_new
: the new size after transformt.( default is 0),
if size_new=0, then the size of the field will not changed.
-
new_number
: input the new number after transformt(integer). default is 0,
if new_number=0, then the size of the field will not changed.
-
x_shift
: the shifts of the X direction in metre. ( default is 0.)
-
y_shift
: the shifts of the Y direction in metre. ( default is 0.)
-
angle
: the rotated angle in degree.( default is 0. )
-
magnif
: the coefficient of magnification ( default is 1.).
-
field_out
: the output field or diffractive wavefront.
Description
compare to
interpol
,
interp
is more fast (but its effect is not good).
Examples
f1=begin(0.01,1e-6);
f2=rect_ap(f1,0.005);
f3=forvard(f2,0.2);
file_ps(f3,"int1");
f4=lp_interp(f3,0.0075,64);
field_plot(f4);
Author
Chen jingyuan, Gan guangyong (IAPCM, Beijing,China.)
See Also
interpol
,
interpolate
,