强制刷新提示
parent
e0b2e0d2c9
commit
7299339e73
|
@ -27,6 +27,8 @@ namespace RasterMessageShow {
|
|||
{
|
||||
if (nullptr != this->textBrowserMessage) {
|
||||
this->textBrowserMessage->append(Message);
|
||||
this->textBrowserMessage->repaint();
|
||||
|
||||
|
||||
}
|
||||
else {}
|
||||
|
|
|
@ -386,6 +386,7 @@ void TBPImageGPUAlg2(std::shared_ptr<double> antPx, std::shared_ptr<double> antP
|
|||
FreeCUDAHost(h_echoArr);
|
||||
FreeCUDADevice(d_echoArr);
|
||||
|
||||
qDebug() << "IFFT finished!!!";
|
||||
// ³õʼ»¯
|
||||
std::shared_ptr<double> h_antPx ((double*)mallocCUDAHost(sizeof(double) * prfcount),FreeCUDAHost);
|
||||
std::shared_ptr<double> h_antPy ((double*)mallocCUDAHost(sizeof(double) * prfcount),FreeCUDAHost);
|
||||
|
@ -411,12 +412,12 @@ void TBPImageGPUAlg2(std::shared_ptr<double> antPx, std::shared_ptr<double> antP
|
|||
h_antPz.get()[i] = antPz.get()[i];
|
||||
}
|
||||
|
||||
// ³ÉÏñÆ½Ãæ
|
||||
#pragma omp parallel for
|
||||
for (long i = 0; i < rowcount; i++) {
|
||||
for (long j = 0; j < colcount; j++) {
|
||||
h_imgx.get()[i * colcount + j] = imgx.get()[i * colcount + j];
|
||||
h_imgy.get()[i * colcount + j] = imgy.get()[i * colcount + j];
|
||||
h_imgz.get()[i * colcount + j] = imgz.get()[i * colcount + j];
|
||||
h_imgx.get()[i * colcount + j] = img_x.get()[i * colcount + j];
|
||||
h_imgy.get()[i * colcount + j] = img_y.get()[i * colcount + j];
|
||||
h_imgz.get()[i * colcount + j] = img_z.get()[i * colcount + j];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -433,11 +434,11 @@ void TBPImageGPUAlg2(std::shared_ptr<double> antPx, std::shared_ptr<double> antP
|
|||
std::shared_ptr<cuComplex> d_imgArr((cuComplex*)mallocCUDADevice(sizeof(cuComplex) * rowcount * colcount), FreeCUDADevice);
|
||||
|
||||
|
||||
|
||||
#pragma omp parallel for
|
||||
for (long i = 0; i < rowcount; i++) {
|
||||
for (long j = 0; j < colcount; j++) {
|
||||
h_imgArr.get()[i * colcount + j].x = imgArr.get()[i * colcount + j].real();
|
||||
h_imgArr.get()[i * colcount + j].y = imgArr.get()[i * colcount + j].imag();
|
||||
h_imgArr.get()[i * colcount + j].x = img_arr.get()[i * colcount + j].real();
|
||||
h_imgArr.get()[i * colcount + j].y = img_arr.get()[i * colcount + j].imag();
|
||||
}
|
||||
}
|
||||
HostToDevice(h_imgArr.get(), d_imgArr.get(), sizeof(cuComplex) * rowcount * colcount);
|
||||
|
@ -458,10 +459,10 @@ void TBPImageGPUAlg2(std::shared_ptr<double> antPx, std::shared_ptr<double> antP
|
|||
|
||||
|
||||
|
||||
|
||||
#pragma omp parallel for
|
||||
for (long i = 0; i < rowcount; i++) {
|
||||
for (long j = 0; j < colcount; j++) {
|
||||
imgArr.get()[i * colcount + j] = std::complex<double>(h_imgArr.get()[i * colcount + j].x, h_imgArr.get()[i * colcount + j].y);
|
||||
img_arr.get()[i * colcount + j] = std::complex<double>(h_imgArr.get()[i * colcount + j].x, h_imgArr.get()[i * colcount + j].y);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue