Introduction

Mango is a collection of 3D MPI-distributed image processing filters.

This tutorial will acquaint the first-time user of Mango with some of its features. It assumes that the user has already installed the Mango package. Some general Python facility is also assumed. acquired by working through the Python distribution’s Tutorial.

For brevity and convenience, we will often assume that the main package (mango) has been imported as:

>>> import mango

Mango Organization

Mango is organised into sub-packages covering different functionality.

Sub-package Description
core Fundamental MPI distributed data structures and functions.
io Input/Output
image Image processing filters.
mpi Message Passing Interface parallelism.
data Functions/classes for generating synthetic images.

Python’s documentation strings are used in Mango for on-line documentation. There are two methods for reading them and getting help. One is Python’s command help() in the pydoc module. Entering this command with no arguments (i.e. >>> help ) launches an interactive help session that allows searching through the keywords and modules available to all of Python. Secondly, running the command help(obj) with an object as the argument displays that object’s calling signature, and documentation string.

Another useful command is inspect.getsource(). When given a function written in Python as an argument, it prints out a listing of the source code for that function. This can be helpful in learning about an algorithm or understanding exactly what a function is doing with its arguments. Also don’t forget about the Python command dir() which can be used to look at the namespace of a module or package.

Table Of Contents

Previous topic

Mango Python API Tutorial

Next topic

Basic functions

This Page