Skip to content

ImageCropFilter

Introduction

The vtkImageCropFilter will crop a vtkImageData. This will only crop against IJK-aligned planes.

Note this is slow on large datasets due to CPU-bound cropping.

Methods

extend

Method used to decorate a given object (publicAPI+model) with vtkImageCropFilter characteristics.

ArgumentTypeRequiredDescription
publicAPIYesobject on which methods will be bounds (public)
modelYesobject on which data structure will be bounds (protected)
initialValuesIImageCropFilterInitialValuesNo(default: {})

getCroppingPlanes

Get The cropping planes, in IJK space.

getCroppingPlanesByReference

Get The cropping planes, in IJK space.

isResetAvailable

newInstance

Method used to create a new instance of vtkImageCropFilter

ArgumentTypeRequiredDescription
initialValuesIImageCropFilterInitialValuesNofor pre-setting some of its content

requestData

ArgumentTypeRequiredDescription
inDataYes
outDataYes

reset

setCroppingPlanes

ArgumentTypeRequiredDescription
croppingPlanesYes

setCroppingPlanesFrom

ArgumentTypeRequiredDescription
croppingPlanesYes