gradient-based segmentation works (somewhat)