Luiza  v03-01
SimpleImageRotator.h
1 // -*- mode: c++; mode: auto-fill; mode: flyspell-prog; -*-
2 
3 #ifndef SimpleImageRotator_h
4 #define SimpleImageRotator_h 1
5 
6 #include "luiza/Processor.h"
7 
8 using namespace gloria;
9 
10 namespace luiza {
11 
12 
14 
58  class SimpleImageRotator : public Processor {
59 
60  public:
61 
62  virtual Processor* newProcessor() { return new SimpleImageRotator ; }
63 
64 
66 
70  virtual void init() ;
71 
74  virtual void processData( GloriaDataContainer* data ) ;
75 
76 
77  virtual void check( GloriaDataContainer* data ) ;
78 
79 
82  virtual void end() ;
83 
84 
85  protected:
86 
88  void printEndMessage() const ;
89 
92 
95 
98 
100  std::vector<int > _WindowXY;
101 
104 
105  std::vector<int > _rebinXY;
106 
109 
112 
113  int _nLoops ;
114  int _nInputImages ;
115  int _nOutputImages ;
116 
117  GloriaFitsImage *_origImage;
118  GloriaFitsImage *_rotImage;
119 
120 
121  } ;
122 
123 } // end namespace luiza
124 #endif
125 
126 
127 
namespace for data storing and exchange formats
Definition: GloriaAstrometry.h:15
Class for storing all data processed in Luiza.
Definition: GloriaDataContainer.h:82
Base class for Luiza processors.
Definition: Processor.h:55
string _inputCollectionName
Name of the image collection containing images to be added.
Definition: SimpleImageRotator.h:91
int _rotDegree
Allow setting rotation (in degree): 90 (default), 180, 270 clockwise.
Definition: SimpleImageRotator.h:111
bool _permanentCollection
Flag the output collection to be permanent.
Definition: SimpleImageRotator.h:97
virtual Processor * newProcessor()
Return a new instance of the processor.
Definition: SimpleImageRotator.h:62
string _outputCollectionName
Name of the output image collection.
Definition: SimpleImageRotator.h:94
Namespace for Luiza framework.
Definition: CCCollection.h:6
int _flipAxis
Flip the image along given axis.
Definition: SimpleImageRotator.h:108
Class for reading and processing fits images in Luiza.
Definition: GloriaFitsImage.h:43
std::vector< int > _rebinXY
Definition: SimpleImageRotator.h:105
std::vector< int > _WindowXY
Vector for optional crop region definition.
Definition: SimpleImageRotator.h:100
Simple processor to rotate images in the input collection.
Definition: SimpleImageRotator.h:58