Skip to content

Function: createNeuroVol() ​

ts
function createNeuroVol(
   type, 
   space, 
   data?): NeuroVol;

Defined in: src/volume/NeuroIm.ts:72

Factory function to create specific NeuroVol instances based on TypedArray type.

Parameters ​

type ​

NumericType

The type of TypedArray to use.

space ​

NeuroSpace

The geometric space of the volume data.

data? ​

TypedArray

The raw 3D volume data.

Returns ​

NeuroVol

An instance of NeuroVol.

Throws ​

UNSUPPORTED_DATATYPE for a type with no volume class ('uint32').

Released under the MIT License.