80 lines
2.2 KiB
C++
80 lines
2.2 KiB
C++
|
|
|||
|
#define __TEST_IMAGEPROCESS
|
|||
|
//#define __TESTMATHGL
|
|||
|
//#define __TEST_FARFIELDFILEREADPROCESS
|
|||
|
|
|||
|
#ifdef __TESTMATHGL
|
|||
|
#include <mgl2/mgl.h>
|
|||
|
int main()
|
|||
|
{
|
|||
|
mglGraph gr;
|
|||
|
gr.FPlot("sin(pi*x)");
|
|||
|
gr.WriteFrame("D:\\codestorage\\LAMPSARtool\\CPluseCpluse\\WBCLFZProgram\\WBCLFZProgram\\test.png");
|
|||
|
}
|
|||
|
|
|||
|
#endif
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
#ifdef __TEST_IMAGEPROCESS
|
|||
|
|
|||
|
|
|||
|
#include "LAMPTool.h"
|
|||
|
#include <QtWidgets/QApplication>
|
|||
|
#include "LampToolTest.h"
|
|||
|
#include "FEKOSimulationSARClass.h"
|
|||
|
#include <cmath>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
int main(int argc, char* argv[])
|
|||
|
{
|
|||
|
|
|||
|
QApplication a(argc, argv);
|
|||
|
//LAMPTool w;
|
|||
|
//w.show();
|
|||
|
//a.exec();
|
|||
|
//TestImageBP_main(argc, argv);
|
|||
|
|
|||
|
|
|||
|
//====================================
|
|||
|
// <20><><EFBFBD><EFBFBD>FEKOģ<4F>ͼ<EFBFBD><CDBC>ؽ<EFBFBD><D8BD><EFBFBD>
|
|||
|
//====================================
|
|||
|
|
|||
|
|
|||
|
//QString antXmlPath = "D:\\codestorage\\LAMPSARtool\\CPluseCpluse\\WBCLFZProgram\\WBCLFZProgram\\help\\FEKOImageSettingTask.xml";
|
|||
|
//QString echocsvpath = u8"D:\\<5C><><EFBFBD><EFBFBD><EFBFBD>о<EFBFBD>Ժ<EFBFBD><D4BA><EFBFBD><EFBFBD>\\<5C><>Ŀ\\<5C><>Ŀ<EFBFBD>ĵ<EFBFBD><C4B5>鵵\\FEKO֪ʶ<D6AA><CAB6>\\ģ<><C4A3>\\Զ<><D4B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\\ball_001\\ball001_X_strip.csv";
|
|||
|
//QString thetafilepath = "";
|
|||
|
QString phifilepath = u8"D:/codestorage/LAMPSARtool/tmp/antSpace/TESTIMageProject.phi";
|
|||
|
QString tifffilepath = u8"D:/codestorage/LAMPSARtool/tmp/antSpace/TESTIMageProjectImage_phi.dat";
|
|||
|
FEKOBase::FEKOImageSettingParams imageparams{ -2.0, 2.0, -2.0, 2.0, 0.0, 201, 201 };
|
|||
|
|
|||
|
//FEKOBase::NearFieldEchoCSVParser nearfilePraseclass;
|
|||
|
//nearfilePraseclass.parseCSV(echocsvpath);
|
|||
|
//nearfilePraseclass.toPhiPolar(phifilepath);
|
|||
|
|
|||
|
FEKOBase::EchoDataClass data;
|
|||
|
data.loadEchoData(phifilepath);
|
|||
|
FEKOBase::FEKOImageProcess(data, imageparams, tifffilepath);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
|
|||
|
#endif
|
|||
|
|
|||
|
|
|||
|
#ifdef __TEST_FARFIELDFILEREADPROCESS
|
|||
|
#include "LAMPTool.h"
|
|||
|
#include "SARImage/FEKOBaseToolClass.h"
|
|||
|
#include "FEKOFarFieldFileClass.h"
|
|||
|
#include "FEKOSimulationSARClass.h"
|
|||
|
int main() {
|
|||
|
QString ffe_filepath = u8"D:\\<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>о<EFBFBD>Ժ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\\<EFBFBD><EFBFBD>Ŀ\\<EFBFBD><EFBFBD>Ŀ<EFBFBD>ĵ<EFBFBD><EFBFBD>鵵\\FEKO֪ʶ<EFBFBD><EFBFBD>\\ģ<EFBFBD><EFBFBD>\\<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģ<EFBFBD><EFBFBD>\\trihedral\\ant_SAR_new\\ant_SAR_Move\\ant_SAR_new_Horn_conical1_FarField.ffe";
|
|||
|
FEKOBase::FEKOFarFieldFileClass ffefile;
|
|||
|
std::cout << ffe_filepath.toLocal8Bit().constData()<< std::endl;
|
|||
|
ffefile.parseFarFieldFile(ffe_filepath);
|
|||
|
std::cout << "__TEST_FARFIELDFILEREADPROCESS" << std::endl;
|
|||
|
}
|
|||
|
#endif
|