align cutoff line rendering across previews

This commit is contained in:
2026-05-03 02:01:00 +08:00
parent ea71713b0a
commit 1d2d428aab
2 changed files with 2 additions and 2 deletions

View File

@@ -604,8 +604,8 @@ class HeadExtensionApp:
self.status.set("正在读取 DICOM 生成预览...")
self.cached_volume = load_dicom_volume(self.input_dir.get())
before = crop_head_neck(sagittal_mip(self.cached_volume))
before = draw_cutoff_line(before, self.cached_volume.shape[0])
after = preview_deform_2d(before, float(self.angle.get()))
after = draw_cutoff_line(after, self.cached_volume.shape[0])
canvas = Image.new("RGB", (1120, 610), (0, 0, 0))
draw = ImageDraw.Draw(canvas)