FRED tools is a collection of python functions for image manipulation and analysis. The basic methods have been developed for analysis of the images produced by the Monte Carlo FRED (www.fred-mc.org) in MetaImage format (*.mha, *.mhd), but they can be applied for images in other formats, e.g. dicom.
The image in the FRED tools is understood to mean scalar or vector image of any dimension from 2D to 5D. All the images read or processed by the functions are SimpleITK images, and any SinmpleITK routines can be applied. Check SimpleITK filters for available methods of filtering, registration, etc. Because the smallest image dimension supported by SimpleITK is 2D, line profiles, i.e. 1D images are saved as SimpleITK images with the size with only one of the dimension different than one.
Most of the functions have a bool argument displayInfo (default displayInfo=False) which can be used for displaying summary of the function results.
The documentation of the functions implemented in FRED tools is available at fredtools.ifj.edu.pl or on the GitHub repository.
A simple tutorial has been prepared to help with starting using FRED tools.
FRED tools is not yet published on PyPI. It is available by cloning the repository from GitHub.
$ git clone https://github.com/jasqs/FREDtools.git
To update an existing clone:
$ git pull
Everyone is invited to support the development of the FRED tools and to add functionalities needed for a specific application. All the new functions or classes should be documented according to numpydoc style. Check numpydoc website for the style guide and examples.