Skip to main content

Function: normalizeViewportPlane()

normalizeViewportPlane(viewport, boundsIJK): object | object | object

This function returns a set of functions that normalize the viewport plane into i', j', k' from the image space i,j,k such that i', j' are within viewport indices corresponding to 1 pixel distance on the underlying view space. As well, the function returns a dimension for the total view space that corresponds to a [0,dimension) index for the given bounds.

Basically, this allows creating a view or even instantiating a non-acquisition plane representation of an MPR view.

Parameters

viewport: Viewport

boundsIJK: BoundsIJK

Returns

object | object | object

Defined in

tools/src/utilities/normalizeViewportPlane.ts:35