Fourdfp.jl

A Julia package for reading Washington University's 4dfp filetype for volumetric neuroimaging data
Author myersm0
Popularity
1 Star
Updated Last
9 Months Ago
Started In
September 2023

Fourdfp

This package implements a simple 4dfp-reading function Fourdfp.load(filename) for the Julia language.

4dfp is a format for storing volumetric fMRI images, developed at Washington University in St. Louis by Avi Snyder. For further information, see its documentation.

Installation

Within Julia:

using Pkg
Pkg.add("Fourdfp")

Usage

Just call Fourdfp.load(filename), optionally with a byte_order keyword argument (LittleEndian or BigEndian). If the latter is omitted, the package will attempt to determine your file's byte order by parsing its .ifh (inter-file header) file. Since 4dfp files come in sets of 3 or 4 (.4dfp.img, .4dfp.ifh, .4dfp.hdr), the filename you specify can be any one of that set or for brevity you can just omit the .4dfp.* file extension.

using Fourdfp
my_data_array = Fourdfp.load(filename; byte_order = LittleEndian)

The return value will be an Array{Float32, 4}, where the dimensions represent x, y, z, and time.

Stable Dev Build Status Coverage

Required Packages

Used By Packages

No packages found.