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

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

Starting to flesh out the Finder classes.

File size: 1.5 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/DataArrayBase.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        AstroImage<PIXELSTATUS> *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<PIXELSTATUS> itsSmartMask;
57        AstroImage<short> itsDetectMap;
58
59        Catalogue<Detection> itsCatalogue;
60    };
61   
62}
63
64#endif
65
Note: See TracBrowser for help on using the repository browser.