Conversion between rle volumes and ndarrays
npm install rle-ndarray
var convert = require("rle-ndarray")
convert.rle2array(volume[, bounds])Converts an rle data structure into an ndarray
volume is the volume we are convertingReturns An object containing a pair of ndarrays:
phase is the phase field of the volumedistance is the distance field of the volumeconvert.array2rle(phase[, distance, offset])Converts an ndarray into an rle data structure
phase an array of phasesdistance approximate signed distance to boundary (default constant 1.0)offset a translational offset which is applied to the array (default [0,0,0])Returns An ndarray encoding the array
(c) 2013 Mikola Lysenko. MIT License