Azzera filtri
Azzera filtri

Detecting outliers with RANSAC

2 visualizzazioni (ultimi 30 giorni)
Peter Larsen
Peter Larsen il 15 Mag 2019
Hi
I have a matrix out (150x2), which looks like this:
out=[ 12 5.708
12 -1.765
12 -1.760
12 -1.755
13 0.015
13 -0.027
13 0.002
15 0.0568
15 0.098]
The first column are point ID, the second column are residuals. The outlier limit for the residuals are +-1.7. That gives a problem with point ID 12, because of the large deviation of 5.708, while the other residuals of point ID 12 are close to each other. Is there a way to use RANSAC for each point ID.
I have tried to use the build in RANSAC function:
[model,inlierIdx] = ransac(data,fitFcn,distFcn,sampleSize,maxDistance)
data=out
maxDistance=1.7
But I can't make it work for each point ID.

Risposte (0)

Categorie

Scopri di più su Matrices and Arrays in Help Center e File Exchange

Prodotti


Release

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by