janelia-flyem / gala

Automatic segmentation of electron microscopy volumes
BSD 3-Clause "New" or "Revised" License
75 stars 29 forks source link

agglo.best_possible_segmentation() #71

Closed tobiasmaier closed 8 years ago

tobiasmaier commented 8 years ago

agglo.best_possible_segmentation() returns wrong result if fragments are not continuous starting at 1

ws = np.array([[2,3],[4,5]], np.int32) gt = np.array([[1,2],[1,2]], np.int32) agglo.best_possible_segmentation(ws, gt) array([[1, 7], [3, 7]])

the expected result is array([[a, b], [a, b]])