Skip to content

Issue casting Philips NIfTI images to short (16-bit) type #6

@jhuguetn

Description

@jhuguetn

One of the early ASHS steps (ashs_template_qsub.sh) casts both MPRAGE and TSE images to 'short' data type, see ashs_template_qsub.sh#L62 and ashs_template_qsub.sh#L112.

Our MRI data was acquired in a Philips scanner, vendor known for the complexity to deal with its scaling transformations (see here). Thus, my dcm2niix-converted NIfTIs include a high scaling slope value (multiplicative factor applied to the image stored values) which leads to large ranges of intensities once applied to image data. This Philips eventuality combined with the aforementioned casting transformation applied by ASHS, leads in some cases to bad registration and segmentation results.
Example of c3d $IN_IMG -type short -o $OUT_IMG casting results,
image

I found someone here posting a similar issue and the solution proposed was using ANTS to transform the image intensities to a given range (0-1000) before running ASHS.
In addition, the ashs_template_qsub.sh script has a commented line suggesting to apply a linear transformation of the intensities with c3d itself to 0-4096 but that was somehow discarded do to some further troubles with old atlases. See,

### TODO: I took this out because it was messing up CL with old atlases!
### c3d $ASHS_MPRAGE -stretch 1% 99% 0 4096 -clip 0 4096 -type short -o $SUBJ_MPRAGE

What approach would you primarily recommend to mitigate/fix that issue and be able to run ASHS normally on those images?

Thanks in advance,
Jordi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions