Dictionary (mapping) for storing several volume masks.
A typical use case is storing results from (surface-based) voxel selection.
@author: nick
WiP. TODO: make target to sources dictionary computations ‘lazy’-only compute the first time this is asked. XXX How to deal with __setstate__ and __getstate__ - have to flag somehow whether this mapping was present.
Functions
from_any(s) | Load (if a string) or just return voxel selection |
h5load(filename[, name]) | Loads the content of an HDF5 file that has been stored by h5save(). |
h5save(filename, data[, name, mode, mkdir]) | Stores arbitrary data in an HDF5 file. |
Classes
Mapping | A Mapping is a generic container for associating key/value pairs. |
VolumeMaskDictionary(vg, source[, meta, ...]) | Collection of 3D volume masks, indexed by integers or strings. |
deprecated([extra]) | Decorator to mark a function or class as deprecated. |