ResamplingThread

Resampling thread.

Constructor

new ResamplingThread()

Classes

ResamplingThread

Methods

ondone(_event)

Handle a completed resampling. Default behavior is do nothing, this is meant to be overridden.

Parameters:
NameTypeDescription
_eventobject

The work item event fired when a resampling calculation is completed.

ondoneframe(_event)

Handle a completed resampling of a 3D frame. Default behavior is do nothing, this is meant to be overridden.

Parameters:
NameTypeDescription
_eventobject

The work item event fired when a resampling calculation is completed.

run(sourceImageBuffer, sourceImageGeometry, pixelRepresentation, targetOrientation, interpolated, centerOfRotation) → {object}

Trigger a resampling.

Parameters:
NameTypeDescription
sourceImageBufferTypedArray

The buffer to resample.

sourceImageGeometryGeometry

The current image geometry.

pixelRepresentationnumber

The pixel representation of the original image.

targetOrientationMatrix33

The orientation to resample to.

interpolatedboolean

If true use bilinear sampling, otherwise use nearest neighbor.

centerOfRotationPoint | undefined

World space center of rotation.

Returns:

Updated buffer and geometry.

Type: 
object