Skip to content

Julia package for loading Philips' PAR/REC and XML/REC files

License

Notifications You must be signed in to change notification settings

kamesy/ParXRec.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ParXRec.jl

build status

Julia package for loading Philips' PAR/REC and XML/REC files.

Installation

ParXRec requires Julia v1.0 or later.

julia> ]add ParXRec

Usage

Load PAR/XML header and REC data:

using ParXRec

rec = ParXRec.load("file.{PAR, XML, REC}")
hdr = rec.hdr
data = rec.data

Load PAR/XML header only:

rec = ParXRec.load("file.{PAR, XML, REC}", load_data = false)
hdr = rec.hdr

Extract data dimensions, voxel size, and echo times from header:

sz  = datadims(hdr)
vsz = voxelsize(hdr)
TEs = echotimes(hdr)

Notes

  • Supports PAR versions 3, 4, 4.1, 4.2.

  • REC data is sorted and loaded into a single array. The dimensions are:

    • slices
    • echoes
    • dynamics
    • cardiac phases
    • diffusion b values
    • gradient orientations
    • label types
    • image types
    • sequences

    Singleton dimensions (except for slices) are removed.

About

Julia package for loading Philips' PAR/REC and XML/REC files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages