97 const unsigned char* pixels) :
122 const unsigned char* pixels) :
148 const int& nt,
const unsigned char* pixels) :
172 const unsigned char* pixels) :
266 if (
this != &image) {
366 const int& iz,
const int& it)
458 const int& iz,
const int& it)
const
655 const int& iz,
const int& it)
const
676 return (
double(this->
at(ix)));
692 return (
double(this->
at(ix,iy)));
709 return (
double(this->
at(ix,iy,iz)));
728 return (
double(this->
at(ix,iy,iz,it)));
788 bool not_loaded = (image.
m_pixels == NULL);
805 #if defined(G_SMALL_MEMORY)
954 *
m_nulval = *((
unsigned char*)value);
Exception handler interface definition.
CFITSIO interface header.
#define G_BITPIX
Defines the number of bits per pixel.
FITS Byte image class definition.
void free_members(void)
Delete class members.
void init_members(void)
Initialise class members.
GFitsHeaderCard & card(const int &cardno)
Return header card.
void free_members(void)
Delete class members.
void * pixels(void)
Return pointer to image pixel.
double pixel(const int &ix) const
Return value of image pixel.
virtual ~GFitsImageByte(void)
Destructor.
void release_data(void)
Release data.
int type(void) const
Return image type.
unsigned char & operator()(const int &ix)
Image pixel access operator.
void load_data(void) const
Load data.
unsigned char * m_nulval
NULL value.
void clear(void)
Clear instance.
void alloc_data(void)
Allocate data.
void init_data(void)
Initialise data.
unsigned char & at(const int &ix)
Image pixel access operator.
GFitsImageByte(void)
Void constructor.
void copy_members(const GFitsImageByte &image)
Copy class members.
GFitsImageByte * clone(void) const
Clone FITS image.
void init_members(void)
Initialise class members.
GFitsImageByte & operator=(const GFitsImageByte &image)
Assignment operator.
void alloc_nulval(const void *value)
Allocates nul value.
unsigned char * m_pixels
Pixels.
void construct_data(const unsigned char *pixels)
Construct data from array.
Abstract FITS image base class.
virtual double pixel(const int &ix) const =0
int offset(const int &ix) const
Return pixel offset.
void free_members(void)
Delete class members.
void fetch_data(void)
Fetch image pixels.
long * m_naxes
Number of pixels in each dimension.
int m_bitpix
Number of Bits/pixel.
int m_num_pixels
Number of image pixels.
GFitsImage & operator=(const GFitsImage &image)
Assignment operator.
void init_members(void)
Initialise class members.