Research Article
3D Data Denoising via Nonlocal Means Filter by Using Parallel GPU Strategies
Algorithm 1
Pseudocode of the NLM algorithm.
(1) for each voxel of the 3D image to be filtered do | (2) Initialize the cumulative sum of weights and the restored value to 0; | (3) for each voxel of the search window do | (4) for each voxel of the similarity window do | (5) Cumulate squared Euclidean distance; | (6) end for | (7) Calculate and cumulate the weight of the voxel in search window; | (8) Cumulate the restored value; | (9) end for | (10) Normalize restored value to the sum of the weights; | (11) end for |
|