74 const unsigned short* pixels) :
98 const unsigned short* pixels) :
123 const unsigned short* pixels) :
149 const int& nz,
const int& nt,
150 const unsigned short* pixels) :
174 const unsigned short* pixels) :
267 if (
this != &image) {
367 const int& iz,
const int& it)
459 const int& iz,
const int& it)
const
656 const int& iz,
const int& it)
const
677 return (
double(this->
at(ix)));
693 return (
double(this->
at(ix,iy)));
710 return (
double(this->
at(ix,iy,iz)));
729 return (
double(this->
at(ix,iy,iz,it)));
789 bool not_loaded = (image.
m_pixels == NULL);
806 #if defined(G_SMALL_MEMORY)
904 if (pixels == NULL) {
955 *
m_nulval = *((
unsigned short*)value);
void init_data(void)
Initialise data.
Abstract FITS image base class.
int offset(const int &ix) const
Return pixel offset.
void release_data(void)
Release data.
unsigned short & at(const int &ix)
Image pixel access operator.
double pixel(const int &ix) const
Return value of image pixel.
#define G_BITPIX
Defines the number of bits per pixel.
Unsigned short FITS image class definition.
void construct_data(const unsigned short *pixels)
Construct data from array.
void alloc_nulval(const void *value)
Allocates nul value.
GFitsImageUShort * clone(void) const
Clone FITS image.
void clear(void)
Clear instance.
int m_num_pixels
Number of image pixels.
unsigned short * m_nulval
NULL value.
long * m_naxes
Number of pixels in each dimension.
CFITSIO interface header.
void alloc_data(void)
Allocate data.
unsigned short * m_pixels
Pixels.
void copy_members(const GFitsImageUShort &image)
Copy class members.
virtual double pixel(const int &ix) const =0
unsigned short & operator()(const int &ix)
Image pixel access operator.
void init_members(void)
Initialise class members.
int type(void) const
Return image type.
void free_members(void)
Delete class members.
void fetch_data(void)
Fetch image pixels.
void init_members(void)
Initialise class members.
void load_data(void) const
Load data.
Unsigned short FITS image class.
GFitsImageUShort(void)
Void constructor.
void init_members(void)
Initialise class members.
GFitsImageUShort & operator=(const GFitsImageUShort &image)
Assignment operator.
virtual ~GFitsImageUShort(void)
Destructor.
void * pixels(void)
Return pointer to image pixel.
int m_bitpix
Number of Bits/pixel.
Exception handler interface definition.
GFitsImage & operator=(const GFitsImage &image)
Assignment operator.
void free_members(void)
Delete class members.
GFitsHeaderCard & card(const int &cardno)
Return header card.
void free_members(void)
Delete class members.