Closed DirectX closed 1 year ago
Thank you to your interest about our work. I agree with your statement that each image has different scale of intensities due to different imaging protocols. However, the one that we perform is a soft-tissue windowing (clip the intensity range from -125 to 275), which use to minimize the adverse effect brings from the neighboring tissues and a must-do preprocessing step for abdominal imaging. From your autoscaling code, it only gives me a scaling function to normalize the intensity from 0 to 1 from the original intensity range.
Thanks for great project. Found one problem - input images in datasets usually have quite inconsistent input values range.
Here is small piece of code to get input values range stats for given dataset
Here is output for FLARE2021 training set
As you can see there is tremendous variability in input ranges across all images in dataset. On the other side there is hard-coded scaling parameters in preparation pipeline
As a result of clipping of the input data values either to 0 or to 1 processed images could severely suffer from 'overexposure' and 'underexposure' making merely impossible to detect features by neural network.
This PR proposes approach like 'auto levels' feature in Photoshop.
It is not supposed to be merged AS-IS because it may not work for pre-trained weights but it could be taken into the account for new datasets training.