Skip to content

nib.get_header() return negative dim #548

Closed
@Stuming

Description

@Stuming

when I tried to use nibabel to get data from fmcpr.up.sm0.self.lh.nii.gz, which was created through freesurfer preproc-sess -surface self command, I get -1 in dim, like this: dim : [ 4 -1 1 1 451 1 1 1], which actually has 140k vertex if checked by mri_info.

It seems due to the limitation of Nifti1, the dim cannot larger than 32k, and I tried mri_convert *.nii.gz *.mgz could fix this, but it may be helpful for others if nibabel could get data from these negative dim file. And if freesurfer could write files by Nifti2 format, this could also be solved.

Thanks for your reading:)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions