/*global carse search*/
DEBUGPRINT("carse search start\n");
ctf.rmax = Rmax;
- ctf.rmin = Rmin;
+ ctf.rmin = Rintermediate;
DEBUGPRINT2("set R range:%f~%f\n",ctf.rmin,ctf.rmax);
DefocusEstimationLoop(info,&out,&ctfinfo,&ctf,&intensity,&likelihood,0,0);
DEBUGPRINT("carse search finish\n");
DEBUGPRINT2("set R range:%f~%f\n",ctf.rmin,ctf.rmax);
DEBUGPRINT("set maxposteriorflag of df, A, k\n");
- eosBayesMaxposteriorflagSet(&out,0);
- eosBayesMaxposteriorflagSet(&out,1);
- eosBayesMaxposteriorflagSet(&out,3);
+ // eosBayesMaxposteriorflagSet(&out,0);
+ // eosBayesMaxposteriorflagSet(&out,1);
+ // eosBayesMaxposteriorflagSet(&out,3);
DEBUGPRINT("----maxflagcheck----\n");
#ifdef DEBUG
#endif
DEBUGPRINT("set canstantflag of Ain");
+ out.posterior[0].constantflag = 1;
+ out.posterior[1].constantflag = 1;
+ out.posterior[3].constantflag = 1;
out.posterior[5].constantflag = 1;
DEBUGPRINT("set resetflag of \n");
DEBUGPRINT("set canstantflag of Ain");
out.posterior[3].constantflag = 1;
- out.posterior[5].constantflag = 1;
+ out.posterior[5].constantflag = 0;
DEBUGPRINT("set resetflag of df,k\n");
out.prior[0].resetflag = 1;
out.prior[1].resetflag = 1;
out.prior[2].resetflag = 1;
+ out.prior[5].resetflag = 1;
eosBayesProbabilityReset(info.fptIn,&out,1,0);
DistributionChangeCheck(&out, 4, 0);
/*df,A serch*/
-
+ /*
DEBUGPRINT("df, A, k search start\n");
ctf.rmax = Rintermediate;
ctf.rmin = Rmin;
DefocusEstimationLoop(info,&out,&ctfinfo,&ctf,&intensity,&likelihood,6,1);
DEBUGPRINT("defocus refinement finish\n");
ctfforbayescheckIntensityOfMaxPosterior(ctf,out.posterior,out.numDistribution,&ctfinfo,intensity.MTFmode,intensity.Ainmode,1,1);
-
+ */
/*defocus refinement*/
/*
DEBUGPRINT("defocus refinement start\n");