Skip to content
Snippets Groups Projects
Commit 4f283fcc authored by polarbean's avatar polarbean
Browse files

remove damage mask argument to load quint json

parent c2322c49
No related branches found
No related tags found
No related merge requests found
...@@ -182,7 +182,7 @@ def load_segmentation(segmentation_path: str): ...@@ -182,7 +182,7 @@ def load_segmentation(segmentation_path: str):
# related to read and write # related to read and write
# this function reads a VisuAlign JSON and returns the slices # this function reads a VisuAlign JSON and returns the slices
def load_quint_json(filename, apply_damage_mask=True): def load_quint_json(filename):
""" """
Reads a VisuAlign JSON file (.waln or .wwrp) and extracts slice information. Reads a VisuAlign JSON file (.waln or .wwrp) and extracts slice information.
Slices may include anchoring, grid spacing, and other image metadata. Slices may include anchoring, grid spacing, and other image metadata.
......
...@@ -134,7 +134,7 @@ def folder_to_atlas_space( ...@@ -134,7 +134,7 @@ def folder_to_atlas_space(
Returns: Returns:
tuple: Various arrays and lists containing transformed coordinates and labels. tuple: Various arrays and lists containing transformed coordinates and labels.
""" """
quint_json = load_quint_json(quint_alignment, apply_damage_mask) quint_json = load_quint_json(quint_alignment)
slices = quint_json['slices'] slices = quint_json['slices']
if apply_damage_mask and "gridspacing" in quint_json: if apply_damage_mask and "gridspacing" in quint_json:
gridspacing = quint_json["gridspacing"] gridspacing = quint_json["gridspacing"]
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment