Skip to content

Commit

Permalink
return the image without casting
Browse files Browse the repository at this point in the history
  • Loading branch information
noordhee committed Jan 10, 2025
1 parent 50b56bd commit 6048d46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ImageD11/nbGui/segmenter_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def chooseframe(self, dset, scan=None, idx=None, counter="_roi1", fetch_raw_imag

# placing the raw image
if fetch_raw_image:
raw_image = hin[scan + "/measurement/" + dset.detector][idx].astype("uint16")
raw_image = hin[scan + "/measurement/" + dset.detector][idx]

return scan, idx, raw_image

Expand Down Expand Up @@ -198,6 +198,7 @@ def __init__(self, dset, worker_func, process_func, counter="_roi1", scan=None,

def chooseframe(self, counter):
self.scan, self.idx, self.raw_image = chooseframe(self.dset, self.scan, self.idx, counter, fetch_raw_image=True)
self.raw_image = self.raw_image.astype("uint16")

def segment_frame(self):
image_worker = self.worker_func(**self.options)
Expand Down

0 comments on commit 6048d46

Please sign in to comment.