4 #ifndef GloriaFitsImage_h
5 #define GloriaFitsImage_h 1
21 #include "GloriaFitsHeader.h"
99 void WriteFitsFile(std::string FitsFileName,
int cBitPix=0,
int cBZero=0,
double cBScale=1.0);
158 inline int SizeX()
const {
return _sizeX; };
161 inline int SizeY()
const {
return _sizeY; };
199 void InitializeEmptyImage();
200 void AllocateMemory(
int NpixelX,
int NpixelY,
bool useFloatPixels=
true);
201 void ReleaseMemory();
214 double* _floatPixels;
int SizeY() const
Returns size of image in Y.
Definition: GloriaFitsImage.h:161
namespace for data storing and exchange formats
Definition: GloriaAstrometry.h:15
int SizeX() const
Returns size of image in X.
Definition: GloriaFitsImage.h:158
GloriaFitsImage & operator+=(const long shift)
Shift values of all pixels by given value.
Definition: GloriaFitsImage.cc:336
void ConvertToInt()
Convert image pixels to integer numbers.
Definition: GloriaFitsImage.cc:316
long * GetIntImageData() const
Returns pointer to the array of integer pixel values.
Definition: GloriaFitsImage.h:176
void ReadFitsFile(std::string FitsFileName)
Read fits image from file to the existing structure.
Definition: GloriaFitsImage.cc:195
int PixelBits() const
Returns number of bits per pixel.
Definition: GloriaFitsImage.h:167
void ConvertToFloat()
Convert image pixels to floating point numbers.
Definition: GloriaFitsImage.cc:297
void WriteFitsFile(std::string FitsFileName, int cBitPix=0, int cBZero=0, double cBScale=1.0)
Write image to fits file.
Definition: GloriaFitsImage.cc:571
GloriaFitsImage()
Default constructor.
Definition: GloriaFitsImage.cc:119
GloriaFitsImage & operator-=(const GloriaFitsImage &img)
Subtract an image.
Definition: GloriaFitsImage.cc:447
GloriaFitsImage & operator/=(const GloriaFitsImage &img)
Divide by image.
Definition: GloriaFitsImage.cc:523
Class for reading and processing fits images in Luiza.
Definition: GloriaFitsImage.h:43
~GloriaFitsImage()
Destructor.
Definition: GloriaFitsImage.cc:127
bool IsFloatImage() const
Returns true if image contains floating point pixel values (double)
Definition: GloriaFitsImage.h:173
GloriaFitsImage & operator*=(const long fac)
Scale values of all pixels by given value.
Definition: GloriaFitsImage.cc:372
double * GetFloatImageData() const
Returns pointer to the array of floating point pixel values.
Definition: GloriaFitsImage.h:179
bool IsIntImage() const
Returns true if image contains integer pixel values (long)
Definition: GloriaFitsImage.h:170