diff --git a/DFTFringe.pro b/DFTFringe.pro index 07b86821..2d39bdc9 100644 --- a/DFTFringe.pro +++ b/DFTFringe.pro @@ -281,9 +281,8 @@ HEADERS += bezier/bezier.h \ cameracalibwizard.h \ camwizardpage1.h \ ccswappeddlg.h \ - circle.h \ + circlefit.h \ circleoutline.h \ - circleutils.h \ cnpy/cnpy.h \ colorchannel.h \ colorchanneldisplay.h \ diff --git a/DFTFringe_Dale.pro b/DFTFringe_Dale.pro index 082bf3b9..56d33662 100644 --- a/DFTFringe_Dale.pro +++ b/DFTFringe_Dale.pro @@ -240,8 +240,7 @@ HEADERS += mainwindow.h \ myutils.h \ pixelstats.h \ utils.h \ - circleutils.h \ - circle.h \ + circlefit.h \ astigstatsdlg.h \ averagewavefrontfilesdlg.h \ astigscatterplot.h \ diff --git a/DFTFringe_QT5.pro b/DFTFringe_QT5.pro index f14f748c..50499b02 100644 --- a/DFTFringe_QT5.pro +++ b/DFTFringe_QT5.pro @@ -285,9 +285,8 @@ HEADERS += bezier/bezier.h \ cameracalibwizard.h \ camwizardpage1.h \ ccswappeddlg.h \ - circle.h \ + circlefit.h \ circleoutline.h \ - circleutils.h \ cnpy/cnpy.h \ colorchannel.h \ colorchanneldisplay.h \ diff --git a/astigstatsdlg.cpp b/astigstatsdlg.cpp index 9992af56..2f7949fb 100644 --- a/astigstatsdlg.cpp +++ b/astigstatsdlg.cpp @@ -1,7 +1,6 @@ #include "astigstatsdlg.h" #include "ui_astigstatsdlg.h" -#include "circleutils.h" -#include "circle.h" +#include "circlefit.h" #include #include #include diff --git a/circle.h b/circle.h deleted file mode 100644 index d529dcf3..00000000 --- a/circle.h +++ /dev/null @@ -1,36 +0,0 @@ -#ifndef CIRCLE_H -#define CIRCLE_H -// -// circle.h -// -/************************************************************************ - DECLARATION OF THE CLASS CIRCLE -************************************************************************/ -// Class for Circle -// A circle has 7 fields: -// a, b, r (of type reals), the circle parameters -// s (of type reals), the estimate of sigma (standard deviation) -// g (of type reals), the norm of the gradient of the objective function -// i and j (of type int), the iteration counters (outer and inner, respectively) - -class Circle -{ -public: - - // The fields of a Circle - double a, b, r, s, g, Gx, Gy; - int i, j; - - // constructors - Circle(); - Circle(double aa, double bb, double rr); - - // routines - void print(void); - - // no destructor we didn't allocate memory by hand. -}; - - - -#endif // CIRCLE_H diff --git a/circlefit.cpp b/circlefit.cpp index be3632ca..d66eac1c 100644 --- a/circlefit.cpp +++ b/circlefit.cpp @@ -1,5 +1,4 @@ -#include "circleutils.h" -#include "circle.h" +#include "circlefit.h" /************************************************************************ diff --git a/circleutils.h b/circlefit.h similarity index 54% rename from circleutils.h rename to circlefit.h index f416203f..3f1ac5c7 100644 --- a/circleutils.h +++ b/circlefit.h @@ -1,11 +1,39 @@ -#ifndef CIRCLEUTILS_H -#define CIRCLEUTILS_H +#ifndef CIRCLEFIT_H +#define CIRCLEFIT_H #include #include #include #include #include -#include "circle.h" + +/************************************************************************ + DECLARATION OF THE CLASS CIRCLE +************************************************************************/ +// Class for Circle +// A circle has 7 fields: +// a, b, r (of type reals), the circle parameters +// s (of type reals), the estimate of sigma (standard deviation) +// g (of type reals), the norm of the gradient of the objective function +// i and j (of type int), the iteration counters (outer and inner, respectively) + +class Circle +{ +public: + + // The fields of a Circle + double a, b, r, s, g, Gx, Gy; + int i, j; + + // constructors + Circle(); + Circle(double aa, double bb, double rr); + + // routines + void print(void); + + // no destructor we didn't allocate memory by hand. +}; + class CircleData { @@ -47,4 +75,5 @@ Circle CircleFitByKasa (CircleData& data); Circle CircleFitByPratt (CircleData& data); Circle CircleFitByTaubin (CircleData& data); int CircleFitByLevenbergMarquardtFull (const CircleData& data, const Circle& circleIni, double LambdaIni, Circle& circle); -#endif // CIRCLEUTILS_H + +#endif // CIRCLEFIT_H diff --git a/surfacemanager.cpp b/surfacemanager.cpp index bad80138..b2859326 100644 --- a/surfacemanager.cpp +++ b/surfacemanager.cpp @@ -63,8 +63,7 @@ #include "foucaultview.h" #include "myutils.h" #include "contourview.h" -#include "circleutils.h" -#include "circle.h" +#include "circlefit.h" #include "utils.h" #include "wavefrontfilterdlg.h" #include "reportdlg.h"