We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 605ad3b commit 2f70b9dCopy full SHA for 2f70b9d
superannotate/dicom_converter.py
@@ -35,6 +35,9 @@ def dicom_to_rgb_sequence(
35
else:
36
number_of_frames = 1
37
arr = arr[np.newaxis, :]
38
+ if arr.dtype != np.uint8:
39
+ arr = (arr - arr.min()) / arr.max() * 255
40
+ arr = arr.astype(np.uint8)
41
output_dir = Path(output_dir)
42
output_paths = []
43
for i in range(number_of_frames):
0 commit comments