[1204] | 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> |
---|
[1414] | 8 | #include <duchamp/DataArrays/SmartMask.hh> |
---|
[1206] | 9 | #include <duchamp/DataArrays/AstroImage.hh> |
---|
| 10 | #include <duchamp/Catalogues/Catalogue.hh> |
---|
[1204] | 11 | #include <duchamp/Detection/detection.hh> |
---|
| 12 | |
---|
| 13 | namespace duchamp |
---|
| 14 | { |
---|
| 15 | |
---|
| 16 | class DuchampFinder |
---|
| 17 | { |
---|
| 18 | public: |
---|
| 19 | DuchampFinder(){}; |
---|
[1401] | 20 | DuchampFinder(const int argc, const char ** argv); |
---|
| 21 | DuchampFinder(const DuchampFinder& other); |
---|
| 22 | DuchampFinder& operator= (const DuchampFinder& other); |
---|
[1204] | 23 | virtual ~DuchampFinder(){}; |
---|
| 24 | |
---|
| 25 | void readParams(); |
---|
| 26 | void readHeader(); |
---|
| 27 | void readData(); |
---|
| 28 | |
---|
[1206] | 29 | void preprocess(); |
---|
| 30 | void invert(); |
---|
| 31 | void smooth(); |
---|
| 32 | void atrousRecon(); |
---|
| 33 | |
---|
[1204] | 34 | void subtractBaselines(); |
---|
| 35 | void replaceBaselines(); |
---|
| 36 | |
---|
| 37 | void readFromCatalogue(); |
---|
| 38 | |
---|
| 39 | FitsHeader *header(){return &itsHeader;}; |
---|
| 40 | Param *par(){return &itsParam;}; |
---|
[1208] | 41 | Statistics::StatsContainer<float> *stats(){return &itsStats;}; |
---|
[1204] | 42 | AstroImage<float> *image(){return &itsImage;}; |
---|
| 43 | AstroImage<float> *recon(){return &itsRecon;}; |
---|
| 44 | AstroImage<float> *baseline(){return &itsBaselines;}; |
---|
[1414] | 45 | SmartMask *mask(){return &itsSmartMask;}; |
---|
[1204] | 46 | AstroImage<short> *detectmap(){return &itsDetectMap;}; |
---|
| 47 | |
---|
| 48 | |
---|
| 49 | protected: |
---|
[1414] | 50 | FitsHeader itsHeader; |
---|
| 51 | Param itsParam; |
---|
[1208] | 52 | Statistics::StatsContainer<float> itsStats; |
---|
[1414] | 53 | AstroImage<float> itsImage; |
---|
| 54 | AstroImage<float> itsRecon; |
---|
| 55 | AstroImage<float> itsBaselines; |
---|
| 56 | AstroImage<short> itsDetectMap; |
---|
| 57 | SmartMask itsSmartMask; |
---|
| 58 | Catalogue<Detection> itsCatalogue; |
---|
[1208] | 59 | }; |
---|
[1204] | 60 | |
---|
| 61 | } |
---|
| 62 | |
---|
| 63 | #endif |
---|
| 64 | |
---|