Convert between ndarrays and rle volumes
npm install rle-ndarrayrle-ndarray
===========
Conversion between rle volumes and ndarrays
npm install rle-ndarray
``javascript`
var convert = require("rle-ndarray")
* volume is the volume we are convertingbounds is a bound on the region to convert (optional)
*
Returns An object containing a pair of ndarrays:
* phase is the phase field of the volume
* distance is the distance field of the volume
* phase an array of phases
* distance 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