Removing noise peaks on 3D surface reconstruction
6 次查看(过去 30 天)
显示 更早的评论
Hi, I'm a fluid mechanics student, and I would like to reconstruct a 3D water surface using a scanner and post-processing with Matlab.
Unfortunately, the device is not perfect, and there is noise due to reflexion of the scanner on the water surface.
I would like to know if there is a way to remove all major peaks due to the noise. You'll see attached an example with the peaks I'm talking about.
Thanks !
Ps: My code is using a refernce image and a deformed image. I try to replace the "wrong" values by NaN then interpolate with a spline, before substracting the reference image to it.
image_def(image_def==0)=NaN;
F = fillmissing(image_def,'spline',2,'EndValues','nearest');
0 个评论
采纳的回答
Star Strider
2023-6-22
See if the filloutliers function (introduced in R2017b) will do what you want. The documentation indicates that it will work on matrices or multidimendional arrays, and your data are likely oone of those.
0 个评论
更多回答(1 个)
Nitya Patel
2023-6-22
One possible way to do this is to use 3D Median Filtering using medfilt3. This will remove all the outliers too far from the median in the neighborhood you specify.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!