Luiza  v03-01
SimpleImageAdder.h
1 // -*- mode: c++; mode: auto-fill; mode: flyspell-prog; -*-
2 
3 #ifndef SimpleImageAdder_h
4 #define SimpleImageAdder_h 1
5 
6 #include "luiza/Processor.h"
7 
8 using namespace gloria;
9 
10 namespace luiza {
11 
12 
14 
55  class SimpleImageAdder : public Processor {
56 
57  public:
58 
59  virtual Processor* newProcessor() { return new SimpleImageAdder ; }
60 
61 
63 
65 
67  virtual void init() ;
68 
70 
75  virtual void startAnalysis( GloriaDataContainer* ) ;
76 
78 
81  virtual void processData( GloriaDataContainer* data ) ;
82 
83 
85 
88  virtual void check( GloriaDataContainer* data ) ;
89 
90 
92 
97  virtual void concludeAnalysis( GloriaDataContainer* data ) ;
98 
100 
105  virtual void end() ;
106 
107 
108  protected:
109 
111  void StoreSumImage( GloriaDataContainer* data );
112 
114  void printEndMessage() const ;
115 
118 
121 
124 
127 
130 
133 
135  std::vector<std::string> _matchKeywords;
136 
138  std::vector<std::string> _matchValues;
139 
140  int _nLoops ;
141  int _nInputImages ;
142  int _nOutputImages ;
143  int _nAdded;
144  GloriaFitsImage *_sumImage;
145 
146  int _nKey;
147  std::string _initKeyVal;
148 
149  } ;
150 
151 } // end namespace luiza
152 #endif
153 
154 
155 
virtual Processor * newProcessor()
Return a new instance of the processor.
Definition: SimpleImageAdder.h:59
int _nAddImages
Number of images in the sum (0 for all in the input collection)
Definition: SimpleImageAdder.h:126
namespace for data storing and exchange formats
Definition: GloriaAstrometry.h:15
bool _permanentCollection
Flag the output collection to be permanent.
Definition: SimpleImageAdder.h:123
std::vector< std::string > _matchKeywords
Keywords which should match for added frames.
Definition: SimpleImageAdder.h:135
Class for storing all data processed in Luiza.
Definition: GloriaDataContainer.h:82
Base class for Luiza processors.
Definition: Processor.h:55
Simple processor to add images in the input collection.
Definition: SimpleImageAdder.h:55
string _outputCollectionName
Name of the output image collection.
Definition: SimpleImageAdder.h:120
string _inputCollectionName
Name of the image collection containing images to be added.
Definition: SimpleImageAdder.h:117
std::vector< std::string > _matchValues
Values of keywords being matched.
Definition: SimpleImageAdder.h:138
bool _useManyLoops
Allow adding images from different loops.
Definition: SimpleImageAdder.h:129
Namespace for Luiza framework.
Definition: CCCollection.h:6
Class for reading and processing fits images in Luiza.
Definition: GloriaFitsImage.h:43
bool _averageImage
Flag to select adding (false) or averaging (true) of input images.
Definition: SimpleImageAdder.h:132