Hi How can I smooth the following data? This is the gray intensity of an image. I could not use "smooth" function for that.
Is there any function for that or shall I use any filtering?
Thanks!
Steven
Best Answer
I can't tell what is signal and what is noise from that profile. Can you post the entire image? Like Jan said, it depends on what the image looks like. There are tons of filters you could use from simple linear filters like a moving box filter, to the non-linear median filter, to more complicated filters like Knn, sigma, to even more complicated (and better) filters like BM3D,K-SVD, K-LLD, non-local means, UINTA, ets.
Statistically speaking, a simply local averaging filter would provide the maximum likelihood answer. However that will also blur true edges. There are other simple filters like median filter, Kuwahara filter (demo attached), as well as others for images that are considerably more sophisticated and better like BM3d, non-local means, K-SVD, K-LLD, UINTA, etc.
There are a number of noise reduction methods that are better than median filter. Some of the more famous ones include BM3D, non-local means, K-SVD, K-LLD, UINTA, etc. Other simpler, less sophisticated methods include sigma filters, bilateral filters, mean shift, etc. Try them all! Some are even available in the File Exchange.
Best Answer