return result
def _executeCurrentRavelerObjectRemainder(self, roi, result):
ravelerLabel = self.CurrentRavelerLabel.valueif ravelerLabel == 0:
result[:] = 0
return result
// Start with the original raveler object
self.CurrentRavelerObject(roi.start, roi.stop).writeInto(result).wait()
names = self.getSavedObjectNamesForRavelerLabel(ravelerLabel)
// Accumulate the objects objects from this raveler object that we"ve already split off
lut = numpy.zeros(len(self._mst.objects.lut), dtype=numpy.int32)
for name in names:
objectSupervoxels = self._mst.object_lut[name]
lut[objectSupervoxels] = 1
// Save memory: Implement (A - B) == (A & ~B) == ~(~A | B), and do it with three in-place operations
slicing = roiToSlice( roi.start[1:4], roi.stop[1:4] )
a = result[0,...,0]
After Change
// Start with the original raveler object
self.CurrentRavelerObject(roi.start, roi.stop).writeInto(result).wait()
lut = self._opFragmentSetLut.Lut[:].wait()
// Save memory: Implement (A - B) == (A & ~B), and do it with in-place operations
slicing = roiToSlice( roi.start[1:4], roi.stop[1:4] )
a = result[0,...,0]