2024-11-25 10:09:24 +00:00
|
|
|
|
#pragma once
|
|
|
|
|
/*****************************************************************//**
|
|
|
|
|
* \file TBPImageAlgCls.h
|
|
|
|
|
* \brief BP<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㷨
|
|
|
|
|
*
|
|
|
|
|
* <EFBFBD>ο<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* <EFBFBD>״<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD>
|
|
|
|
|
*
|
|
|
|
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ<EFBFBD>涨<EFBFBD><EFBFBD>Ϊ <EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼ȡƽ<EFBFBD>棨P94, <EFBFBD>״<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼ȡƽ<EFBFBD>涨<EFBFBD><EFBFBD>Ϊ<EFBFBD><EFBFBD><EFBFBD>߷<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* \author <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* \date October 2024
|
|
|
|
|
*********************************************************************/
|
|
|
|
|
#define EIGEN_USE_BLAS
|
|
|
|
|
#define EIGEN_USE_LAPACK
|
|
|
|
|
#define EIGEN_ENABLE_AVX512
|
|
|
|
|
#define EIGEN_VECTORIZE_SSE
|
|
|
|
|
#define EIGEN_VECTORIZE_SSE2
|
|
|
|
|
#define EIGEN_VECTORIZE_SSSE3
|
|
|
|
|
#define EIGEN_VECTORIZE_SSE4_1
|
|
|
|
|
#define EIGEN_VECTORIZE_SSE4_2
|
|
|
|
|
#include "BaseConstVariable.h"
|
|
|
|
|
|
|
|
|
|
#include "SARSatelliteSimulationAbstractCls.h"
|
|
|
|
|
#include "SARSimulationTaskSetting.h"
|
|
|
|
|
#include "SatelliteOribtModel.h"
|
|
|
|
|
#include "EchoDataFormat.h"
|
|
|
|
|
#include "SARSimulationImageL1.h"
|
|
|
|
|
#include "LogInfoCls.h"
|
|
|
|
|
|
|
|
|
|
class TBPImageAlgCls
|
|
|
|
|
{
|
|
|
|
|
private:
|
|
|
|
|
std::shared_ptr<SARSimulationImageL1Dataset> L1ds;
|
|
|
|
|
std::shared_ptr < EchoL0Dataset> L0ds;
|
|
|
|
|
QString imagePlanePath;
|
2024-11-25 17:51:20 +00:00
|
|
|
|
bool GPURUN;
|
2024-11-25 10:09:24 +00:00
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
void setImagePlanePath(QString imagePlanePath);
|
|
|
|
|
QString getImagePlanePath();
|
|
|
|
|
|
|
|
|
|
void setEchoL0(std::shared_ptr < EchoL0Dataset> L0ds);
|
|
|
|
|
void setImageL1(std::shared_ptr<SARSimulationImageL1Dataset> L1ds);
|
|
|
|
|
|
|
|
|
|
std::shared_ptr < EchoL0Dataset> getEchoL1();
|
|
|
|
|
std::shared_ptr<SARSimulationImageL1Dataset> getImageL0();
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
ErrorCode Process(long num_thread);
|
2024-11-29 15:32:50 +00:00
|
|
|
|
void setGPU(bool flag);
|
|
|
|
|
bool getGPU( );
|
2024-11-25 10:09:24 +00:00
|
|
|
|
private:
|
2024-11-25 17:51:20 +00:00
|
|
|
|
ErrorCode ProcessCPU(long num_thread);
|
2024-11-25 10:09:24 +00:00
|
|
|
|
|
2024-11-25 17:51:20 +00:00
|
|
|
|
ErrorCode ProcessGPU();
|
2024-11-29 15:32:50 +00:00
|
|
|
|
|
|
|
|
|
|
2024-11-25 10:09:24 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
2024-11-29 15:32:50 +00:00
|
|
|
|
void TBPImageProcess(QString echofile,QString outImageFolder,QString imagePlanePath,long num_thread);
|
|
|
|
|
void TBPImageGPUAlg(std::shared_ptr<float> antPx, std::shared_ptr<float> antPy, std::shared_ptr<float> antPz, // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
std::shared_ptr<float> antVx, std::shared_ptr<float> antVy, std::shared_ptr<float> antVz,
|
|
|
|
|
std::shared_ptr<float> img_x, std::shared_ptr<float> img_y, std::shared_ptr<float> img_z, // ͼ<><CDBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
std::shared_ptr<std::complex<double>> echoArr, std::shared_ptr<std::complex<double>> img_arr,
|
|
|
|
|
float freq, float fs, float Rnear, float Rfar,
|
|
|
|
|
long rowcount, long colcount, std::shared_ptr<SARSimulationImageL1Dataset> L1ds);
|