Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
STIR
Search
Search
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Python and MATLAB interface to STIR
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
Since STIR 3.0, we use [http://www.swig.org SWIG] to provide an interface to the underlying C++ library. This currently works best with Python, with work-in-progress for MATLAB (see also [[ Installing the MATLAB interface to STIR]]). Unfortunately there isn’t yet much documentation on what is available in the Python (or MATLAB) interface. You can use native help to find out about classes etc, but those are currently not documented. (There is some work in SWIG to be able to export the doxygen documentation from the C++ source files to Python, so hopefully this will change in the near feature). Currently you therefore need to look at the C++ class definition to see what each member those. That is of course easiest via the [http://stir.sourceforge.net/documentation/doxy/html/ STIR doxygen-generated help], and of course at the examples provided in the <tt>examples</tt> folder. The [https://github.com/UCL/STIR-exercises STIR exercises] use Python so would be useful as well. You could also have a look at <tt>src/swig/stir.i</tt>. It’s very ugly currently, but it does tell you what classes are exported (just look at <code>%include</code>). Also, it’s relatively easy to add something that is missing (which is why we use SWIG).
Summary:
Please note that all contributions to STIR may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
STIR:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Toggle limited content width