Research Article

Image Noise Removal Method Based on Improved Nonlocal Mean Algorithm

Algorithm 1

AMF algorithm flow steps.
Initialize and start
(1)Initialize window size L = 3.
(2)Calculate the minimum, median, and maximum of pixel gray values.
(3)If the minimum value of the gray value < the median value < the maximum value, go to step 5; otherwise L = L + 2.
(4)If the window size is less than the maximum value of the window, go to step 2; otherwise replace the entire gray value with the median value.
(5)If the minimum gray value < gray value < maximum gray value, then the gray value can be retained in the interval; otherwise the median value is used to replace the entire gray value.