14#error This is a C++ include file and cannot be used from plain C
69 std::ostringstream strs;
76 std::array<double, 2>
fwhm;
186 const int robustness=0);
258 unsigned int areasize,
267 const int robustness);
287 const cpl_size startX,
288 const cpl_size startY,
432 cpl_type cpltype=CPL_TYPE_DOUBLE);
587 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:40
This class handle the errors produced by the calling of image processing routines.
Definition error.hpp:35
This class is C++ wrapper for a CPL image object. It provides a simplified interface that allows to c...
Definition image.hpp:44
This class is C++ wrapper for a CPL matrix object. It provides a simplified interface that allows to ...
Definition matrix.hpp:39
This class is C++ wrapper for a CPL and CLIPM recipes. It provides a simplified interface that allows...
Definition recipe.hpp:144
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:548
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:28
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:184
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:249
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:495
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:64
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:527
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:459
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:293
Recipe()
Class constructor.
Definition recipe.cpp:17
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:102
void GetSlitPos(const odp::Image *image, const int max_width, SlitPos *slit)
Computes the slit data.
Definition recipe.cpp:227
~Recipe()
Class destructor.
Definition recipe.cpp:23
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:363
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:581
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:422
Matrix class header file.
std::array< double, 2 > fwhm
Definition recipe.hpp:76
double intensity
Definition recipe.hpp:80
std::array< double, 2 > center_err
Definition recipe.hpp:75
std::array< double, 2 > fwhm_err
Definition recipe.hpp:77
std::array< double, 2 > center
Definition recipe.hpp:74
CenterGauss()
Definition recipe.hpp:67
std::string Center()
Definition recipe.hpp:68
std::array< double, 2 > sigma
Definition recipe.hpp:78
std::array< double, 2 > sigma_err
Definition recipe.hpp:79
Definition recipe.hpp:124
double center_y
Definition recipe.hpp:126
double r_sigma
Definition recipe.hpp:128
double center_x
Definition recipe.hpp:125
double radius
Definition recipe.hpp:127
double angleErr
Definition recipe.hpp:51
double yposErr
Definition recipe.hpp:45
double fwhmXErr
Definition recipe.hpp:47
double xpos
Definition recipe.hpp:42
double ypos
Definition recipe.hpp:44
double peakErr
Definition recipe.hpp:53
double fwhmY
Definition recipe.hpp:48
double bckgrd
Definition recipe.hpp:54
double fwhmX
Definition recipe.hpp:46
double bckgrdErr
Definition recipe.hpp:55
double peak
Definition recipe.hpp:52
double fwhmYErr
Definition recipe.hpp:49
double angle
Definition recipe.hpp:50
double xposErr
Definition recipe.hpp:43
Definition recipe.hpp:111
SlitPos position
Definition recipe.hpp:112
Size size
Definition recipe.hpp:113
double length
Definition recipe.hpp:99
double width
Definition recipe.hpp:100
double center_x
Definition recipe.hpp:92
double angle
Definition recipe.hpp:94
double center_y
Definition recipe.hpp:93