112 if maskExtent
is not None and maskExtent[0] <= maskExtent[1]
and maskExtent[2] <= maskExtent[3]
and maskExtent[4] <= maskExtent[5]:
121 if self.scriptedEffect.parameterDefined(
"SeedLocalityFactor"):
122 seedLocalityFactor = self.scriptedEffect.doubleParameter(
"SeedLocalityFactor")
124 seedLocalityFactor = 0.0
127 startTime = time.time()
129 logging.info(
'Grow-cut operation on volume of {}x{}x{} voxels was completed in {:3.1f} seconds.'.format(
133 time.time() - startTime))
136 imageToWorld = vtk.vtkMatrix4x4()
137 mergedImage.GetImageToWorldMatrix(imageToWorld)
138 outputLabelmap.SetImageToWorldMatrix(imageToWorld)