Replies: 2 comments 4 replies
-
Hello, no there is a clip first : https://github.com/fepegar/torchio/blob/c95410bc1eeb8066907a3ba0eb152d75afdffd7d/torchio/transforms/preprocessing/intensity/rescale.py#L81 |
Beta Was this translation helpful? Give feedback.
-
Hi, @gRox167. I'm not sure what the question is. The clipping happens only if the |
Beta Was this translation helpful? Give feedback.
-
torchio.transforms.RescaleIntensity
's in_min_max argument is not working properly or maybe I misunderstood the document.Expected behavior
In the document, it is said that "Range (mmin,mmax) of input intensities that will be mapped to (nmin,nmax). If None, the minimum and maximum input intensities will be used." I thought it works like the function
torch.clamp
ornp.clip
, which will clip the in_min and in_max.Actual behavior
In your source code, this step is done by
I think this just scale down the distribution of image intensity, but not clip off the value outside the range we set.
Beta Was this translation helpful? Give feedback.
All reactions