fix: color ramp not fit
fix: skip DICOM series option not reset. fix: combine label only combine 2 layers
This commit is contained in:
@@ -134,10 +134,12 @@ class ParseVolumetricData(bpy.types.Operator):
|
||||
filepath: bpy.props.StringProperty(subtype="FILE_PATH") # type: ignore
|
||||
|
||||
skip_read_as: bpy.props.BoolProperty(name="Skip Read As",
|
||||
default=False) # type: ignore
|
||||
default=False,
|
||||
options={"SKIP_SAVE"}) # type: ignore
|
||||
|
||||
skip_series_select: bpy.props.BoolProperty(name="Skip Sries Select",
|
||||
default=True) # type: ignore
|
||||
default=True,
|
||||
options={"SKIP_SAVE"}) # type: ignore
|
||||
|
||||
read_as: bpy.props.EnumProperty(name="Read as",
|
||||
default="scalar",
|
||||
|
||||
@@ -232,7 +232,6 @@ class CombineLabels(bpy.types.Operator, LabelOperator):
|
||||
return {'FINISHED'}
|
||||
base_obj = label_objs[0]
|
||||
label_objs = label_objs[1:]
|
||||
container_obj = base_obj.parent
|
||||
|
||||
base_layer = obj_to_layer(base_obj)
|
||||
modified_layer = base_layer.copy()
|
||||
@@ -241,7 +240,7 @@ class CombineLabels(bpy.types.Operator, LabelOperator):
|
||||
for label_obj in label_objs:
|
||||
label_layer = obj_to_layer(label_obj)
|
||||
label_layer.resize(base_layer.shape)
|
||||
modified_layer.data = np.maximum(base_layer.data, label_layer.data)
|
||||
modified_layer.data = np.maximum(modified_layer.data, label_layer.data)
|
||||
label_names.append(label_layer.name)
|
||||
|
||||
modified_layer.name = f"{'-'.join(label_names)}-Combined"
|
||||
|
||||
Reference in New Issue
Block a user