Skip to main content

Function: cropFromVTKVolumeByCropBoundaries()

cropFromVTKVolumeByCropBoundaries(vtkVolume, cropRegion): TInteractiveImeasureCropResult

Defined in: src/cropping/index.ts:27

Crops a VTK volume using specified crop boundaries and returns the cropped volume data along with metadata.

This function takes a vtkImageData volume and a crop region definition, applies cropping planes, and computes the effective cropped boundaries in both voxel and world coordinates. The result includes the cropped volume, its scalar voxel values, and metadata about the crop operation.

Parameters

vtkVolume

vtkImageData

cropRegion

TIMeasureCropRegion

Returns

TInteractiveImeasureCropResult