ShirtDetect is a project mainly written in C++ and C, it's free.
Shirt Detection algorithm from http://www.shervinemami.co.cc/shirtDetection.html, modified to compile under GCC and Unix.
This is not my code, rather it is from http://www.shervinemami.co.cc/shirtDetection.html
I've modified it to compile cleanly under GCC, and added a Makefile. If you want a Visual Studio version then visit the original site.
The source-code to my program is available here (opensource freeware), to use as you wish for personal or commercial use but NOT for criminal-detection or military projects.