Removing noise peaks on 3D surface reconstruction

1 次查看(过去 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');

采纳的回答

Star Strider
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.

更多回答(1 个)

Nitya Patel
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.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by