Skip to content

Python class dedicated to reading and processing PAR REC files from Philips MRI Scanners

Notifications You must be signed in to change notification settings

gedeon1310/Python-PAR-REC-Reader-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Python-PAR-REC-Reader-

Python class dedicated to reading and processing PAR REC files from Philips MRI Scanners

General Informations

This class aims to facilitate handling of PAR and REC files, using Python. Code has been developed based on previous Matlab formulation : https://www.mathworks.com/matlabcentral/fileexchange/38797-matlab-par-rec-reader-readparrec42-m Useful sample files are provided.

Inputs:

Class instantiation requires paths of PAR and REC files

  • PAR file is a text file containing general informations about the acquisition and more specific image related parameters.
  • REC file contains images. Images are built based on extracted PAR informations.

Statics methods dedicated to each file type reading are provided.

Outputs:

Each class instance contains:

  • PAR file informations :

    • General parameters about(python dictionary)
    • Sequence informations as a Pandas DataFrame, indexing acquisition parameters for all images of the sequence.
  • REC data:

    • reshaped REC data based on reconstruction parameters.

Comments:

This code has been written in order to be as flexible as possible. However, due to initial PAR file structure, some adjustements might be required regarding sequences or updates (e.g. adjusting PAR file text lines indexes in the code to extract relevant sections). Comments in the code are dedicated to help.

About

Python class dedicated to reading and processing PAR REC files from Philips MRI Scanners

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages