10 #define ODP_RECIPE_HPP
14 #error This is a C++ include file and cannot be used from plain C
25 #include <rad/logger.hpp>
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;
double intensity
Definition: recipe.hpp:80
double length
Definition: recipe.hpp:99
double angle
Definition: recipe.hpp:94
This class is C++ wrapper for a CPL image object. It provides a simplified interface that allows to c...
Definition: image.hpp:43
double width
Definition: recipe.hpp:100
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:439
double fwhmYErr
Definition: recipe.hpp:49
This class is C++ wrapper for a CPL and CLIPM recipes. It provides a simplified interface that allows...
Definition: recipe.hpp:143
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:260
Matrix class header file.
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:191
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:106
double r_sigma
Definition: recipe.hpp:128
double xpos
Definition: recipe.hpp:42
double center_x
Definition: recipe.hpp:92
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:550
Recipe()
Class constructor.
Definition: recipe.cpp:17
double peakErr
Definition: recipe.hpp:53
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:608
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 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:66
double bckgrdErr
Definition: recipe.hpp:55
Definition: recipe.hpp:40
Size size
Definition: recipe.hpp:113
std::array< double, 2 > center
Definition: recipe.hpp:74
double bckgrd
Definition: recipe.hpp:54
This class is C++ wrapper for a CPL matrix object. It provides a simplified interface that allows to ...
Definition: matrix.hpp:38
double center_x
Definition: recipe.hpp:125
Definition: recipe.hpp:123
This class handle the errors produced by the calling of image processing routines.
Definition: error.hpp:34
double angleErr
Definition: recipe.hpp:51
double xposErr
Definition: recipe.hpp:43
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:378
std::array< double, 2 > sigma
Definition: recipe.hpp:78
std::string Center()
Definition: recipe.hpp:68
void GetSlitPos(const odp::Image *image, const int max_width, SlitPos *slit)
Computes the slit data.
Definition: recipe.cpp:236
~Recipe()
Class destructor.
Definition: recipe.cpp:23
double center_y
Definition: recipe.hpp:126
double fwhmXErr
Definition: recipe.hpp:47
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:516
This class is C++ wrapper for a CPL array object. It provides a simplified interface to the INS softw...
Definition: array.hpp:39
Definition: recipe.hpp:97
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:573
CenterGauss()
Definition: recipe.hpp:67
SlitPos position
Definition: recipe.hpp:112
double yposErr
Definition: recipe.hpp:45
std::array< double, 2 > fwhm_err
Definition: recipe.hpp:77
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:478
double center_y
Definition: recipe.hpp:93
Definition: recipe.hpp:65
double angle
Definition: recipe.hpp:50
double radius
Definition: recipe.hpp:127
std::array< double, 2 > fwhm
Definition: recipe.hpp:76
double fwhmY
Definition: recipe.hpp:48
std::array< double, 2 > sigma_err
Definition: recipe.hpp:79
double ypos
Definition: recipe.hpp:44
Definition: recipe.hpp:110
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:306
Definition: recipe.hpp:90
double peak
Definition: recipe.hpp:52
double fwhmX
Definition: recipe.hpp:46
std::array< double, 2 > center_err
Definition: recipe.hpp:75