Skip to content

BFSConnectivityFilter

Introduction

vtkBFSConnectivityFilter - Use BFS to find connected regions and extract regions After searching for connected regions, set extractionMode(All, Largest, smallest) or (Custom) and extractionIndex to extract the required connected regions. The input output of the filter is polygonal data.

Methods

extend

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

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

getExtractionIndex

Get the extractionIndex.

getExtractionMode

Get the ExtractionMode.

getRegionsCount

Get the count of regions.

newInstance

Method used to create a new instance of vtkBFSConnectivityFilter

ArgumentTypeRequiredDescription
initialValuesIBFSConnectivityFilterInitialValuesNofor pre-setting some of its content

requestData

ArgumentTypeRequiredDescription
inDataYes
outDataYes

setExtractionIndex

Set the index to extract regions. should be 0 ~ regionsCount-1.

ArgumentTypeRequiredDescription
extractionIndexNumberYes

setExtractionMode

Set the extractionMode to extract the required connected regions

ArgumentTypeRequiredDescription
extractionModeExtractionModeYes

setRegionsCount

ArgumentTypeRequiredDescription
regionsCountNumberYes