Sparse implementation, not fully integrated: gets broken after ccv_distance_transforms.