this is a project using the sensor kinect v2 where the point cloud is estimated to a simple geometric object, using pcl 1.8, and for grabbing the data is a libfreenect2 grabber.
in this program display four windows, one is the comand line output, one the kinect data as Point cloud, other thar is the copy data to filter and one las window showing the filered point cloud.
the copy data is used to substract the points that are similar, and leaves what its diferent filter=cloud1-cloud2
selecting the window with the kinect data we can:
- using the
"a"
key switch between AGC and the vectorial method - using the
"p"
key makes a copy of the current data - using the
"s"
key save the point cloud to a ply file - using the
"o"
key pause the program - using the
"l"
key execute one loop of the program - using the
"u"
to activate or deactivate the filter - using the
"j"
and"m"
change the value of the treshold distance filter - using the
"y"
to activate or deactivate the down sample the point cloud - using the
"h"
and"n"
change the value to down sample the point cloud
https://github.com/giacomodabisias/libfreenect2pclgrabber
first of all i used a i7 processor with 8gb of ram and windows 10 pro
the software i used:
-
Cmake 3.10.1 (to link and create the msvc project)
-
Microsoft visual studio 2017 community (c++ editor and compiler)
-
OpenNI2 (or https://s3.amazonaws.com/com.occipital.openni/OpenNI-Windows-x64-2.2.0.33.zip)
and used the proyect libfreenect2pclgrabber (in /third_party folder)
when i build libfreenect2 i needed to copy "config.h"
and "export.h"
from /build_dir/libfreenect2/
to /include/libfreenect2/
and i copy the dll files to c:/windows/system32/
to avoid copying the files in every project folder.