Azzera filtri
Azzera filtri

Removing noise peaks on 3D surface reconstruction

1 visualizzazione (ultimi 30 giorni)
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');

Risposta accettata

Star Strider
Star Strider il 22 Giu 2023
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.

Più risposte (1)

Nitya Patel
Nitya Patel il 22 Giu 2023
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