Code for the article "Nonlocal Active Contours"