Skip to content

Function: createNeuroSlice()

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

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

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.

Released under the MIT License.