-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
Describe the bug
In ScaleIntensityRangePercentile, the output is converted back to input dtype and ignored the dtype input. If input is uint8, the scaled image is wrong.
MONAI/monai/transforms/intensity/array.py
Line 1414 in 59a7211
| return convert_to_dst_type(img_t, dst=img)[0] |
In ScaleIntensityRange, the implementation is correct
MONAI/monai/transforms/intensity/array.py
Line 1006 in 59a7211
| ret: NdarrayOrTensor = convert_data_type(img, dtype=dtype)[0] |