source: branches/NewStructure/src/Finder/DuchampFinder.hh @ 1441

Last change on this file since 1441 was 1414, checked in by MatthewWhiting, 10 years ago

Adding a SmartMask? class, and tidying up some of the code in DataArrayBase?.

File size: 1.6 KB
Line 
1#ifndef DUCHAMP_FINDER_H_
2#define DUCHAMP_FINDER_H_
3
4#include <iostream>
5#include <duchamp/duchamp.hh>
6#include <duchamp/param.hh>
7#include <duchamp/fitsHeader.hh>
8#include <duchamp/DataArrays/SmartMask.hh>
9#include <duchamp/DataArrays/AstroImage.hh>
10#include <duchamp/Catalogues/Catalogue.hh>
11#include <duchamp/Detection/detection.hh>
12
13namespace duchamp
14{
15
16    class DuchampFinder
17    {
18    public:
19        DuchampFinder(){};
20        DuchampFinder(const int argc, const char ** argv);
21        DuchampFinder(const DuchampFinder& other);
22        DuchampFinder& operator= (const DuchampFinder& other);
23        virtual ~DuchampFinder(){};
24       
25        void readParams();
26        void readHeader();
27        void readData();
28       
29        void preprocess();
30        void invert();
31        void smooth();
32        void atrousRecon();
33
34        void subtractBaselines();
35        void replaceBaselines();
36       
37        void readFromCatalogue();
38       
39        FitsHeader *header(){return &itsHeader;};
40        Param *par(){return &itsParam;};
41        Statistics::StatsContainer<float> *stats(){return &itsStats;};
42        AstroImage<float> *image(){return &itsImage;};
43        AstroImage<float> *recon(){return &itsRecon;};
44        AstroImage<float> *baseline(){return &itsBaselines;};
45        SmartMask         *mask(){return &itsSmartMask;};
46        AstroImage<short> *detectmap(){return &itsDetectMap;};
47     
48
49    protected:
50        FitsHeader                        itsHeader;
51        Param                             itsParam;
52        Statistics::StatsContainer<float> itsStats;
53        AstroImage<float>                 itsImage;
54        AstroImage<float>                 itsRecon;
55        AstroImage<float>                 itsBaselines;
56        AstroImage<short>                 itsDetectMap;
57        SmartMask                         itsSmartMask;
58        Catalogue<Detection>              itsCatalogue;
59    };
60   
61}
62
63#endif
64
Note: See TracBrowser for help on using the repository browser.