Difference between revisions of "Modules:PythonNumpyScript-Documentation-3.4"
Line 62: | Line 62: | ||
Follow this [http://viewvc.slicer.org/viewcvs.cgi/trunk/Modules/Python/ link] to the module. | Follow this [http://viewvc.slicer.org/viewcvs.cgi/trunk/Modules/Python/ link] to the module. | ||
− | [http://www.na-mic.org/Slicer/Documentation/Slicer3/html/ Links] to documentation generated by doxygen. | + | [http://www.na-mic.org/Slicer/Documentation/Slicer3-doc/html/ Links] to documentation generated by doxygen. |
− | |||
== More Information == | == More Information == |
Latest revision as of 22:25, 15 January 2010
Home < Modules:PythonNumpyScript-Documentation-3.4Return to Slicer 3.4 Documentation
Module Name
Python Numpy Script
General Information
Module Type & Category
Type: CLI
Category: Python Modules
Authors, Collaborators & Contact
- Luca Antiga: Mario Negri Institute
- Daniel Blezek: Mayo Clinic
- Contact: Luca Antiga, antiga@marionegri.it
Module Description
This Python module makes it easy to experiment with Numpy in Slicer without interacting with the console and without restarting Slicer when working on the code. The module is meant for experimentation and fast prototyping, and it is not recommended for deployment of full-fledged Python Numpy modules.
Usage
Examples, Use Cases & Tutorials
- The module is appropriate when a user wants to try out or rapidly prototype Python code in Slicer, prior to writing full-fledged modules and without need of restarting slicer in-between modifications.
- The recent availability of an iPython console in Slicer has made it more convenient to use the interactive console for the same tasks.
Quick Tour of Features and Use
List all the panels in your interface, their features, what they mean, and how to use them. For instance:
- Python Script Parameters:
- Script file: the (text) file where the Python Numpy code is located
- IO:
- Input Volume: the input volume, to be referenced as variable "iarray" in the Python Numpy code contained in the Script file.
- Input Volume2: a second input volume, to be referenced as variable "iarray2" in the Python code contained in the Script file.
- Output Volume: the output volume, to be referenced as variable "oarray" in the Python code contained in the Script file (if the output is a 2D image, the variable name is "oarray2D". The orientation of the output volume is copied to the orientation of the input volume.
Example of Python Numpy code contained in the Script file is
oarray = iarray[:]
Development
Dependencies
Python
Known bugs
Follow this link to the Slicer3 bug tracker.
Usability issues
Follow this link to the Slicer3 bug tracker. Please select the usability issue category when browsing or contributing.
Source code & documentation
Follow this link to the module.
Links to documentation generated by doxygen.