International Journal of Biomedical Imaging / 2011 / Article / Alg 2

Research Article

True 4D Image Denoising on the GPU

Algorithm 2

//  Code  that  is  executed  before  the  kernel  is  launched
intthreadsInX  =  32;
intthreadsInY  =  16;
intthreadsIn = 1;
intblocksInX = (DATA_W+threadsInX-1)/threadsInX;
intblocksInY = (DATA_H+threadsInY-1)/threadsInY;
intblocksInZ = (DATA_D+threadsInZ-1)/threadsInZ;
dim3  dimGrid  =  dim3(blocksInX, blocksInY*blocksInZ);
dim3  dimBlock  =  dim3(threadsInX, threadsInY, threadsInZ);
//  Code  that  is  executed  inside  the  kernel
intblockIdxz  =  __float2uint_rd(blockIdx.y  *  invBlocksInY);
intblockIdxy  =  blockIdx.y    blockIdxz  *  blocksInY;
int x  =  blockIdx.x  *  blockDim.x  +  threadIdx.x;
int y  =  blockIdxy  *  blockDim.y  +  threadIdx.y;
int z  =  blockIdxz  *  blockDim.z  +  threadIdx.z;

We are committed to sharing findings related to COVID-19 as quickly as possible. We will be providing unlimited waivers of publication charges for accepted research articles as well as case reports and case series related to COVID-19. Review articles are excluded from this waiver policy. Sign up here as a reviewer to help fast-track new submissions.