Skip to content

Function: createNeuroSlice() ​

ts
function createNeuroSlice(
   type, 
   space, 
   data): NeuroSlice;

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

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

Parameters ​

type ​

NumericType

The type of TypedArray to use.

space ​

NeuroSpace

The geometric space of the slice data.

data ​

TypedArray

The raw 2D slice data.

Returns ​

NeuroSlice

An instance of NeuroSlice.

Throws ​

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

Released under the MIT License.