27 #ifndef GFITSIMAGEBYTE_HPP
28 #define GFITSIMAGEBYTE_HPP
47 GFitsImageByte(
const int& nx,
const int& ny,
const int& nz,
const int& nt,
const unsigned char*
pixels = NULL);
56 unsigned char&
operator()(
const int& ix,
const int& iy);
57 unsigned char&
operator()(
const int& ix,
const int& iy,
const int& iz);
58 unsigned char&
operator()(
const int& ix,
const int& iy,
const int& iz,
const int& it);
59 const unsigned char&
operator()(
const int& ix)
const;
60 const unsigned char&
operator()(
const int& ix,
const int& iy)
const;
61 const unsigned char&
operator()(
const int& ix,
const int& iy,
const int& iz)
const;
62 const unsigned char&
operator()(
const int& ix,
const int& iy,
const int& iz,
const int& it)
const;
68 unsigned char&
at(
const int& ix);
69 unsigned char&
at(
const int& ix,
const int& iy);
70 unsigned char&
at(
const int& ix,
const int& iy,
const int& iz);
71 unsigned char&
at(
const int& ix,
const int& iy,
const int& iz,
const int& it);
72 const unsigned char&
at(
const int& ix)
const;
73 const unsigned char&
at(
const int& ix,
const int& iy)
const;
74 const unsigned char&
at(
const int& ix,
const int& iy,
const int& iz)
const;
75 const unsigned char&
at(
const int& ix,
const int& iy,
const int& iz,
const int& it)
const;
76 double pixel(
const int& ix)
const;
77 double pixel(
const int& ix,
const int& iy)
const;
78 double pixel(
const int& ix,
const int& iy,
const int& iz)
const;
79 double pixel(
const int& ix,
const int& iy,
const int& iz,
const int& it)
const;
111 return (
"GFitsImageByte");
Abstract FITS image base class.
void alloc_data(void)
Allocate data.
void load_data(void) const
Load data.
std::string classname(void) const
Return class name.
void copy_members(const GFitsImageByte &image)
Copy class members.
void release_data(void)
Release data.
GFitsImageByte & operator=(const GFitsImageByte &image)
Assignment operator.
Abstract FITS image base class definition.
void clear(void)
Clear instance.
void construct_data(const unsigned char *pixels)
Construct data from array.
unsigned char * m_pixels
Pixels.
void init_members(void)
Initialise class members.
unsigned char * m_nulval
NULL value.
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.
int naxes(const int &axis) const
Return dimension of an image axis.
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.
unsigned char & operator()(const int &ix)
Image pixel access operator.
virtual ~GFitsImageByte(void)
Destructor.
void alloc_nulval(const void *value)
Allocates nul value.