Implementation of the shadow free segmentation algorithm from the ICCP14 paper