Skip to content

Instantly share code, notes, and snippets.

View eilidhmacnicol's full-sized avatar

Eilidh MacNicol eilidhmacnicol

View GitHub Profile
@eilidhmacnicol
eilidhmacnicol / RASconverter.py
Last active May 19, 2021 10:36
Convert nifti images to and from RAS+ orientation
#!/usr/bin/env python
"""
Function to orient nifti images associated with the KCL BRAIN
centre Bruker scanner, via brukerconvert etc, to and from RAS+
standard orientation.
Requirements:
- nibabel and numpy libraries
- a string; name of image to be converted
E MacNicol 20/08/2020 (eilidh.macnicol@kcl.ac.uk)