Antonio Criminisi has shared C++ and C# code for implementing decision forests for classification, regression, density estimation and semi-supervised learning. The code is a companion to the book “Decision Forests for Computer Vision and Medical Image Analysis“.