Skip to content

ScaleIntensityRangePercentile bug #8108

@heyufan1995

Description

@heyufan1995

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.

return convert_to_dst_type(img_t, dst=img)[0]

In ScaleIntensityRange, the implementation is correct

ret: NdarrayOrTensor = convert_data_type(img, dtype=dtype)[0]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions