Hannes Kuchelmeister
commited on
Commit
·
b568bd7
1
Parent(s):
8e134e8
change addressing from dataframe fix object name being incorrect
Browse files
annotation-preprocessing/1_splitting_into_patches.py
CHANGED
@@ -97,18 +97,18 @@ def save_obj_tiles(obj, out_folder, in_folder, stack_images):
|
|
97 |
neighbours.append(n_path)
|
98 |
|
99 |
z_stack_images.append({
|
100 |
-
"focus_value": row
|
101 |
"image_path": image_path,
|
102 |
"neighbours": neighbours,
|
103 |
-
"original_filename": row
|
104 |
-
"scan_uuid": row
|
105 |
-
"study_id": row
|
106 |
})
|
107 |
z_stacks.append({
|
108 |
"best_index": None,
|
109 |
"images" : z_stack_images,
|
110 |
-
"obj_name": obj
|
111 |
-
"stack_id": obj
|
112 |
})
|
113 |
|
114 |
return z_stacks
|
|
|
97 |
neighbours.append(n_path)
|
98 |
|
99 |
z_stack_images.append({
|
100 |
+
"focus_value": row["focus_value"],
|
101 |
"image_path": image_path,
|
102 |
"neighbours": neighbours,
|
103 |
+
"original_filename": row["file_name"],
|
104 |
+
"scan_uuid": row["uuid"],
|
105 |
+
"study_id": row["study_id"],
|
106 |
})
|
107 |
z_stacks.append({
|
108 |
"best_index": None,
|
109 |
"images" : z_stack_images,
|
110 |
+
"obj_name": obj["name"],
|
111 |
+
"stack_id": obj["stack_id"],
|
112 |
})
|
113 |
|
114 |
return z_stacks
|