Luiza  v03-01
PixelClusterFinder.h
1 // -*- mode: c++; mode: auto-fill; mode: flyspell-prog; -*-
2 
3 #ifndef PixelClusterFinder_h
4 #define PixelClusterFinder_h 1
5 
6 #include "luiza/Processor.h"
7 
8 using namespace gloria;
9 
10 namespace luiza {
11 
12 
14 
115  class PixelClusterFinder : public Processor {
116 
117  public:
118 
119  virtual Processor* newProcessor() { return new PixelClusterFinder ; }
120 
121 
123 
127  virtual void init() ;
128 
131  virtual void processData( GloriaDataContainer* data ) ;
132 
133 
134  virtual void check( GloriaDataContainer* data ) ;
135 
136 
139  virtual void end() ;
140 
141 
142  protected:
143 
145  void printEndMessage() const ;
146 
149 
152 
154  std::vector<std::string> _copykey;
155 
158 
159 
162 
165 
168 
170 
175 
177 
183 
185 
189 
191 
195 
197  // Flag for interpolation between background levels calculated in
198  // different subframes:
199  // 0 - no interpolation,
200  // 1 -linear linterpolation (default).
201 
202  int _bgPol;
203 
205  // Flag for interpolation between noise levels calculated in
206  // different subframes:
207  // 0 - no interpolation,
208  // 1 -linear linterpolation (default).
209 
211 
212  double BG_mean_av;
213  double BG_rms_av;
214 
215  int sizeX;
216  int sizeY;
217  long sizeXY;
218 
220 
225 
226 
228  bool _addNoise;
229 
231  string _noiseColumn;
232 
235 
237  std::vector<std::string> _spreadColumns;
238 
240  bool _addShape;
241 
243  std::vector<std::string> _shapeColumns;
244 
245  int _nLoops ;
246  int _nInputImages ;
247  int _nOutputLists ;
248 
249  } ;
250 
251 } // end namespace luiza
252 #endif
253 
254 
255 
Simple processor to find pixel clusters (stars) on the CCD frame.
Definition: PixelClusterFinder.h:115
virtual Processor * newProcessor()
Return a new instance of the processor.
Definition: PixelClusterFinder.h:119
string _inputCollectionName
Name of the image collection containing images to be added.
Definition: PixelClusterFinder.h:148
namespace for data storing and exchange formats
Definition: GloriaAstrometry.h:15
int _maxClusters
Maximum number of clusters.
Definition: PixelClusterFinder.h:182
bool _useTelescopeParameters
Use network configuration file to update processor parameters.
Definition: PixelClusterFinder.h:224
int _maxPixels
Maximum number of pixels in the cluster.
Definition: PixelClusterFinder.h:174
int _bgPol
Background level interpolation flag.
Definition: PixelClusterFinder.h:202
std::vector< std::string > _spreadColumns
Column names for spread information.
Definition: PixelClusterFinder.h:237
int _frameDivision
Frame division for background calculation.
Definition: PixelClusterFinder.h:194
Class for storing all data processed in Luiza.
Definition: GloriaDataContainer.h:82
bool _addSpread
Flag for writing spread information to output table.
Definition: PixelClusterFinder.h:234
double _pixThreshold
Threshold for the cluster pixel signal (in units of noise level)
Definition: PixelClusterFinder.h:164
Base class for Luiza processors.
Definition: Processor.h:55
string _outputCollectionName
Name of the output image collection.
Definition: PixelClusterFinder.h:151
int _noisePol
Noise level interpolation flag.
Definition: PixelClusterFinder.h:210
std::vector< std::string > _copykey
Keywords of image fits header to copied to the table header.
Definition: PixelClusterFinder.h:154
bool _addNoise
Flag for writing noise information to output table.
Definition: PixelClusterFinder.h:228
int _backgroundSampling
Background sampling factor.
Definition: PixelClusterFinder.h:188
Namespace for Luiza framework.
Definition: CCCollection.h:6
bool _addShape
Flag for writing shape information to output table.
Definition: PixelClusterFinder.h:240
bool _permanentCollection
Flag the output collection to be permanent.
Definition: PixelClusterFinder.h:157
std::vector< std::string > _shapeColumns
Column names for shape information.
Definition: PixelClusterFinder.h:243
bool _moreNeighbours
When set to true: search neighbours in 5x5 square rather than 3x3.
Definition: PixelClusterFinder.h:167
string _noiseColumn
Column name for noise information.
Definition: PixelClusterFinder.h:231
double _seedThreshold
Threshold for the cluster seed signal (in units of noise level)
Definition: PixelClusterFinder.h:161