54 #ifndef vtkImageConnectivityFilter_h
55 #define vtkImageConnectivityFilter_h
58 #include "vtkImagingMorphologicalModule.h"
60 VTK_ABI_NAMESPACE_BEGIN
131 const char* GetLabelScalarTypeAsString();
132 vtkSetMacro(LabelScalarType,
int);
133 vtkGetMacro(LabelScalarType,
int);
152 const char* GetLabelModeAsString();
153 vtkSetMacro(LabelMode,
int);
154 vtkGetMacro(LabelMode,
int);
168 const char* GetExtractionModeAsString();
169 vtkSetMacro(ExtractionMode,
int);
170 vtkGetMacro(ExtractionMode,
int);
178 vtkSetMacro(LabelConstantValue,
int);
179 vtkGetMacro(LabelConstantValue,
int);
214 vtkBooleanMacro(GenerateRegionExtents,
vtkTypeBool);
224 vtkSetVector2Macro(SizeRange,
vtkIdType);
225 vtkGetVector2Macro(SizeRange,
vtkIdType);
236 vtkSetVector2Macro(ScalarRange,
double);
237 vtkGetVector2Macro(ScalarRange,
double);
244 vtkSetMacro(ActiveComponent,
int);
245 vtkGetMacro(ActiveComponent,
int);
255 double ScalarRange[2];
267 void ComputeInputUpdateExtent(
int inExt[6],
int outExt[6]);
279 VTK_ABI_NAMESPACE_END
vtkIdTypeArray * GetExtractedRegionSeedIds()
Get the PointId of the seed for each region.
#define VTK_UNSIGNED_SHORT
abstract class to specify dataset behavior
vtkIdTypeArray * ExtractedRegionSeedIds
void SetExtractionModeToSeededRegions()
Set which regions to output from this filter.
vtkIdTypeArray * GetExtractedRegionSizes()
dynamic, self-adjusting array of vtkIdType
vtkIntArray * GetExtractedRegionExtents()
Get the extent (a 6-tuples) for each output region.
vtkIntArray * ExtractedRegionExtents
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to translate the update extent requests from each output port ...
Proxy object to connect input/output ports.
dynamic, self-adjusting array of int
vtkIdTypeArray * GetExtractedRegionLabels()
Get the label used for each extracted region.
LabelModeEnum
Enum constants for SetLabelMode().
void SetLabelModeToSizeRank()
Set the mode for applying labels to the output.
vtkIdTypeArray * ExtractedRegionLabels
void SetLabelModeToSeedScalar()
Set the mode for applying labels to the output.
void SetExtractionModeToLargestRegion()
Set which regions to output from this filter.
a simple class to control print indentation
ExtractionModeEnum
Enum constants for SetExtractionMode().
efficient description of an image stencil
topologically and geometrically regular array of data
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
void SetLabelScalarTypeToUnsignedShort()
Set the scalar type for the output label image.
void SetLabelScalarTypeToShort()
Set the scalar type for the output label image.
void SetLabelScalarTypeToInt()
Set the scalar type for the output label image.
void SetLabelScalarTypeToUnsignedChar()
Set the scalar type for the output label image.
void SetLabelModeToConstantValue()
Set the mode for applying labels to the output.
vtkIdTypeArray * ExtractedRegionSizes
#define VTK_UNSIGNED_CHAR
Label an image by connectivity.
int FillInputPortInformation(int port, vtkInformation *info) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
Generic algorithm superclass for image algs.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeBool GenerateRegionExtents
void SetExtractionModeToAllRegions()
Set which regions to output from this filter.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.