Class: module:models/stack

module:models/stack()

new module:models/stack()

Models Stack constructor
Source:

Methods

(static) value(stack, coordinate) → {*}

Parameters:
Name Type Description
stack *
coordinate *
Deprecated:
  • for core.utils.value Get voxel value.
Source:
Returns:
Type
*

(static) valueRescaleSlopeIntercept(value, slope, intercept) → {*}

Parameters:
Name Type Description
value *
slope *
intercept *
Deprecated:
  • for core.utils.rescaleSlopeIntercept Apply slope/intercept to a value.
Source:
Returns:
Type
*

(static) worldToData(stack, worldCoordinates) → {*}

Parameters:
Name Type Description
stack *
worldCoordinates *
Deprecated:
  • for core.utils.worldToData Transform coordinates from world coordinate to data
Source:
Returns:
Type
*

_packTo8Bits(channels, frame, textureSize, startVoxel, stopVoxel)

Pack frame data to 32 bits texture
Parameters:
Name Type Description
channels *
frame *
textureSize *
startVoxel *
stopVoxel *
Source:

AABBox() → {*}

Get AABB size in LPS space.
Source:
Returns:
Type
*

centerAABBox()

Get AABB center in LPS space
Source:

computeIJK2LPS()

Compute IJK to LPS and invert transforms
Source:

computeLPS2AABB()

Compute LPS to AABB and invert transforms
Source:

computeMinMaxIntensities()

Find min and max intensities among all frames.
Source:

merge(stack) → {*}

Merge stacks
Parameters:
Name Type Description
stack *
Source:
Returns:
Type
*

pack()

Pack current stack pixel data into 8 bits array buffers
Source:

prepare() → {*}

Compute cosines Order frames computeSpacing sanityCheck init some vars compute min/max compute transformation matrices
Source:
Returns:
Type
*

prepareSegmentation()

Prepare segmentation stack. A segmentation stack can hold x frames that are at the same location but segmentation specific information: - Frame X contains voxels for segmentation A. - Frame Y contains voxels for segmenttation B. - Frame X and Y are at the same location. We currently merge overlaping frames into 1.
Source:

worldBoundingBox() → {*}

Get the stack world bounding box
Source:
Returns:
Type
*

worldCenter() → {*}

Get the stack world center
Source:
Returns:
Type
*

xySpacing()

FRAME CAN DO IT
Source:

zSpacing()

Compute stack z spacing
Source: