修复成像bug

pull/10/head
陈增辉 2025-04-07 11:01:25 +08:00
parent 6e956d6972
commit 1d2c6dbd72
1 changed files with 3 additions and 0 deletions

View File

@ -194,6 +194,8 @@ ErrorCode TBPImageAlgCls::ProcessGPU()
h_data.x_mat = (double*)mallocCUDAHost(sizeof(double) * img_blockRowCount * img_blockColCount); // 成像网格
h_data.y_mat = (double*)mallocCUDAHost(sizeof(double) * img_blockRowCount * img_blockColCount);
h_data.z_mat = (double*)mallocCUDAHost(sizeof(double) * img_blockRowCount * img_blockColCount);
h_data.R_mat = (double*)mallocCUDAHost(sizeof(double) * img_blockRowCount * img_blockColCount);
h_data.nx = img_blockColCount;
h_data.ny = img_blockRowCount;
@ -202,6 +204,7 @@ ErrorCode TBPImageAlgCls::ProcessGPU()
h_data.x_mat[i * h_data.nx + j] = demX.get()[i * h_data.nx + j];
h_data.y_mat[i * h_data.nx + j] = demY.get()[i * h_data.nx + j];
h_data.z_mat[i * h_data.nx + j] = demZ.get()[i * h_data.nx + j];
h_data.R_mat[i * h_data.nx + j] = demR.get()[i * h_data.nx + j];
}
}