Am I correct that the ITK image reader is applying the slope and intercept automatically? Or do I have to manually multiply by the slope and add the intercept to get the correct values?
All other softwares I used for comparison (Matlab, nibabel in python, etc) can read the image correctly. But when I read it with ITK, i get as maximum intensity 32767 as if the image would not have been scaled. When I scale it then manually by mutliplying with slope, I get the correct values. How can that be?
thanks! But officially that is not correct, right? Because I read that the scaling with slope and intercept should always be applied also when sform and qform are 0…
Anyhow, I can make a workaround in my code. So thanks a lot for the information!
Where is the official answer to this question? Also, you could dig a little through git history of that file to see when changes were made, and maybe also why.
Well, officially is a bit difficult to define. We just had a big discussion in our group whats the right way to handle nifti images… And what we found online in the header descriptions was that scaling should always be applied. Anyhow, I will check the history! Thank you!