def mark_border(self): slic_funcs.mark_border(self.lab, self.labels) self._sync_rgb_from_lab()
def borders_only(self): self.rgb[:, :] = 255, 255, 255 self._sync_lab_from_rgb() slic_funcs.mark_border(self.lab, self.labels) self._sync_rgb_from_lab()