93 #ifndef vtkImageConnectivityFilter_h
94 #define vtkImageConnectivityFilter_h
97 #include "vtkImagingMorphologicalModule.h"
170 vtkSetMacro(LabelScalarType,
int);
171 vtkGetMacro(LabelScalarType,
int);
191 vtkSetMacro(LabelMode,
int);
192 vtkGetMacro(LabelMode,
int);
207 vtkSetMacro(ExtractionMode,
int);
208 vtkGetMacro(ExtractionMode,
int);
216 vtkSetMacro(LabelConstantValue,
int);
217 vtkGetMacro(LabelConstantValue,
int);
274 vtkSetVector2Macro(ScalarRange,
double);
275 vtkGetVector2Macro(ScalarRange,
double);
282 vtkSetMacro(ActiveComponent,
int);
283 vtkGetMacro(ActiveComponent,
int);
293 double ScalarRange[2];
Proxy object to connect input/output ports.
abstract class to specify dataset behavior
dynamic, self-adjusting array of vtkIdType
Generic algorithm superclass for image algs.
Label an image by connectivity.
void SetExtractionModeToAllRegions()
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
void SetExtractionModeToLargestRegion()
~vtkImageConnectivityFilter() override
const char * GetLabelScalarTypeAsString()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkAlgorithmOutput * GetSeedConnection()
void SetLabelScalarTypeToShort()
vtkIdType GetNumberOfExtractedRegions()
Get the number of extracted regions.
void SetStencilData(vtkImageStencilData *data)
vtkIdTypeArray * ExtractedRegionSeedIds
const char * GetExtractionModeAsString()
void SetSeedData(vtkDataSet *data)
vtkTypeBool GenerateRegionExtents
const char * GetLabelModeAsString()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called in response to a REQUEST_DATA request from the executive.
vtkIdTypeArray * GetExtractedRegionLabels()
Get the label used for each extracted region.
ExtractionModeEnum
Enum constants for SetExtractionMode().
vtkAlgorithmOutput * GetStencilConnection()
vtkIdTypeArray * ExtractedRegionSizes
void SetLabelScalarTypeToInt()
void SetSeedConnection(vtkAlgorithmOutput *port)
The input for seed locations (input port 1).
vtkIdTypeArray * GetExtractedRegionSizes()
vtkIntArray * GetExtractedRegionExtents()
Get the extent (a 6-tuples) for each output region.
void SetLabelScalarTypeToUnsignedChar()
Set the scalar type for the output label image.
void SetLabelModeToConstantValue()
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to translate the update extent requests from each output port ...
LabelModeEnum
Enum constants for SetLabelMode().
vtkIntArray * ExtractedRegionExtents
static vtkImageConnectivityFilter * New()
void SetLabelScalarTypeToUnsignedShort()
vtkImageConnectivityFilter()
vtkIdTypeArray * GetExtractedRegionSeedIds()
Get the PointId of the seed for each region.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ComputeInputUpdateExtent(int inExt[6], int outExt[6])
vtkIdTypeArray * ExtractedRegionLabels
void SetExtractionModeToSeededRegions()
Set which regions to output from this filter.
void SetLabelModeToSeedScalar()
Set the mode for applying labels to the output.
void SetStencilConnection(vtkAlgorithmOutput *port)
The input for a stencil (input port 2).
void SetLabelModeToSizeRank()
topologically and geometrically regular array of data
efficient description of an image stencil
a simple class to control print indentation
dynamic, self-adjusting array of int
#define VTK_UNSIGNED_CHAR
#define VTK_UNSIGNED_SHORT