Posts

Showing posts with the label Improved median filter matlab code

Improved Median filter MATLAB code and explanation ( without inbuilt function and with inbuilt function)

Image
 Improved Median filter MATLAB code and explanation ( without inbuilt function and with inbuilt function)               We looked at the salt and pepper noise and the median filter Matlab program (with inbuilt and without inbuilt function) in my  previous post . In that post, I gave the 'medfilt2' program without using the inbuilt function. While viewing the output of the medfilt2 program function, there is some noise pixel on the filtered image. And the overall image looks blurred, too, because it also modifies the noiseless pixel intensity values. This problem can be corrected to some extent by making some adjustments to the median filter. We're going to see it in this post.  Modification: 1. Instead of changing all pixel values, only the noise-affected pixel is being changed here. The noise detection stage is used to detect the noise pixel. 2. While computing median, we consider only noiseless pixels instead of taking a...