修复bug

pull/3/head
陈增辉 2024-12-28 21:56:38 +08:00
parent 5cd3729fdf
commit 6c46507ae8
3 changed files with 3 additions and 4 deletions

View File

@ -16,7 +16,7 @@
//#define __PRFDEBUG__
#define __TBPIMAGEDEBUG__
//#define __TBPIMAGEDEBUG__
//#include <mkl.h>
#include <complex>

View File

@ -399,7 +399,6 @@ __global__ void CUDA_CombinationEchoAmpAndPhase(float* R,
cuComplex echotemp = make_cuComplex(echophiexp.x*amp, echophiexp.y*amp);
echo[idx] = echotemp;
FreqID[idx] = timeID;
}
}

View File

@ -404,8 +404,8 @@ void TBPImageGPUAlg(std::shared_ptr<float> antPx, std::shared_ptr<float> antPy,
float* h_echoAmp_abs = (float*)mallocCUDAHost(sizeof(float) * prfcount * freqcount);
for (long freqi = 0; freqi < prfcount * freqcount; freqi++) {
h_echoAmp_real[freqi] = d_echoArr[freqi].x;
h_echoAmp_imag[freqi] = d_echoArr[freqi].y;
h_echoAmp_real[freqi] = h_echoArr[freqi].x;
h_echoAmp_imag[freqi] = h_echoArr[freqi].y;
h_echoAmp_abs[freqi] = 20 * std::log10(std::abs(std::complex<double>(h_echoAmp_real[freqi], h_echoAmp_imag[freqi])));
}