Skip to content

Commit fc352c4

Browse files
authored
Merge pull request #227 from atsju/JST/moveZernike
move zapm.cpp to dedicated folder as it's not our code
2 parents 3f8687d + bf6a323 commit fc352c4

12 files changed

+57
-424
lines changed

DFTFringe.pro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,11 @@ RESOURCES += DFTResources.qrc
143143

144144
TRANSLATIONS += dftfringe_fr.ts
145145

146-
INCLUDEPATH += ./bezier ./SingleApplication
146+
INCLUDEPATH += ./bezier ./SingleApplication ./zernike
147147

148148
SOURCES += SingleApplication/singleapplication.cpp \
149149
SingleApplication/singleapplication_p.cpp \
150+
zernike/zapm.cpp \
150151
annulushelpdlg.cpp \
151152
arbitrarywavefronthelp.cpp \
152153
arbitrarywavwidget.cpp \
@@ -260,7 +261,6 @@ SOURCES += SingleApplication/singleapplication.cpp \
260261
wavefrontloader.cpp \
261262
wftexaminer.cpp \
262263
wftstats.cpp \
263-
zapm.cpp \
264264
zernikedlg.cpp \
265265
zernikeeditdlg.cpp \
266266
zernikepolar.cpp \
@@ -271,6 +271,7 @@ SOURCES += SingleApplication/singleapplication.cpp \
271271
HEADERS += bezier/bezier.h \
272272
SingleApplication/singleapplication_p.h \
273273
SingleApplication/singleapplication.h \
274+
zernike/zapm_interface.h \
274275
annulushelpdlg.h \
275276
arbitrarywavefronthelp.h \
276277
astigpolargraph.h \

DFTFringe_Dale.pro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ SOURCES += main.cpp \
5858
dftcolormap.cpp \
5959
surfaceanalysistools.cpp \
6060
surfacemanager.cpp \
61-
zapm.cpp \
6261
zernikedlg.cpp \
6362
zernikepolar.cpp \
6463
zernikeprocess.cpp \
@@ -146,6 +145,7 @@ SOURCES += main.cpp \
146145
psitiltoptions.cpp \
147146
contourrulerparams.cpp \
148147
zernikesmoothingdlg.cpp \
148+
zernike/zapm.cpp \
149149
SingleApplication/singleapplication.cpp \
150150
SingleApplication/singleapplication_p.cpp
151151

@@ -272,10 +272,11 @@ HEADERS += mainwindow.h \
272272
contourrulerparams.h \
273273
zernikesmoothingdlg.h \
274274
bezier/bezier.h \
275+
zernike/zapm_interface.h \
275276
SingleApplication/singleapplication.h \
276277
SingleApplication/singleapplication_p.h
277278

278-
INCLUDEPATH += ./bezier ./SingleApplication
279+
INCLUDEPATH += ./bezier ./SingleApplication ./zernike
279280

280281
FORMS += mainwindow.ui \
281282
annulushelpdlg.ui \

DFTFringe_QT5.pro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,11 @@ RESOURCES += DFTResources.qrc
142142

143143
TRANSLATIONS += dftfringe_fr.ts
144144

145-
INCLUDEPATH += ./bezier ./SingleApplication
145+
INCLUDEPATH += ./bezier ./SingleApplication ./zernike
146146

147147
SOURCES += SingleApplication/singleapplication.cpp \
148148
SingleApplication/singleapplication_p.cpp \
149+
zernike/zapm.cpp \
149150
annulushelpdlg.cpp \
150151
arbitrarywavefronthelp.cpp \
151152
arbitrarywavwidget.cpp \
@@ -259,7 +260,6 @@ SOURCES += SingleApplication/singleapplication.cpp \
259260
wavefrontloader.cpp \
260261
wftexaminer.cpp \
261262
wftstats.cpp \
262-
zapm.cpp \
263263
zernikedlg.cpp \
264264
zernikeeditdlg.cpp \
265265
zernikepolar.cpp \
@@ -270,6 +270,7 @@ SOURCES += SingleApplication/singleapplication.cpp \
270270
HEADERS += bezier/bezier.h \
271271
SingleApplication/singleapplication_p.h \
272272
SingleApplication/singleapplication.h \
273+
zernike/zapm_interface.h \
273274
annulushelpdlg.h \
274275
arbitrarywavefronthelp.h \
275276
astigpolargraph.h \

dftarea.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,9 @@ cv::Mat atan2Mat(cv::Mat y, cv::Mat x){
12711271
}
12721272
#include <armadillo>
12731273

1274-
1274+
// zpmCxx commented out, not used, might be needed in doPSIstep4
1275+
// I (atsju) recommend deleting this part and add original or modified file from Mike when/if needed
1276+
/*
12751277
arma::mat zpmCxx(double rho, double theta, int maxorder) {
12761278
12771279
int m, n, n0, mmax = maxorder/2;
@@ -1345,6 +1347,7 @@ arma::mat zpmCxx(double rho, double theta, int maxorder) {
13451347
}
13461348
return zm;
13471349
}
1350+
*/
13481351

13491352
#include "outlinedialog.h"
13501353
void DFTArea::doPSIstep4(cv::Mat images, QVector<double> phases){

mainwindow.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
#include "colorchannel.h"
5050
#include "opencv2/opencv.hpp"
5151
#include <QUrl>
52+
#include "zapm_interface.h"
53+
#include "zernikeprocess.h"
5254

5355
using namespace QtConcurrent;
5456
std::vector<wavefront*> g_wavefronts;
@@ -1845,11 +1847,7 @@ void MainWindow::on_actionCreate_Movie_of_wavefronts_triggered()
18451847
this->setCursor(Qt::ArrowCursor);
18461848
QApplication::restoreOverrideCursor();
18471849
}
1848-
arma::mat zapm(const arma::vec& rho, const arma::vec& theta,
1849-
const double& eps, const int& maxorder=12) ;
1850-
#include "armadillo"
1851-
void dumpArma(arma::mat mm, QString title = "", QVector<QString> colHeading = QVector<QString>(0),
1852-
QVector<QString> RowLable = QVector<QString>(0));
1850+
18531851
void MainWindow::on_actionDebugStuff_triggered()
18541852
{
18551853
zernikeProcess *zp = zernikeProcess::get_Instance();

mikespsiinterface.h_

Lines changed: 0 additions & 10 deletions
This file was deleted.

mikespsirinterface.cpp_

Lines changed: 0 additions & 260 deletions
This file was deleted.

0 commit comments

Comments
 (0)