fix(tasks): Correct ImagePositionPatient assignment in series_reconstruct_task

This commit is contained in:
Ross
2026-05-17 21:44:09 +01:00
parent d77c5149f0
commit 1775b11e40
2 changed files with 191 additions and 1 deletions
+1 -1
View File
@@ -343,7 +343,7 @@ def series_reconstruct_task(
ds_new.PixelData = arr2d.tobytes()
ds_new.PixelSpacing = [float(cfg["pixel_spacing_out"][0]), float(cfg["pixel_spacing_out"][1])]
ds_new.ImageOrientationPatient = cfg["image_orientation_out"]
ds_new.ImagePositionPatient = cfg["position_for_index"](idx)
ds_new.ImagePositionPatient = cfg["position_fn"](idx)
ds_new.SliceThickness = float(slab_thickness)
ds_new.SpacingBetweenSlices = float(cfg["spacing_between_slices_out"])