interpolation
interpol image
interpol coe(k1,k2,...)image(id1,id2,...)image(id0)
Computes image ni = k1 * id1 + k2 * id2 + ... with ni in (id0,id0+1,...).
Example:
interpol(0.5,0.5)image(1,2)image(3);
computes image(3)=average of images 1 and 2.
Options:
dim(nx,ny): size of the images.
limit: evoides color overflow.
normal: Normalizes coefficients (k1 + k2 + ... = 1).
Notes:
1) Faster if images id1,id2,... have the same dimensions.
2) If images i3,i3+1,... doesnot exist, they are created.
interpol(nb)image(id1,id2,...)image(id3)
Generates images id3,id3+1,...,id3+nb-1 interpolated through images
id1,id2,... and returns the last generated image number.
interpol(nb)image(id1)image(id2)bitmap
Changes image id2 as id1,id2 interpolating on nb images.
Note:
rem bitmap[0,ni-1]image(id2);
is performed in order to fix continuity.
interpol(nb)image(i1)read("A.ee")image(i2)read("B.eee")write("C.eee")
Writes images "Ck.eee" interpolated through images Ai.eee and
Bj.eee with i in [i1,i1+nb[, j in [i2,i2+nb[ and k in [1,nb].
Options:
number("nD",i3): k in [i3,i3+nb[ ("4D",1) default.
interpol(nb)image(i1,i2)write("A.eee")
Writes images "Ak.eee" interpolated through images i1 and
i2 with k in [1,nb].
Options:
number("nD",i3): k in [i3,i3+nb[ ("4D",1) default.
interpol line
interpol line(L1)line(L2)dim(ni)NP(im)
Returns L = L1 + (L2 - L1) *im / (ni-1).
If im=0 L=L1;
If im=ni-1 L=L2;
Note: requires ni >= 2.
interpol read
interpol read("nom1") read("nom2") write("nom3") coe(c)
Generates the file volumes "nom3" interpolated according to coefficient c
between files "nom1" and "nom2".
Notes:
1) nom3 = (1-c) * nom1 + c * nom2
2) By default c = 0.5
3) Useful for generating intermediate frames for example to improve antialiasing or dynamics calculations.
4) interpol read("nom1") read("nom2") write("nom3") coe(c) format("Z");
For compressed files.
interpol read
interpol poi(p1,p2,...,pn-1,pn) vol(id)
Interpolates the points p2,...,pn-1 of volume id between points p1 and pn of this volume.
interpol secx vol
interpol secx(n1,n2) vol(id)
Interpolates the x sections between n1 and n2 (all by default) of volume id.
interpol secy vol
interpol secy(n1,n2) vol(id)
Interpolates the y sections between n1 and n2 (all by default) of volume id.
interpol vertex
interpol vertex(v1,v2)vol(id)
Interpolates vertices [v1,v2] of volume id.
interpol vertex(v1,v2,v3)vol(id)
does: poi(v3)vol(id)=(poi(v1)vol(id) + poi(v2)vol(id)) / 2.
interpol vol
interpol vol(id1)vol(id2)vol(id3)coe(c)
Generates volume id3 as centroid of volumes id1 and id2
with coefficients (c) and (1-c).
Notes:
1) c = 0.5 by default
2) Volumes id1 and id2 must have the same topology.
See also: