1 2 3 4 5 6 7 8 9 10
|
int fitmodel(int nr, int nc, matrix_type field, int ncurves, curve_type *model,
pixel_coord rfp1, pixel_coord rfp2)
{
int np, k, i, j;
int p0[9] = {-1, 0, 0, 0, 0, 0, 1, 2, 1};
int p1[9] = {-1, -1, -1, -1, 3, -1, 2, 3, 0};
double cx0[3], cy0[3], cx1[3], cy1[3];
double t0, t1, cutx[3], cuty[3], tmpcx[3], tmpcy[3], tmpt, *xp, *yp;
double xs[NP], ys[NP], xw[NP], yw[NP], xsw[NP], ysw[NP];
double f1, f2, omega, dt0, dt1, tw0, tw1, oldt;
|