27 #ifndef GFITSIMAGEUSHORT_HPP
28 #define GFITSIMAGEUSHORT_HPP
47 GFitsImageUShort(
const int& nx,
const int& ny,
const int& nz,
const int& nt,
const unsigned short*
pixels = NULL);
56 unsigned short&
operator()(
const int& ix,
const int& iy);
57 unsigned short&
operator()(
const int& ix,
const int& iy,
const int& iz);
58 unsigned short&
operator()(
const int& ix,
const int& iy,
const int& iz,
const int& it);
59 const unsigned short&
operator()(
const int& ix)
const;
60 const unsigned short&
operator()(
const int& ix,
const int& iy)
const;
61 const unsigned short&
operator()(
const int& ix,
const int& iy,
const int& iz)
const;
62 const unsigned short&
operator()(
const int& ix,
const int& iy,
const int& iz,
const int& it)
const;
68 unsigned short&
at(
const int& ix);
69 unsigned short&
at(
const int& ix,
const int& iy);
70 unsigned short&
at(
const int& ix,
const int& iy,
const int& iz);
71 unsigned short&
at(
const int& ix,
const int& iy,
const int& iz,
const int& it);
72 const unsigned short&
at(
const int& ix)
const;
73 const unsigned short&
at(
const int& ix,
const int& iy)
const;
74 const unsigned short&
at(
const int& ix,
const int& iy,
const int& iz)
const;
75 const unsigned short&
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 (
"GFitsImageUShort");
void init_data(void)
Initialise data.
Abstract FITS image base class.
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.
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.
Abstract FITS image base class definition.
unsigned short * m_nulval
NULL value.
void alloc_data(void)
Allocate data.
unsigned short * m_pixels
Pixels.
void copy_members(const GFitsImageUShort &image)
Copy class members.
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 load_data(void) const
Load data.
Unsigned short FITS image class.
GFitsImageUShort(void)
Void constructor.
int naxes(const int &axis) const
Return dimension of an image axis.
GFitsImageUShort & operator=(const GFitsImageUShort &image)
Assignment operator.
virtual ~GFitsImageUShort(void)
Destructor.
void * pixels(void)
Return pointer to image pixel.
std::string classname(void) const
Return class name.