"Invalid roi for graph-cut: {}".format(str(roi))
//// request the prediction image ////
pred = self.Prediction.get(roi).wait()
pred = vigra.taggedView(pred, axistags=self.Prediction.meta.axistags)
pred = pred.withAxes(*"zyx")
// prepare result
resView = vigra.taggedView(result, axistags=self.Output.meta.axistags)
resView = resView.withAxes(*"zyx")
logger.info("Executing graph cut ... (this might take a while)")
threshold_binary = segmentGC(pred, self.Beta.value)threshold_binary = vigra.taggedView( threshold_binary, "zyx" )
logger.info("Graph-cut done")
// label the segmentation so that this operator is consistent with
// the other thresholding operators
After Change
self.opReorderOutput.AxisOrder.setValue(self.inputAxisOrder)
def execute(self, slot, subindex, roi, result):
assert False, "should not get here"
def propagateDirty(self, slot, subindex, roi):
pass