Software Archive
Read-only legacy content
17061 Обсуждение

Flat surface detection

Cliffen_A_
Начинающий
592Просмотр.
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 баллов
3 Ответы
samontab
Ценный участник II
592Просмотр.

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.

Cliffen_A_
Начинающий
592Просмотр.
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
samontab
Ценный участник II
592Просмотр.

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...

Ответить