Classes
Methods
ondone(_event)
Handle a completed resampling. Default behavior is do nothing, this is meant to be overridden.
Parameters:
| Name | Type | Description |
|---|---|---|
_event | object | 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:
| Name | Type | Description |
|---|---|---|
_event | object | The work item event fired when a resampling calculation is completed. |
run(sourceImageBuffer, sourceImageGeometry, pixelRepresentation, targetOrientation, interpolated, centerOfRotation) → {object}
Trigger a resampling.
Parameters:
| Name | Type | Description |
|---|---|---|
sourceImageBuffer | TypedArray | The buffer to resample. |
sourceImageGeometry | Geometry | The current image geometry. |
pixelRepresentation | number | The pixel representation of the original image. |
targetOrientation | Matrix33 | The orientation to resample to. |
interpolated | boolean | If true use bilinear sampling, otherwise use nearest neighbor. |
centerOfRotation | Point | | World space center of rotation. |
Returns:
Updated buffer and geometry.
- Type:
- object