10 #define ODP_RECIPE_HPP
14 #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: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:143
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 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
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 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 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 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
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 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 GetSlitPos(const odp::Image *image, const int max_width, SlitPos *slit)
Computes the slit data.
Definition: recipe.cpp:227
Recipe()
Class constructor.
Definition: recipe.cpp:17
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 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
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 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
~Recipe()
Class destructor.
Definition: recipe.cpp:23
Matrix class header file.
Definition: recipe.hpp:65
std::array< double, 2 > sigma_err
Definition: recipe.hpp:78
CenterGauss()
Definition: recipe.hpp:66
double intensity
Definition: recipe.hpp:79
std::array< double, 2 > center_err
Definition: recipe.hpp:74
std::string Center()
Definition: recipe.hpp:67
std::array< double, 2 > center
Definition: recipe.hpp:73
std::array< double, 2 > sigma
Definition: recipe.hpp:77
std::array< double, 2 > fwhm
Definition: recipe.hpp:75
std::array< double, 2 > fwhm_err
Definition: recipe.hpp:76
Definition: recipe.hpp:123
double center_x
Definition: recipe.hpp:124
double r_sigma
Definition: recipe.hpp:127
double radius
Definition: recipe.hpp:126
double center_y
Definition: recipe.hpp:125
Definition: recipe.hpp:40
double yposErr
Definition: recipe.hpp:44
double ypos
Definition: recipe.hpp:43
double fwhmXErr
Definition: recipe.hpp:46
double xposErr
Definition: recipe.hpp:42
double fwhmX
Definition: recipe.hpp:45
double peak
Definition: recipe.hpp:51
double bckgrd
Definition: recipe.hpp:53
double peakErr
Definition: recipe.hpp:52
double angleErr
Definition: recipe.hpp:50
double fwhmYErr
Definition: recipe.hpp:48
double fwhmY
Definition: recipe.hpp:47
double bckgrdErr
Definition: recipe.hpp:54
double xpos
Definition: recipe.hpp:41
double angle
Definition: recipe.hpp:49
Definition: recipe.hpp:110
SlitPos position
Definition: recipe.hpp:111
Size size
Definition: recipe.hpp:112
Definition: recipe.hpp:97
double length
Definition: recipe.hpp:98
double width
Definition: recipe.hpp:99
Definition: recipe.hpp:90
double angle
Definition: recipe.hpp:93
double center_x
Definition: recipe.hpp:91
double center_y
Definition: recipe.hpp:92