{"action":"opened","issue":{"url":"https://api.github.com/repos/spedemon/niftypy/issues/1","labels_url":"https://api.github.com/repos/spedemon/niftypy/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/spedemon/niftypy/issues/1/comments","events_url":"https://api.github.com/repos/spedemon/niftypy/issues/1/events","html_url":"https://github.com/spedemon/niftypy/issues/1","id":58990479,"number":1,"title":"Basic Example for PET OSEM Reconstruction?","user":{"login":"kastman","id":44843,"avatar_url":"https://avatars.githubusercontent.com/u/44843?v=3","gravatar_id":"","url":"https://api.github.com/users/kastman","html_url":"https://github.com/kastman","followers_url":"https://api.github.com/users/kastman/followers","following_url":"https://api.github.com/users/kastman/following{/other_user}","gists_url":"https://api.github.com/users/kastman/gists{/gist_id}","starred_url":"https://api.github.com/users/kastman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kastman/subscriptions","organizations_url":"https://api.github.com/users/kastman/orgs","repos_url":"https://api.github.com/users/kastman/repos","events_url":"https://api.github.com/users/kastman/events{/privacy}","received_events_url":"https://api.github.com/users/kastman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-25T23:54:36Z","updated_at":"2015-02-25T23:54:36Z","closed_at":null,"body":"Hi Stefano,\r\n\r\nNiftyRec 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. \r\n\r\nMy 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.\r\n\r\nThe 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.\r\n\r\nIf 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,\r\n\r\nErik\r\n"}}