13#error This is a C++ include file and cannot be used from plain C
68 std::ostringstream strs;
75 std::array<double, 2>
fwhm;
185 const int robustness=0);
257 unsigned int areasize,
266 const int robustness);
286 const cpl_size startX,
287 const cpl_size startY,
431 cpl_type cpltype=CPL_TYPE_DOUBLE);
586 static bool m_random_seed;
This class is C++ wrapper for a CPL array object. It provides a simplified interface to the INS softw...
Definition array.hpp:39
This class handle the errors produced by the calling of image processing routines.
Definition error.hpp:34
This class is C++ wrapper for a CPL image object. It provides a simplified interface that allows to c...
Definition image.hpp:41
This class is C++ wrapper for a CPL matrix object. It provides a simplified interface that allows to ...
Definition matrix.hpp:38
void GetBarycentre(const odp::Image *img, const cpl_size llx, const cpl_size lly, const cpl_size urx, const cpl_size ury, double bckg_level, double cut_level, double centre[2], double *weight, cpl_size *nused)
Compute the barycentre of an object.
Definition recipe.cpp:546
void GetCenterGauss(const odp::Image *image, cpl_size llx, cpl_size lly, cpl_size urx, cpl_size ury, CenterGauss *cen_gauss, const int robustness=0)
Compute the center gauss of an image subwindow.
Definition recipe.cpp:26
void GetIqe(const odp::Image *image, const cpl_size startX, const cpl_size startY, const cpl_size endX, const cpl_size endY, Iqe *iqe)
Compute image quality estimator over an image subwindow.
Definition recipe.cpp:182
void AlignPoints(const odp::Matrix *matrix1, const odp::Matrix *matrix2, unsigned int mode, odp::Matrix *trans, odp::Matrix *shift, odp::Matrix *rot)
Linear transformation between two set of points.
Definition recipe.cpp:247
void EstimateBackground(const odp::Image *img, const cpl_size llx, const cpl_size lly, const cpl_size urx, const cpl_size ury, double *sigma, cpl_size *nused, double *background)
Estimate the background in an image region.
Definition recipe.cpp:493
void GetCenterMoment(const odp::Image *image, cpl_size llx, cpl_size lly, cpl_size urx, cpl_size ury, bool wdw_enlarge, double gain, CenterGauss *cenMoment)
Compute the center moment of an image subwindow.
Definition recipe.cpp:62
void EstimateFwhm(const odp::Image *img, double peak_pos1, double peak_pos2, double bckg_level, double *fwhm)
Estimate the FWHM of a round object.
Definition recipe.cpp:525
void GetCircularAperture(const odp::Image *image, const cpl_size llx, const cpl_size lly, const cpl_size urx, const cpl_size ury, CircularAperture *aperture, odp::Matrix *stat)
Wrapper to the CLIPM circular characterization.
Definition recipe.cpp:457
void AlignCorrelate(const odp::Image *img1, const odp::Image *img2, const odp::Matrix *ref, unsigned int wsize, double maxd, unsigned int mode, odp::Matrix *trans, odp::Matrix *shift, odp::Matrix *pixels, odp::Matrix *locs, odp::Matrix *uncer, odp::Array *err_codes)
Crosscorrelation of two images.
Definition recipe.cpp:291
Recipe()
Class constructor.
Definition recipe.cpp:15
void GetMultiCenterGauss(const odp::Image *image, const odp::Matrix *ref, unsigned int areasize, odp::Matrix *center, odp::Matrix *center_err, odp::Matrix *sigma, odp::Matrix *sigma_err, odp::Matrix *fwhm, odp::Matrix *fwhm_err, odp::Matrix *intensities, odp::Array *err_codes, const int robustness)
Compute multiple center gauss of an image.
Definition recipe.cpp:100
void GetSlitPos(const odp::Image *image, const int max_width, SlitPos *slit)
Computes the slit data.
Definition recipe.cpp:225
~Recipe()
Class destructor.
Definition recipe.cpp:21
std::vector< double > GetRngPoisson2d(int llx, int lly, int urx, int ury, int homogenity, int npairs)
Generates a set of random numbers within a box.
Definition recipe.cpp:361
void DetectCircularApertures(const odp::Image *img, const cpl_size llx, const cpl_size lly, const cpl_size urx, const cpl_size ury, odp::Matrix *stat)
Wrapper to the CLIPM detect circular aperture.
Definition recipe.cpp:579
void GetRectangularAperture(const odp::Image *image, const cpl_size llx, const cpl_size lly, const cpl_size urx, const cpl_size ury, RectAperture *aperture, odp::Matrix *stat)
Wrapper to the CLIPM rectangular characterization.
Definition recipe.cpp:420
Array class source file.
Definition array.cpp:14
std::array< double, 2 > fwhm
Definition recipe.hpp:75
double intensity
Definition recipe.hpp:79
std::array< double, 2 > center_err
Definition recipe.hpp:74
std::array< double, 2 > fwhm_err
Definition recipe.hpp:76
std::array< double, 2 > center
Definition recipe.hpp:73
CenterGauss()
Definition recipe.hpp:66
std::string Center()
Definition recipe.hpp:67
std::array< double, 2 > sigma
Definition recipe.hpp:77
std::array< double, 2 > sigma_err
Definition recipe.hpp:78
Definition recipe.hpp:123
double center_y
Definition recipe.hpp:125
double r_sigma
Definition recipe.hpp:127
double center_x
Definition recipe.hpp:124
double radius
Definition recipe.hpp:126
double angleErr
Definition recipe.hpp:50
double yposErr
Definition recipe.hpp:44
double fwhmXErr
Definition recipe.hpp:46
double xpos
Definition recipe.hpp:41
double ypos
Definition recipe.hpp:43
double peakErr
Definition recipe.hpp:52
double fwhmY
Definition recipe.hpp:47
double bckgrd
Definition recipe.hpp:53
double fwhmX
Definition recipe.hpp:45
double bckgrdErr
Definition recipe.hpp:54
double peak
Definition recipe.hpp:51
double fwhmYErr
Definition recipe.hpp:48
double angle
Definition recipe.hpp:49
double xposErr
Definition recipe.hpp:42
Definition recipe.hpp:110
SlitPos position
Definition recipe.hpp:111
Size size
Definition recipe.hpp:112
double length
Definition recipe.hpp:98
double width
Definition recipe.hpp:99
double center_x
Definition recipe.hpp:91
double angle
Definition recipe.hpp:93
double center_y
Definition recipe.hpp:92