Description:
The models relate two sets of [x,y] coordinates as follows. Naming the elements of fwds:
fwds[0] = A
fwds[1] = B
fwds[2] = C
fwds[3] = D
fwds[4] = E
fwds[5] = F
where two sets of coordinates [x1,y1] and [x2,y2] are related thus:
x2 = A
B x1
C
y1
y2 = D
E x1
F
y1
the present routine generates a new set of coefficients:
bkwds[0] = P
bkwds[1] = Q
bkwds[2] = R
bkwds[3] = S
bkwds[4] = T
bkwds[5] = U
such that:
x1 = P
Q x2
R
y2
y1 = S
T x2
U
y2
Two successive calls to palInvf will thus deliver a set of coefficients equal to the
starting values.
Invocation
palInvf ( double fwds[6], double bkwds[6], int
j )
Arguments
fwds = double[6] (Given)
model coefficients
bkwds = double[6] (Returned)
inverse
model
j = int (Returned)
status: 0 = OK, -1 = no inverse
See also
palFitxy, palPxy, palXy2xy and
palDcmpf
Copyright © 2012 Science and Technology Facilities Council.
Copyright © 2014 Cornell University.
Copyright © 2015 Tim Jenness