Silhouette extraction algorithm
It is a bit tricky to make depth and RGB cameras to match exactly the same image (as they are located a few inches apart) so video shows some discrepancy between the dancing user and the drawn contour line.
Code was written in Processing using Daniel Shiffman's kinect library for Macs, OpenCV library and MovieMaker library to create an output video file of the action. In the mean time I was developing this, Daniel updated his library and some changes were needed. Unfortunately, OpenCV for Processing only includes some functions and simplifyDP was missing, so I was forced to implement my own version of Douglas-Peucker polyline simplification algorithm.
Comments