Skip to main content

Function: pointInShapeCallback()

pointInShapeCallback(imageData, options): PointInShape[] | undefined

For each point in the image (If boundsIJK is not provided, otherwise, for each point in the provided bounding box), It runs the provided callback IF the point passes the provided criteria to be inside the shape (which is defined by the provided pointInShapeFn)

You must record points in the callback function if you wish to have an array of the called points.

Parameters

imageData: vtkImageData | CPUImageData

The image data object.

options: PointInShapeOptions

Returns

PointInShape[] | undefined

Defined in

packages/core/src/utilities/pointInShapeCallback.ts:64