Filter löschen
Filter löschen

Detecting outliers with RANSAC

2 Ansichten (letzte 30 Tage)
Peter Larsen
Peter Larsen am 15 Mai 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.

Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Produkte


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by