Luiza  v03-01
ApplyFlatKernel.h
1 // -*- mode: c++; mode: auto-fill; mode: flyspell-prog; -*-
2 
3 #ifndef ApplyFlatKernel_h
4 #define ApplyFlatKernel_h 1
5 
6 #include "luiza/Processor.h"
7 
8 using namespace gloria;
9 
10 namespace luiza {
11 
12 
14 
59  class ApplyFlatKernel : public Processor {
60 
61  public:
62 
63  virtual Processor* newProcessor() { return new ApplyFlatKernel ; }
64 
65 
66  ApplyFlatKernel() ;
67 
69 
71  virtual void init() ;
72 
74 
79  virtual void startAnalysis( GloriaDataContainer* ) ;
80 
82 
85  virtual void processData( GloriaDataContainer* data ) ;
86 
87 
89 
92  virtual void check( GloriaDataContainer* data ) ;
93 
94 
95 
97 
102  virtual void concludeAnalysis( GloriaDataContainer* ) ;
103 
105 
110  virtual void end() ;
111 
112 
113  protected:
114 
116  void printEndMessage() const ;
117 
120 
123 
126 
128  std::vector<float> _objectSize;
129 
131  std::vector<float> _objectSmearing;
132 
134  std::vector<int> _kernelSize;
135 
136  int _kernelSizeX, _kernelSizeY;
137 
138  int _nLoops ;
139  int _nInputImages ;
140  int _nOutputImages ;
141 
142  GloriaFitsImage *_origImage;
143  GloriaFitsImage *_convImage;
144 
145  int _nbNum;
146  long *_nbShiftX;
147  long *_nbShiftY;
148  double *_nbWeight;
149  } ;
150 
151 } // end namespace luiza
152 #endif
153 
154 
155 
std::vector< float > _objectSize
Assumed size of the object on the frame, in X and Y.
Definition: ApplyFlatKernel.h:128
string _inputCollectionName
Name of the image collection containing images to be added.
Definition: ApplyFlatKernel.h:119
Simple processor to look for vertical or horizontal line segments in the input image.
Definition: ApplyFlatKernel.h:59
namespace for data storing and exchange formats
Definition: GloriaAstrometry.h:15
std::vector< float > _objectSmearing
Assumed smearing of the flat object shape, in X and Y.
Definition: ApplyFlatKernel.h:131
virtual Processor * newProcessor()
Return a new instance of the processor.
Definition: ApplyFlatKernel.h:63
Class for storing all data processed in Luiza.
Definition: GloriaDataContainer.h:82
Base class for Luiza processors.
Definition: Processor.h:55
std::vector< int > _kernelSize
Kernel array size in X and Y.
Definition: ApplyFlatKernel.h:134
string _outputCollectionName
Name of the output image collection.
Definition: ApplyFlatKernel.h:122
Namespace for Luiza framework.
Definition: CCCollection.h:6
Class for reading and processing fits images in Luiza.
Definition: GloriaFitsImage.h:43
bool _permanentCollection
Flag the output collection to be permanent.
Definition: ApplyFlatKernel.h:125