Giter VIP home page Giter VIP logo

niftypy's Introduction

NiftyPy

NiftyPy is a Python wrapper of the NiftyRec C library. The NiftyRec library provides GPU-accelerated ray-tracers for Posotron Emission Tomography (PET), Single Photon Emission Computed Tomography (SPECT) and X-Ray Computed Tomography (CT).

Installation

Linux, MacOsX, Win

There are two ways to install under Linux and MacOsX and Windows:

  1. If you have pip installed:

pip install niftypy

  1. download source files, uncompress, at the command line cd to the downloaded folder and run:

python setup.py build test install

Website

NiftyPy home page.

niftypy's People

Contributors

spedemon avatar

Stargazers

Gao Size avatar  avatar Lucas Payne avatar  avatar Adam Tyson avatar Steven Goodman avatar

Watchers

James Cloos avatar  avatar

Forkers

alabamagan

niftypy's Issues

Basic Example for PET OSEM Reconstruction?

Hi Stefano,

NiftyRec looks very promising, and I was able to get both the NiftyRec libraries installed (from the binary installer) and the NiftyPy wrapper set up (from pip, currently, but that's probably not master since import NiftyCore doesn't work). However, I'm totally clueless now as to what methods are required for running reconstruction.

My use case is a set of list-mode PET scans that I would like to reconstruct, probably using something simple like OSEM. I looked at the help for NiftyPy.NiftyRec.NiftyRec.PET_Project and see the arguments are "activity", "attenuation", and "binning". I also saw from the Programming Manual from 2012 that the inputs to these should be numpy arrays. However, when I look at the ctypes wrapper, it doesn't look like the "binning" argument is even used, and trying to run with made up data (a bunch of ones() and zeros() also following the manual matlab Transmission Tomography example, it's failing testing the exit status of the call - whatever was returned isn't even setting a .status attribute.

The data that I'm trying to reconstruct is from the MGH PET/MR scanner, so your back yard so to speak. Would you be interested in helping me adapt NiftyRec and your wrapper to it? If so I'd be happy to potentially write up some examples or tutorials, but my PET knowledge is fairly weak so I would definitely need help.

If tutorials or examples exist please send them my way; I won't be able to use this without a little more direction! Thanks in advance,

Erik

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.