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)
903 if (pixels == NULL) {
954 *
m_nulval = *((
unsigned char*)value);
Abstract FITS image base class.
int offset(const int &ix) const
Return pixel offset.
void alloc_data(void)
Allocate data.
void load_data(void) const
Load data.
void copy_members(const GFitsImageByte &image)
Copy class members.
void release_data(void)
Release data.
GFitsImageByte & operator=(const GFitsImageByte &image)
Assignment operator.
void clear(void)
Clear instance.
int m_num_pixels
Number of image pixels.
void construct_data(const unsigned char *pixels)
Construct data from array.
long * m_naxes
Number of pixels in each dimension.
unsigned char * m_pixels
Pixels.
CFITSIO interface header.
void init_members(void)
Initialise class members.
unsigned char * m_nulval
NULL value.
virtual double pixel(const int &ix) const =0
#define G_BITPIX
Defines the number of bits per pixel.
void fetch_data(void)
Fetch image pixels.
void init_members(void)
Initialise class members.
double pixel(const int &ix) const
Return value of image pixel.
void * pixels(void)
Return pointer to image pixel.
GFitsImageByte(void)
Void constructor.
void free_members(void)
Delete class members.
void init_members(void)
Initialise class members.
FITS Byte image class definition.
unsigned char & at(const int &ix)
Image pixel access operator.
int type(void) const
Return image type.
GFitsImageByte * clone(void) const
Clone FITS image.
void init_data(void)
Initialise data.
int m_bitpix
Number of Bits/pixel.
unsigned char & operator()(const int &ix)
Image pixel access operator.
Exception handler interface definition.
virtual ~GFitsImageByte(void)
Destructor.
GFitsImage & operator=(const GFitsImage &image)
Assignment operator.
void alloc_nulval(const void *value)
Allocates nul value.
void free_members(void)
Delete class members.
GFitsHeaderCard & card(const int &cardno)
Return header card.
void free_members(void)
Delete class members.