12#error This is a C++ include file and cannot be used from plain C
63 explicit Image(
const cpl_size size_x,
64 const cpl_size size_y,
98 explicit Image(
const Image &image, cpl_type type);
185 const cpl_size startx,
186 const cpl_size starty,
187 const cpl_size size_single_det_x,
188 const cpl_size size_single_det_y,
189 const cpl_size size_gap_x,
190 const cpl_size size_gap_y);
200 explicit Image(uintptr_t image_handle);
311 const cpl_size pos_x,
312 const cpl_size pos_y);
322 void Save(
const std::string filename,
323 cpl_type type=CPL_TYPE_FLOAT);
335 void Load(
const std::string filename,
336 const cpl_size plane=0,
337 const cpl_size extension=0,
338 cpl_type type=CPL_TYPE_UNSPECIFIED);
355 void Load(
const std::string filename,
360 const cpl_size plane=0,
361 const cpl_size extension=0,
362 cpl_type type=CPL_TYPE_UNSPECIFIED);
386 double Get(cpl_size xpos, cpl_size ypos)
const;
396 void Get(cpl_size xpos, cpl_size ypos,
double *value);
406 void Set(cpl_size xpos, cpl_size ypos,
double value);
465 void Power (
const double exponent);
495 void Normalise (cpl_norm norm=CPL_NORM_SCALE);
508 void Turn (
int rotation=-1);
521 void FFT (
Image *imaginary,
unsigned mode=CPL_FFT_DEFAULT);
538 double assign_lo_cut,
539 double assign_hi_cut);
552 void Rebin(cpl_size xstart,
571 const double max_pix);
590 const double sigma_x,
591 const double sigma_y);
This class handle the errors produced by the calling of image processing routines.
Definition error.hpp:34
bool Status() const
Get image status.
void FillNoise(const double min_pix, const double max_pix)
It generates a CPL image with uniform random noise distribution.
Definition image.cpp:294
void SetBadPixelMap(const Mask &mask)
Set the bad pixel map.
Definition image.cpp:695
cpl_type GetCplType() const
Get CPL image type.
cpl_image * m_cpl_image
Definition image.hpp:769
void Exponential(const double base)
Computes the image exponential.
Definition image.cpp:191
void Copy(const Image &, const cpl_size pos_x, const cpl_size pos_y)
Copy input image object in the coordinates specified.
Definition image.cpp:321
Image & operator*(const double)
Overload operator*.
Definition image.cpp:466
Image & operator=(const Image &)
Overload operator=.
Definition image.cpp:569
cpl_image * GetCplImage() const
Get CPL image.
Image & operator*=(const double)
Overload operator*=.
Definition image.cpp:547
bool IsImage() const
Check is CPL image is valid.
Image & operator+(const double)
Overload operator+.
Definition image.cpp:405
void FillGaussian(const double cen_x, const double cen_y, const double norm, const double sigma_x, const double sigma_y)
It generates an image from a 2d gaussian function.
Definition image.cpp:302
void Load(const std::string filename, const cpl_size plane=0, const cpl_size extension=0, cpl_type type=CPL_TYPE_UNSPECIFIED)
Load CPL image from a FITS file.
Definition image.cpp:351
cpl_size GetWidth() const
Get image width.
void Save(const std::string filename, cpl_type type=CPL_TYPE_FLOAT)
Save CPL image into a FITS file.
Definition image.cpp:335
void Turn(int rotation=-1)
Rotate CPL image.
Definition image.cpp:234
Image & operator/(const double)
Overload operator/.
Definition image.cpp:446
void SetCplImage(cpl_image *image)
Set CPL image.
void Unload()
Release CPL image.
Definition image.cpp:314
bool operator==(const Image &) const
Overload operator==.
Definition image.cpp:593
cpl_size CountBadPixelMap()
Count the bad pixels.
Definition image.cpp:711
virtual ~Image()
Class destructor.
Definition image.cpp:148
Image(const Mask &mask, const cpl_size llx, const cpl_size lly, const cpl_size urx, const cpl_size ury)
Copy constructor.
Image & operator/=(const double)
Overload operator/=.
Definition image.cpp:526
void Absolute()
Computes the image absolute.
Definition image.cpp:218
double Get(cpl_size xpos, cpl_size ypos) const
Get the value of a pixel at a given position.
Definition image.cpp:649
void Set(cpl_size xpos, cpl_size ypos, double value)
Set the value of a pixel at a given position.
Definition image.cpp:682
void Normalise(cpl_norm norm=CPL_NORM_SCALE)
Normalize the CPL image.
Definition image.cpp:226
cpl_type m_cpl_type
Definition image.hpp:768
void Logarithm(const double base)
Computes the image logarithm.
Definition image.cpp:200
void * GetImagePtr() const
Get pointer to image data.
void Rebin(cpl_size xstart, cpl_size ystart, cpl_size xstep, cpl_size ystep, Image &new_image)
Image rebin.
Definition image.cpp:276
void Power(const double exponent)
Computes the image power.
Definition image.cpp:209
void FFT(Image *imaginary, unsigned mode=CPL_FFT_DEFAULT)
Fast Fourier Transfor of a CPL image.
Definition image.cpp:243
cpl_size GetHeight() const
Get image height.
cpl_size GetSize() const
Get image size.
Image()
Class constructor.
Definition image.cpp:21
Image & operator-(const double)
Overload operator-.
Definition image.cpp:426
Image & operator+=(const double)
Overload operator+=.
Definition image.cpp:486
bool operator!=(const Image &) const
Overload operator!=.
Definition image.cpp:621
Image & operator-=(const double)
Overload operator-=.
Definition image.cpp:506
void Threshold(double lo_cut, double hi_cut, double assign_lo_cut, double assign_hi_cut)
Threshold a CPL image to a given interval.
Definition image.cpp:264
cpl_size GetTypeSize() const
Get size of the image built-in type.
Definition image.cpp:167
This class is C++ wrapper for a CPL mask object. It provides a simplified interface that allows to ca...
Definition mask.hpp:37
Array class source file.
Definition array.cpp:14