geirs2Panic  Richard J. Mathar
Fits header keyword batch editor
 All Classes Files Functions Variables Macros Pages
PixImage.h
Go to the documentation of this file.
1 #ifndef PIXIMAGE_H
2 #define PIXIMAGE_H
3 /*
4 * "$Header:$"
5 *
6 */
7 
8 #include <CCfits/CCfits>
9 
10 #include "RotTrans2D.h"
11 #include "Bbox2D.h"
12 #include "Square2D.h"
13 
14 using namespace std ;
15 using namespace CCfits ;
16 
22 class PixImage {
23 
24 public:
27  //double *vals ;
28  valarray<double> vals ;
29 
32  int rows ;
33 
36  int cols ;
37 
38  PixImage(const int ncols, const int nrows) ;
39  PixImage() ;
40  PixImage( FITS & fit, int slic=0) ;
41  ~PixImage() ;
42 
43  operator Bbox2D() const ;
44  FITS * toFits(const char *foutname) const ;
45 
46 #if 0
47  PixImage apply(const RotTrans2D & rt) const ;
48 #else
49  PixImage * apply(const RotTrans2D & rt) const ;
50 #endif
51 
52  double at(const int row, const int col) const ;
53 
54  int idx(const int row, const int col) const ;
55 
56  Square2D hull(const RotTrans2D & rt, const int row, const int col, int idxReg[2][2], const Bbox2D & bbrot) const ;
57 
58 
59 
60 protected:
61 
62 private:
63 
64 } ; /* PixImage */
65 
66 #endif /* PIXIMAGE_H*/
67 
A rotation followed by a translation.
Definition: RotTrans2D.h:34
A rectangular 2-dimensional array of pixels with individual values.
Definition: PixImage.h:22
int cols
Number of columns.
Definition: PixImage.h:36
valarray< double > vals
The values (intensities) within the pixels.
Definition: PixImage.h:28
A 2-dimensional rectangular boundary box parallel to the two Cartesian axes.
Definition: Bbox2D.h:17
int rows
Number of rows.
Definition: PixImage.h:32
A square represented by the four vertices of the corners.
Definition: Square2D.h:23