Code implementing the Chan-Vese segmentation algorithm in C++ and Matlab.