Skip to content

antimodular/ofxPCL

Repository files navigation

ofxPCL - custom

Description

update:

original:

System

  • This was tested on OSX 10.10.5 with OF 0.9.3 and Xcode 6.4.
  • Does not work on OSX 10.8.3, because PCL does not want to install.

Examples

  • ICP (Interactive Iterative Closest Point):
    taken from http://pointclouds.org/documentation/tutorials/iterative_closest_point.php It is an algorithm used to minimize the difference between two clouds of points. The example shows how to find the transformation matrix between two point clouds and use it to move cloud A in the same place as cloud B. ICP can only finding the transformation matrix when the difference between the two clouds is not too big.

  • PCA (Principal Component Analysis):
    taken from http://pointclouds.org/documentation/tutorials/normal_estimation.php It is a statistical procedure that extracts the most important features of a dataset. The example shows how to get the bounding box and finds the direction along which the point data varies the most. PCA has it's limits, it lacks up and down orientation information. That's why you can see the direction line flip after 180˚ rotation.

  • SAC_IA (Sample Consensus Initial Alignment):
    taken from http://pointclouds.org/documentation/tutorials/template_alignment.php This example does not work yet. Somehow the 2 point clouds do not return any reasonable transformation matrix and fitness score.

Setup New Project

  • Don't use Project Generator to add ofxPCL to your project. It seems to take super long. Instead add ofxPCL by hand.

  • Drag the .h files from ../../../addons/ofxPCL/src in to your Xcode project, without copying them

  • Add all PCL dynamic library files (dylib) from ofxPCL/libs/pcl/lib to your xcode projects Build Phases -> Link Binary With Libraries section.

  • This will also automatically add this line to your Build Settings -> Library Search Paths: $(SYSTEM_APPS_DIR)/of_v0.9.3_osx_release/addons/ofxPCL/libs/pcl/lib

  • Also the dylibs will now appear in the left hand navigator area.

  • Add the following lines to your Build Settings -> User Header Search Path:
    ../../../addons/ofxPCL/libs/pcl/include/pcl-1.7
    ../../../addons/ofxPCL/libs/pcl/include
    ../../../addons/ofxPCL/libs/pcl/include/flann
    ../../../addons/ofxPCL/libs/pcl/include/eigen3

Hints

  • When copying one of the example folders in to a new location you might have to run the project through project generator to have all other addons be linked correctly. Then follow the setup steps to add ofPCL

Screenshots

  • Here are some screenshots of my project setup:

About

point cloud library addon for openframeworks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages