Skip to main content

Function: getSphereBoundsInfo()

getSphereBoundsInfo(circlePoints, imageData, viewport): object

Given an imageData, and the great circle top and bottom points of a sphere, this function will run the callback for each point of the imageData that is within the sphere defined by the great circle points. If the viewport is provided, region of interest will be an accurate approximation of the sphere (using viewport camera), and the resulting performance will be better.

Parameters

circlePoints: [Point3, Point3]

bottom and top points of the great circle in world coordinates

imageData: vtkImageData

The volume imageData

viewport: any

Returns

object

bottomRightWorld

bottomRightWorld: Types.Point3

boundsIJK

boundsIJK: BoundsIJK

centerWorld

centerWorld: Types.Point3

radiusWorld

radiusWorld: number

topLeftWorld

topLeftWorld: Types.Point3

Defined in

tools/src/utilities/getSphereBoundsInfo.ts:26