StarFit class that can fit Gauss model over star image
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#ifndef STARFIT_H
|
||||
#define STARFIT_H
|
||||
|
||||
#include "rawimage.h"
|
||||
#include <gsl/gsl_multifit_nlinear.h>
|
||||
|
||||
struct Star
|
||||
{
|
||||
double m_am;
|
||||
double m_x,m_y;
|
||||
double m_sx,m_sy;
|
||||
Star();
|
||||
};
|
||||
|
||||
class StarFit
|
||||
{
|
||||
int m_size;
|
||||
gsl_multifit_nlinear_fdf m_fdf;
|
||||
gsl_multifit_nlinear_parameters m_fdf_params;
|
||||
gsl_vector *m_vector;
|
||||
public:
|
||||
StarFit(int size);
|
||||
~StarFit();
|
||||
Star fitStar(RawImageAbs *image, const Peak &peak);
|
||||
Star fitStar(std::vector<double> data);
|
||||
//void fitStars(RawImageAbs *image, const std::vector<Peak> &peaks);
|
||||
};
|
||||
|
||||
#endif // STARFIT_H
|
||||
Reference in New Issue
Block a user