6 ofstream os(
"refinestat.txt",ios::app);
7 os <<
"statistics for shape refinement" << endl;
8 os <<
"model\tpoint dist\tchamfer\thausdorff" << endl;
10 loadSpecies(m_DBSelector.getCurSpecies());
12 cout <<
"hello" << endl;
14 Model refmod(*m_Geom);
17 if(st.getRefModel(m_CSpecies.id, refmod)) {
19 refmod.attachDataset(&m_Data);
20 omod.attachDataset(&m_Data);
22 os <<
"species id: " << m_CSpecies.id
23 <<
" ppmm = " << m_Data.getPPMM() << endl;
24 cout <<
"original model" << endl;
26 m_Geom->adaptProperties(refmod.getProperties());
35 /m_Data.getPPMM()<<
"\t" 37 /m_Data.getPPMM()<<
"\t" 41 cout <<
"reference model" << endl;
43 m_Geom->adaptProperties(refmod.getProperties());
52 /m_Data.getPPMM()<<
"\t" 54 /m_Data.getPPMM()<<
"\t" 59 static float sscs[] = {0.05, 0.1, 0.2, 0.4, 0.8,
60 1, 1.3, 1.5, 1.8, 2, 2.5, 3,
62 for(
int ssi = 0; sscs[ssi]>0; ssi++)
64 float scscale = sscs[ssi];
65 cout <<
"master model scscale = "<<scscale<< endl;
66 st.buildMasterModel(scscale);
67 *m_Geom = st.getModel();
68 m_Geom->adaptProperties(refmod.getProperties());
77 /m_Data.getPPMM()<<
"\t" 79 /m_Data.getPPMM()<<
"\t" 88 if(anastate == -1) {
EXIT_THREAD(DO_ANALYSIS);
break; }
91 cout <<
"analysis terminated" << endl;
unsigned long getMilliSeconds()
DUMP(refmod.distance(*m_Geom, Model::DIST_POINTS))