Skip to content

Commit

Permalink
revert img value
Browse files Browse the repository at this point in the history
  • Loading branch information
sophie22 committed Feb 27, 2024
1 parent 5c88b0f commit 1fec22f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hazenlib/tasks/ghosting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1fec22f

Please sign in to comment.