Skip to main content
. 2022 Oct 8;22(19):7611. doi: 10.3390/s22197611
Algorithm 2: Transformation algorithm for the grayscale image to remove noise
 Input: A path to a dataset image
 Output: A set of denoised images
 Start
 Set data an empty list [ ]
 For I in image data where i integer numbers range from 0 to n.
 For each pixel of a single image
 Calculate Normalization function (11)
 Evaluate weighted function Equation (12)
 Calculate non-local means Equation (10)
 data.append[denoised image]
 End For
 End For
 End