Simple 2d Ransac points filtring (iOS)

asked 2017-07-23 14:24:37 -0500

updated 2017-07-24 05:29:33 -0500

KjMag gravatar image

Hi, I am quite newbie in algorithms and OpenCV library so I really need helping hand. Here is my problem. I have an array of points. With more points in this array you can draw a line, but there are some outliners. I need method which returns me two arrays of "ok points" which can be use for line and the other array with outliners (i need them too). I googled that I need Ransac algorithm. It should solve my problem. And after that I googled that OpenCV is iOS library that I need. But what next? There are a lot of methods in this library and difficult situations in docs with 3d transforms and etc. I am not even sure that I right about Ransac... I am going crazy. Could somebody give me a helping hand please? Thank you!

edit retag flag offensive close merge delete

Comments

KjMag gravatar imageKjMag ( 2017-07-24 05:29:57 -0500 )edit

Barely understand what should I try... I see cvHoughLines2 methods which has image as param. I don't have image I have points. It very difficult case for me in here http://docs.opencv.org/2.4/doc/tutori... with windows finding... Sorry. (

Ned1983 gravatar imageNed1983 ( 2017-07-25 11:21:52 -0500 )edit

One of the answers links to StackOverflow. Have you read about fitLine() there? It takes points, not an image. See the docs: http://docs.opencv.org/2.4/modules/im...

KjMag gravatar imageKjMag ( 2017-07-25 15:13:33 -0500 )edit