Software Archive
Read-only legacy content
17061 Discussions

Flat surface detection

Cliffen_A_
Beginner
590 Views
How can i detect flat surface and make that as the base position for instantiating object? I want to achive what ARPedia did. I'm developing using Unty by the way. Thank you
0 Kudos
3 Replies
samontab
Valued Contributor II
590 Views

Once you have the 3D data, you could use RANSAC to do plane fitting.

Take a look at PCL for a ready to use implementation.

0 Kudos
Cliffen_A_
Beginner
590 Views
it's the first time i've heard of RANSAC and PCL @_@. is it going to take a long time to study it? because if its complicated i think i need to give up on that premise
0 Kudos
samontab
Valued Contributor II
590 Views

RANSAC is a method for fitting mathematical models to data, like fitting a plane to a set of 3d points, which is what you want.

PCL is the Point Cloud Library, a set of tools that allow you to process 3D data. RANSAC is implemented in that library. It is just one option, there are other libraries that have RANSAC as well, like OpenCV, but I feel that it is easier to use in PCL.

Well, having said that, PCL itself depends on a few other libraries, like boost, eigen, vtk, etc. so even installing PCL can be complicated if you are not experienced in doing these types of things...

0 Kudos
Reply