[Neuroimaging] Getting scaling and offset from nifti header in nibabel
stjeansam at gmail.com
Mon Jan 4 09:59:17 EST 2016
So I guess I'll experiment with converters that work and see if they give
the same field as the dicom themselves, thanks. Makes sense after all that
those field are written by the converter, which might not be reliable. What
are they supposed to contain/what is their usual purpose? Are those value
you should apply to the data for whatever reason or that is not defined in
the nifti standard?
2016-01-04 15:47 GMT+01:00 Matthew Brett <matthew.brett at gmail.com>:
> On Mon, Jan 4, 2016 at 2:43 PM, Samuel St-Jean <stjeansam at gmail.com>
> > That is a good question which I am also trying to find an answer to.
> > Actually, what are the slope and inter field specifically referring to?
> > I know that for some reason the scanner likes to recast everything
> between 0
> > and 4096 (probably for storage reason), so you cannot mix and match
> > acquisitions from the same session but acquired in different block
> > of that.
> > Because of some scaling (which I think might be slope and inter), it also
> > means that your magnitude/phase data has weird values (which make no
> > for the phase data), but correcting for this scaling from the dicom
> > fix it.
> > This field (which has a private tag for philips, but I can try to dig it
> > from somewhere with pydicom) let's you indeed recover sane values, so I
> > wondering if it is related to the slope and inter field from the nifti
> > thus no need to dig it out from the dicom. The whole point if this nifti
> > field is the same as the one in the dicom, I could dump my custom,
> > half-baked dicom converter for problematic files and just scale the
> > converted nifti myself (provided a converter works, magnitude/phase data
> > so seldom used that I have no tool working on those, if anyone has
> > suggestions.)
> > Didn't know about the dataobj thing though, thanks for pointing it out.
> The slope and inter fields are what was in the nifti header when you
> loaded the image.
> How those values came about will depend on how the niftis got
> generated by your scanner or conversion, it's difficult to speculate
> further. You could have a look at the DICOM values and see how they
> compare, but that might not give you a reliable answer,
> Neuroimaging mailing list
> Neuroimaging at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Neuroimaging