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()
Set which regions to output from this filter.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
void SetExtractionModeToLargestRegion()
Set which regions to output from this filter.
~vtkImageConnectivityFilter() override
vtkIdTypeArray * GetExtractedRegionSizes()
int FillInputPortInformation(int port, vtkInformation *info) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
const char * GetExtractionModeAsString()
Set which regions to output from this filter.
void SetLabelScalarTypeToShort()
Set the scalar type for the output label image.
const char * GetLabelScalarTypeAsString()
Set the scalar type for the output label image.
vtkAlgorithmOutput * GetStencilConnection()
The input for a stencil (input port 2).
vtkAlgorithmOutput * GetSeedConnection()
The input for seed locations (input port 1).
vtkIdType GetNumberOfExtractedRegions()
Get the number of extracted regions.
void SetStencilData(vtkImageStencilData *data)
The input for a stencil (input port 2).
vtkIdTypeArray * ExtractedRegionSeedIds
vtkIdTypeArray * GetExtractedRegionSeedIds()
Get the PointId of the seed for each region.
void SetSeedData(vtkDataSet *data)
The input for seed locations (input port 1).
vtkTypeBool GenerateRegionExtents
const char * GetLabelModeAsString()
Set the mode for applying labels to the output.
static vtkImageConnectivityFilter * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called in response to a REQUEST_DATA request from the executive.
ExtractionModeEnum
Enum constants for SetExtractionMode().
vtkIdTypeArray * ExtractedRegionSizes
void SetLabelScalarTypeToInt()
Set the scalar type for the output label image.
void SetSeedConnection(vtkAlgorithmOutput *port)
The input for seed locations (input port 1).
void SetLabelScalarTypeToUnsignedChar()
Set the scalar type for the output label image.
void SetLabelModeToConstantValue()
Set the mode for applying labels to the output.
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().
vtkIdTypeArray * GetExtractedRegionLabels()
Get the label used for each extracted region.
vtkIntArray * ExtractedRegionExtents
vtkIntArray * GetExtractedRegionExtents()
Get the extent (a 6-tuples) for each output region.
void SetLabelScalarTypeToUnsignedShort()
Set the scalar type for the output label image.
vtkImageConnectivityFilter()
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()
Set the mode for applying labels to the output.
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