1 | #include <duchamp/Finder/DuchampFinder.hh> |
---|
2 | |
---|
3 | namespace duchamp |
---|
4 | { |
---|
5 | |
---|
6 | DuchampFinder::DuchampFinder(const int argc, const char ** argv) |
---|
7 | { |
---|
8 | |
---|
9 | } |
---|
10 | |
---|
11 | DuchampFinder::DuchampFinder(const DuchampFinder& other) |
---|
12 | { |
---|
13 | this->operator=(other); |
---|
14 | } |
---|
15 | |
---|
16 | DuchampFinder& DuchampFinder::operator= (const DuchampFinder& other) |
---|
17 | { |
---|
18 | if(this == &other) return *this; |
---|
19 | this->itsHeader = other.itsHeader; |
---|
20 | this->itsParam = other.itsParam; |
---|
21 | this->itsStats = other.itsStats; |
---|
22 | this->itsImage = other.itsImage; |
---|
23 | this->itsRecon = other.itsRecon; |
---|
24 | this->itsBaselines = other.itsBaselines; |
---|
25 | this->itsSmartMask = other.itsSmartMask; |
---|
26 | this->itsDetectMap = other.itsDetectMap; |
---|
27 | this->itsCatalogue = other.itsCatalogue; |
---|
28 | return *this; |
---|
29 | } |
---|
30 | |
---|
31 | |
---|
32 | void DuchampFinder::readParams() |
---|
33 | { |
---|
34 | |
---|
35 | } |
---|
36 | |
---|
37 | void DuchampFinder::readHeader() |
---|
38 | { |
---|
39 | |
---|
40 | } |
---|
41 | |
---|
42 | void DuchampFinder::readData() |
---|
43 | { |
---|
44 | |
---|
45 | } |
---|
46 | |
---|
47 | |
---|
48 | void DuchampFinder::preprocess() |
---|
49 | { |
---|
50 | |
---|
51 | if(this->itsParam.getFlagNegative()) this->invert(); |
---|
52 | if(this->itsParam.getFlagBaseline()) this->subtractBaselines(); |
---|
53 | if(this->itsParam.getFlagATrous()) this->atrousRecon(); |
---|
54 | else if(this->itsParam.getFlagSmooth()) this->smooth(); |
---|
55 | |
---|
56 | } |
---|
57 | |
---|
58 | void DuchampFinder::invert() |
---|
59 | { |
---|
60 | float scale = -1.; |
---|
61 | this->itsImage *= scale; |
---|
62 | if(this->itsRecon.size()>0) this->itsRecon *= scale; |
---|
63 | |
---|
64 | for(size_t i=0;i<this->itsCatalogue.size();i++){ |
---|
65 | this->itsCatalogue(i).invert(); |
---|
66 | } |
---|
67 | |
---|
68 | } |
---|
69 | |
---|
70 | void DuchampFinder::smooth() |
---|
71 | { |
---|
72 | |
---|
73 | } |
---|
74 | |
---|
75 | void DuchampFinder::atrousRecon() |
---|
76 | { |
---|
77 | |
---|
78 | } |
---|
79 | |
---|
80 | |
---|
81 | void DuchampFinder::subtractBaselines() |
---|
82 | { |
---|
83 | |
---|
84 | } |
---|
85 | |
---|
86 | |
---|
87 | void DuchampFinder::replaceBaselines() |
---|
88 | { |
---|
89 | |
---|
90 | } |
---|
91 | |
---|
92 | |
---|
93 | void DuchampFinder::readFromCatalogue() |
---|
94 | { |
---|
95 | |
---|
96 | } |
---|
97 | |
---|
98 | |
---|
99 | |
---|
100 | |
---|
101 | |
---|
102 | } |
---|