Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Principal Component Analysis Toolkit for Processing

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 pca_image_orientation
Octocat-spinner-32 pca_kinect_head_orientation
Octocat-spinner-32 pca_orientation_interactive
Octocat-spinner-32 pca_test
Octocat-spinner-32 .DS_Store
Octocat-spinner-32 README.md
README.md

Processing-PCA

Examples of using Principle Component Analysis in Processing with pca_transform.

Using PCA with basic numerical data

PCA with basic data

This example demonstrates the most basic application of PCA to find the main axes of variation amongst some random 2D points.

Using PCA with OpenCV to find object orientation

PCA and OpenCV to find object orientation in Processing

This example uses OpenCV to reduce an image of a pen on a white background to a binary image (each pixel 100% white or black). It then treats these pixels as points to perform PCA. The resulting principle components make up the axes of orientation of the object.

Using PCA with OpenCV for live object orienation

PCA Object Orientation Tracking with Processing from Greg Borenstein on Vimeo.

This example improves on the one above by applying the same technique to live video to find object orientation interactively.

Using PCA with Kinect to find Head and Hand Orientation

PCA with Kinect for head orientation

PCA with Kinect for hand orientation

This example uses the SimpleOpenNI Kinect library to access the depth points and joint data from the Kinect. It finds all of the depth points within a bounding box around a given joint (in this case, the head) and then conducts PCA on those points in order to find the orientation of the joint. This gives you head or hand orientation, which is otherwise not available from the Kinect joint data.

Something went wrong with that request. Please try again.