Thursday, November 3, 2011

Build Mamba 1.0 on Ubuntu 10.10

Mamba is a python mathematical morphology library. When dependencies are satisfied, installation is fast and simple. Once installed, from a python console:

>>> import mamba
>>> dir(mamba) 
['DEFAULT_GRID', 'EMPTY', 'FILLED', 'HEXAGONAL', 'MambaError', 'SQUARE', 'VERSION', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '_always_show', '_blue_val', '_edge', '_green_val', '_grid', '_i', '_image_index', '_j', '_k', '_red_val', 'add', 'addConst', 'basinSegment', 'buildNeighbor', 'checkEmptiness', 'compare', 'computeDistance', 'computeMaxRange', 'computeRange', 'computeVolume', 'convert', 'convertByMask', 'copy', 'copyBitPlane', 'copyBytePlane', 'copyLine', 'cropCopy', 'diff', 'diffNeighbor', 'divConst', 'dualbuildNeighbor', 'extractFrame', 'generateSupMask', 'getDirections', 'getDisplayer', 'getHistogram', 'getImageCounter', 'getShowImages', 'gridNeighbors', 'hierarBuild', 'hierarDualBuild', 'hitOrMiss', 'imageMb', 'infFarNeighbor', 'infNeighbor', 'inverted_rainbow', 'label', 'logic', 'lookup', 'mambaCore', 'mbUtls', 'mul', 'mulConst', 'negate', 'os', 'patchwork', 'rainbow', 'raiseExceptionOnError', 'raiseWarning', 'rotateDirection', 'setDefaultGrid', 'setImageIndex', 'setMaxDisplay', 'setMinDisplay', 'setShowImages', 'shift', 'sub', 'subConst', 'supFarNeighbor', 'supNeighbor', 'threshold', 'tidyDisplays', 'transposeDirection', 'watershedSegment']