From 1fec22f4c2493e2b3271bfbfb5f978a832054c88 Mon Sep 17 00:00:00 2001 From: sophie22 Date: Tue, 27 Feb 2024 10:11:19 +0000 Subject: [PATCH] revert img value --- hazenlib/tasks/ghosting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hazenlib/tasks/ghosting.py b/hazenlib/tasks/ghosting.py index f9e5f8a2..a20ab718 100644 --- a/hazenlib/tasks/ghosting.py +++ b/hazenlib/tasks/ghosting.py @@ -352,7 +352,7 @@ def get_ghosting(self, dcm) -> float: img = img.astype("float64") # print('this is img',img) img *= 255.0 / img.max() - img = hazenlib.utils.rescale_to_byte(dcm.pixel_array) + # img = hazenlib.utils.rescale_to_byte(dcm.pixel_array) img = cv.rectangle(img.copy(), (x1, y1), (x2, y2), (255, 0, 0), 1) for roi in background_rois: