Skip to content


Repository files navigation

ofxPCL - custom





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


  • ICP (Interactive Iterative Closest Point):
    taken from 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 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 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:


  • 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


  • Here are some screenshots of my project setup:


point cloud library addon for openframeworks






No releases published