Luiza  v03-01
AstroImageAdder.h
1 // -*- mode: c++; mode: auto-fill; mode: flyspell-prog; -*-
2 
3 #ifndef AstroImageAdder_h
4 #define AstroImageAdder_h 1
5 
6 #include "luiza/Processor.h"
7 #include "gloria/GloriaFitsImage.h"
8 #include "gloria/GloriaAstrometry.h"
9 #include "gloria/GloriaValueMap.h"
10 
11 using namespace gloria;
12 
13 namespace luiza {
14 
15 
17 
62  class AstroImageAdder : public Processor {
63 
64  public:
65 
66  virtual Processor* newProcessor() { return new AstroImageAdder ; }
67 
68 
69  AstroImageAdder() ;
70 
72 
74  virtual void init() ;
75 
77 
82  virtual void startAnalysis( GloriaDataContainer* ) ;
83 
85 
88  virtual void processData( GloriaDataContainer* data ) ;
89 
90 
92 
95  virtual void check( GloriaDataContainer* data ) ;
96 
97 
99 
104  virtual void concludeAnalysis( GloriaDataContainer* ) ;
105 
107 
112  virtual void end() ;
113 
114 
115  protected:
116 
118  void printEndMessage() const ;
119 
122 
125 
128 
131 
134 
136 
140 
143 
144  int _nLoops ;
145  int _nInputImages ;
146  int _nOutputImages ;
147  int _nAdded;
148 
149  GloriaFitsImage* _sumImage;
150  GloriaFitsImage* _sumCount;
151 
152  double *_sumImageData;
153  long *_sumCountData;
154 
155  GloriaAstrometry _sumAstro;
156 
157  GloriaValueMap* _shiftMaps;
158 
159  int _sumSizeX;
160  int _sumSizeY;
161 
162  } ;
163 
164 } // end namespace luiza
165 #endif
166 
167 
168 
int _frameDivision
Frame division for shift map calculation.
Definition: AstroImageAdder.h:139
namespace for data storing and exchange formats
Definition: GloriaAstrometry.h:15
int _nAddImages
Number of images in the sum (0 for all in the input collection)
Definition: AstroImageAdder.h:130
int _interpolationOrder
Polinomial order used to interpolate shift correction maps.
Definition: AstroImageAdder.h:142
string _inputCollectionName
Name of the image collection containing images to be added.
Definition: AstroImageAdder.h:121
bool _useManyLoops
Allow adding images from different loops.
Definition: AstroImageAdder.h:133
Class for storing all data processed in Luiza.
Definition: GloriaDataContainer.h:82
Base class for Luiza processors.
Definition: Processor.h:55
Class for constructing parameter/value maps for an image.
Definition: GloriaValueMap.h:33
Namespace for Luiza framework.
Definition: CCCollection.h:6
Class for reading and processing fits images in Luiza.
Definition: GloriaFitsImage.h:43
Processor to add images, based on astrometry (taking into account possible shifts) ...
Definition: AstroImageAdder.h:62
virtual Processor * newProcessor()
Return a new instance of the processor.
Definition: AstroImageAdder.h:66
string _outputCollectionName
Name of the output image collection.
Definition: AstroImageAdder.h:124
bool _permanentCollection
Flag the output collection to be permanent.
Definition: AstroImageAdder.h:127