source: tags/release-1.2.2/src/Cubes/Annotation.cc

Last change on this file was 869, checked in by MatthewWhiting, 13 years ago

New code to handle annotations in an OO manner. TODO - expand to other annotation types.

File size: 1.9 KB
Line 
1
2void Annotation::drawCircle(Detection &obj, FitsHeader &header)
3{
4
5 
6
7}
8
9void Annotation::fileComments(Param &par)
10{
11  std::string fname = par.getImageFile();
12  if(par.getFlagSubsection()) fname+=par.getSubsection();
13  this->itsFile << this->comment() << " Duchamp Source Finder v."<< VERSION << "\n";
14  this->itsFile << this->comment() << " Results for FITS file: " << fname << "\n";
15  if(par.getFlagFDR())
16    this->itsFile<<this->comment() << " FDR Significance = " << par.getAlpha() << "\n";
17  else
18    this->itsFile<<this->comment() << " Threshold = " << par.getCut() << "\n";
19  if(par.getFlagATrous()){
20    this->itsFile<<this->comment() << " The a trous reconstruction method was used, with the following parameters:\n";
21    this->itsFile<<this->comment() << "  Dimension = " << par.getReconDim() << "\n";
22    this->itsFile<<this->comment() << "  Threshold = " << par.getAtrousCut() << "\n";
23    this->itsFile<<this->comment() << "  Minimum Scale =" << par.getMinScale() << "\n";
24    this->itsFile<<this->comment() << "  Filter = " << par.getFilterName() << "\n";
25  }
26  else if(par.getFlagSmooth()){
27    this->itsFile<<this->comment() << " The data was smoothed prior to searching, with the following parameters:\n";
28    this->itsFile<<this->comment() << "  Smoothing type = " << par.getSmoothType() << "\n";
29    if(par.getSmoothType()=="spectral"){
30      this->itsFile << this->comment() << "  Hanning width = " << par.getHanningWidth() << "\n";
31    }
32    else{
33      this->itsFile << this->comment() << "  Kernel Major axis = " << par.getKernMaj() << "\n";
34      if(par.getKernMin()>0)
35        this->itsFile << this->comment() << "  Kernel Minor axis = " << par.getKernMin() << "\n";
36      else
37        this->itsFile << this->comment() << "  Kernel Minor axis = " << par.getKernMaj() << "\n";
38      this->itsFile << this->comment() << "  Kernel Major axis = " << par.getKernPA() << "\n";
39    }
40  }
41}
Note: See TracBrowser for help on using the repository browser.