6 # ifdef LINSOLVERS_RETAIN_MEMORY
8 # pragma message("LINSOLVERS_RETAIN_MEMORY is not safe in a multithreaded environment and should be turned off!")
10 # warning LINSOLVERS_RETAIN_MEMORY is not safe in a multithreaded environment and should be turned off!
53 double az = atan2(cy0-yc, cx0-xc);
61 double cx = xc + pr*cos(az);
62 double cy = yc + pr*sin(az);
66 double r0 = sqrt(dx0*dx0+dy0*dy0);
68 for (
int y=y0; y<y0+n; y++) {
69 for (
int x=x0; x<x0+n; x++) {
76 double r1 = sqrt(dx1*dx1+dy1*dy1);
78 double pk = bg + dx*bx + dy*by + ht*exp(-((dr*dr)/(2.0*wd*wd)));
100 int width = 0, height = 0;
105 width = data -> get_Width()+1;
106 height = data -> get_Height()+1;
108 if (x<0 || x>width || y<0 || y>height) {
115 double r = sqrt(dx*dx + dy*dy);
116 double chi = atan2(dy, dx);
131 double info[LM_INFO_SZ];
138 NULL, info, NULL, NULL,
this);
152 double dr = sqrt(dx*dx + dy*dy);
QcepDoubleImageDataPtr data() const
void evaluate(double *parm, double *xv, int np, int nx)
void printMessage(QString msg, QDateTime ts=QDateTime::currentDateTime()) const
QxrdCenterFinder * m_CenterFinder
static void staticEvaluate(double *parm, double *xv, int np, int nx, void *adata)
double imageValue(double x, double y)
QSharedPointer< QcepDoubleImageData > QcepDoubleImageDataPtr