rejiggering

This commit is contained in:
Cadey Ratio 2019-08-23 13:18:28 -04:00
parent 9d64dd9cc2
commit d249d0d4bf
1 changed files with 10 additions and 6 deletions

View File

@ -39,13 +39,15 @@ $ source env/bin/activate
(env) $ python3 setup.py install (env) $ python3 setup.py install
``` ```
Then I ran it with the following settings to get this first result: Then I ran it with the following settings to get [this first result][firstgif]:
``` ```
(env) $ gif_your_nifti christine_brain.nii.gz --mode pseudocolor --cmap plasma (env) $ gif_your_nifti christine_brain.nii.gz --mode pseudocolor --cmap plasma
``` ```
<center><video src="/static/blog/christine-frmi-raw.mp4">A sideways view of the brain</video></center> <center><video controls> <source src="https://xena.greedo.xeserv.us/files/christine-fmri-raw.mp4" type="video/mp4">A sideways view of the brain</video></center>
<small>(sorry the video embed isn't working in safari)</small>
It looked weird though, that's because the fMRI scanner I used has a different It looked weird though, that's because the fMRI scanner I used has a different
rotation to what's considered "normal". The gif\_your\_nifti repo mentioned a rotation to what's considered "normal". The gif\_your\_nifti repo mentioned a
@ -66,10 +68,12 @@ $ fslreorient2std christine_brain.nii.gz christine_brain_reoriented.nii.gz
This produced a slightly smaller [reoriented file][secondniifile]. This produced a slightly smaller [reoriented file][secondniifile].
I reran gif\_your\_nifti on this reoriented file and got this result I reran gif\_your\_nifti on this reoriented file and got [this result][secondgif]
which looked a _lot_ better: which looked a _lot_ better:
<center><video src="/static/blog/christine-fmri-reoriented.mp4">A properly reoriented brain</video></center> <center><video controls> <source src="https://xena.greedo.xeserv.us/files/christine-fmri-reoriented.mp4">A properly reoriented brain</video></center>
<small>(sorry again the video embed isn't working in safari)</small>
### FreeSurfer ### FreeSurfer
@ -140,8 +144,8 @@ things I've ever done (if not the coolest) and I'm going to be able to get a
[r3dprinting]: https://www.reddit.com/r/3Dprinting/comments/2w0zxx/magnetic_resonance_image_nii_to_stl/ [r3dprinting]: https://www.reddit.com/r/3Dprinting/comments/2w0zxx/magnetic_resonance_image_nii_to_stl/
[freesurfer]: https://surfer.nmr.mgh.harvard.edu/fswiki/FreeSurferWiki [freesurfer]: https://surfer.nmr.mgh.harvard.edu/fswiki/FreeSurferWiki
[gyn]: https://github.com/miykael/gif_your_nifti [gyn]: https://github.com/miykael/gif_your_nifti
[firstgif]: https://xena.greedo.xeserv.us/files/christine_brain_plasma.gif [firstgif]: /static/blog/christine-fmri-raw.mp4
[secondgif]: https://xena.greedo.xeserv.us/files/christine_brain_reoriented_plasma.gif [secondgif]: /static/blog/christine-fmri-reoriented.mp4
[fsl]: https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/ [fsl]: https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/
[blender]: https://www.blender.org [blender]: https://www.blender.org
[galaxybrain]: https://knowyourmeme.com/memes/expanding-brain [galaxybrain]: https://knowyourmeme.com/memes/expanding-brain