Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A simple package for converting a 4dfp brain image into a Numpy array.

License

Notifications You must be signed in to change notification settings

washu-ocean/fourdfpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fourdfpy

This is a (very!) simple package for converting the binary data from Avi Snider's 4dfp neuroimaging file format into a Numpy array, that can then be used in your Python scripts.

Based off of the Julia package written by Michael Myers.

Install

pip install fourdfpy

Running

import fourdfpy

my_4dfp_data = fourdfpy.load("/path/to/myimg")

The path to the 4dfp files should only include the root name without the extension (example: "/path/to/myimg.4dfp.img" should instead be "/path/to/myimg"). Make sure the .4dfp.img and .4dfp.hdr files are in the same directory.

  • TODO: add support for including file extension.

About

A simple package for converting a 4dfp brain image into a Numpy array.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages