Skip to content

Conversation

cancan101
Copy link

You can then parse as:

    const file = nifti.parse(buffer);
    let shape = file.sizes.slice().reverse();
    if (file.type === 'complex128') {
      shape = [...shape, 2];
    }
    const array = ndarray(file.data, shape);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant