Skip to content

Conversation

@saundersresearch
Copy link
Collaborator

Description

I have added nifti2png, which renders a 2D slice from a 3D NIFTI image.

Changes Made

  • Added open_dive.viz.plot_nifti(), the Python function for plotting a 2D slice
  • Added entrypoint open_dive.scripts.nifti2png() for CLI as nifti2png

Testing

  • I tested the plot with Dipy's stanford_hardi T1 and compared to what I expect from FSLeyes:

test_t1_sagittal
test_t1_coronal
test_t1_axial
fsleyes_t1

  • I have performed a self-review of my code.
  • I have updated documentation and added docstrings as needed.

@ElyssaMcMaster ElyssaMcMaster merged commit 048a507 into MASILab:main Jan 22, 2025
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.

2 participants