108 def computePreviewLabelmap(self, mergedImage, outputLabelmap):
117 maskExtent
is not None
118 and maskExtent[0] <= maskExtent[1]
119 and maskExtent[2] <= maskExtent[3]
120 and maskExtent[4] <= maskExtent[5]
131 seedLocalityFactor = self.
scriptedEffect.doubleParameter(
"SeedLocalityFactor")
133 seedLocalityFactor = 0.0
136 startTime = time.time()
138 logging.info(
"Grow-cut operation on volume of {}x{}x{} voxels was completed in {:3.1f} seconds.".format(
142 time.time() - startTime))
145 imageToWorld = vtk.vtkMatrix4x4()
146 mergedImage.GetImageToWorldMatrix(imageToWorld)
147 outputLabelmap.SetImageToWorldMatrix(imageToWorld)