feat: support more format

feat: support .mrc .map
feat: support .ome.tif
feat: improved user experience for importing
feat: better contrast algorithm
This commit is contained in:
2024-07-22 08:51:12 +08:00
parent b2791e3aae
commit 854af4c3bc
15 changed files with 1407 additions and 704 deletions

View File

@@ -366,7 +366,7 @@ class FillByThreshold(bpy.types.Operator):
def invoke(self, context, event):
base_layer = get_layer(bpy.context.active_object)
scalar_min = get_layer_meta(base_layer, "Scalar Min")
self.fill_value = scalar_min
self.fill_value = min(scalar_min,0)
context.window_manager.invoke_props_dialog(self, width=400)
return {'RUNNING_MODAL'}
@@ -449,7 +449,7 @@ class FillByRange(bpy.types.Operator):
def invoke(self, context, event):
base_layer = get_layer(bpy.context.active_object)
scalar_min = get_layer_meta(base_layer, "Scalar Min")
self.fill_value = scalar_min
self.fill_value = min(scalar_min,0)
context.window_manager.invoke_props_dialog(self, width=400)
return {'RUNNING_MODAL'}
@@ -533,7 +533,7 @@ class FillByLabel(bpy.types.Operator):
def invoke(self, context, event):
base_layer = get_layer(bpy.context.active_object)
scalar_min = get_layer_meta(base_layer, "Scalar Min")
self.fill_value = scalar_min
self.fill_value = min(scalar_min,0)
context.window_manager.invoke_props_dialog(self, width=400)
return {'RUNNING_MODAL'}