Luiza  v03-01
ImageMedian.h
1 // -*- mode: c++; mode: auto-fill; mode: flyspell-prog; -*-
2 
3 #ifndef ImageMedian_h
4 #define ImageMedian_h 1
5 
6 #include "luiza/Processor.h"
7 
8 using namespace gloria;
9 
10 namespace luiza {
11 
12 
14 
44  class ImageMedian : public Processor {
45 
46  public:
47 
48  virtual Processor* newProcessor() { return new ImageMedian ; }
49 
50 
51  ImageMedian() ;
52 
56  virtual void init() ;
57 
60  virtual void processData( GloriaDataContainer* data ) ;
61 
62 
63  virtual void check( GloriaDataContainer* data ) ;
64 
65 
68  virtual void end() ;
69 
70 
71  protected:
72 
74  void printEndMessage() const ;
75 
78 
81 
84 
86  std::vector<std::string> _matchKeywords;
87 
88  int _nLoops ;
89  int _nInputImages ;
90  int _nOutputImages ;
91 
92  GloriaFitsImage *_medianImage;
93 
94  } ;
95 
96 } // end namespace luiza
97 #endif
98 
99 
100 
std::vector< std::string > _matchKeywords
Keywords which should match for considered frames.
Definition: ImageMedian.h:86
namespace for data storing and exchange formats
Definition: GloriaAstrometry.h:15
string _inputCollectionName
Name of the image collection containing images to be added.
Definition: ImageMedian.h:77
bool _permanentCollection
Flag the output collection to be permanent.
Definition: ImageMedian.h:83
Processor to calculate median image from images in the input collection.
Definition: ImageMedian.h:44
Class for storing all data processed in Luiza.
Definition: GloriaDataContainer.h:82
Base class for Luiza processors.
Definition: Processor.h:55
string _outputCollectionName
Name of the output image collection.
Definition: ImageMedian.h:80
Namespace for Luiza framework.
Definition: CCCollection.h:6
Class for reading and processing fits images in Luiza.
Definition: GloriaFitsImage.h:43
virtual Processor * newProcessor()
Return a new instance of the processor.
Definition: ImageMedian.h:48