Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

fepegar/slicer-niftyreg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NiftyReg

3D Slicer module as a GUI for NiftyReg, an open-source software for efficient medical image registration developed by Marc Modat at the University College London.

In a terminal, run:

mkdir ~/git
cd ~/git
git clone https://github.com/fepegar/slicer-niftyreg.git
mkdir ~/bin
cd ~/bin
ln -s $(which reg_aladin)
ln -s $(which reg_f3d)

In ~/.slicerrc.py:

import os
import qt

moduleFactory = slicer.app.moduleManager().factoryManager()
 
dirs = ['~/git/slicer-niftyreg']

dirs = filter(os.path.isdir, [os.path.expanduser(d) for d in dirs])

for d in dirs:
    for fn in os.listdir(d):
        if not fn.endswith('.py'):
            continue
        fp = os.path.join(d, fn)
        moduleFactory.registerModule(qt.QFileInfo(fp))
        moduleFactory.loadModules([os.path.splitext(fn)[0]])

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages