近期要用到,所以记一下
Name
fproj
Command Synopsis
fproj
-xsx : x-size of outputimage, default 512
-ysy : y-size of outputimage, default 512
-bbg : background greyvalue, default: 0.0
-oo : order:0,1=linear,-3=cubic,3,5..11=spline, default 3(选择插值方式,线性的,或者)
-pp : Keys' parameter(when o=-3), in [-1,0], default -0.5
-i :compute inverse transform
in: input Fimage
out: output Fimage
X1: upleft corner
Y1: upleft corner
X2: upright corner
Y2: upright corner
X3: downleft corner
Y3: downleft corner
x4: downright corner (for projectivetransform)
y4: downright corner (for projectivetransform)
Function Summary
void fproj(in , out , sx , sy , bg , o , p , i , X1 , Y1 , X2 , Y2 , X3 , Y3, x4 , y4 )
Fimage in , out ;
int*sx , *sy , *o ;
char*i ;
float *bg , *p , X1 , Y1 , X2 , Y2 , X3 , Y3 , *x4 , *y4 ;
Description
This moduleapplies an affine or a projective transformation to an image. Theoriginal (interpolated) image
F(x1, | = | (0, 0) | |
F(x2, | = | (sx, 0) | |
F(x3, | = | (0, | |
Thismeans that the new image is extracted from the original one in aparallelogram domain.
F(x1, | = | (0, 0) | |
F(x2, | = | (sx, 0) | |
F(x3, | = | (0, | |
F(x4, | = | (sx, | |
Thismeans that the new image is extracted from the original one in aquadrilateral domain.
Theinterpolation method is the same asthe fcrop
fcrop
The -i
NB :calling this module with out=in is not possible
See Also
fzrt.
Version 2.0
LastModification date : Thu Nov 29 20:23:56 2001
Author
LionelMoisan