 |
VTK
9.1.0
|
Go to the documentation of this file.
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];
vtkIdTypeArray * GetExtractedRegionSizes()
const char * GetExtractionModeAsString()
Set which regions to output from this filter.
LabelModeEnum
Enum constants for SetLabelMode().
vtkIntArray * GetExtractedRegionExtents()
Get the extent (a 6-tuples) for each output region.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAlgorithmOutput * GetStencilConnection()
The input for a stencil (input port 2).
const char * GetLabelScalarTypeAsString()
Set the scalar type for the output label image.
vtkIdTypeArray * ExtractedRegionSizes
#define VTK_UNSIGNED_SHORT
void SetStencilData(vtkImageStencilData *data)
The input for a stencil (input port 2).
void SetLabelScalarTypeToUnsignedShort()
Set the scalar type for the output label image.
ExtractionModeEnum
Enum constants for SetExtractionMode().
void SetLabelModeToSeedScalar()
Set the mode for applying labels to the output.
void SetStencilConnection(vtkAlgorithmOutput *port)
The input for a stencil (input port 2).
void ComputeInputUpdateExtent(int inExt[6], int outExt[6])
void SetLabelModeToSizeRank()
Set the mode for applying labels to the output.
const char * GetLabelModeAsString()
Set the mode for applying labels to the output.
vtkIntArray * ExtractedRegionExtents
Generic algorithm superclass for image algs.
void SetExtractionModeToSeededRegions()
Set which regions to output from this filter.
Label an image by connectivity.
void SetSeedConnection(vtkAlgorithmOutput *port)
The input for seed locations (input port 1).
vtkIdTypeArray * ExtractedRegionLabels
~vtkImageConnectivityFilter() override
void SetExtractionModeToAllRegions()
Set which regions to output from this filter.
static vtkImageConnectivityFilter * New()
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
void SetLabelModeToConstantValue()
Set the mode for applying labels to the output.
vtkAlgorithmOutput * GetSeedConnection()
The input for seed locations (input port 1).
void SetLabelScalarTypeToShort()
Set the scalar type for the output label image.
topologically and geometrically regular array of data
a simple class to control print indentation
dynamic, self-adjusting array of int
#define VTK_UNSIGNED_CHAR
int FillInputPortInformation(int port, vtkInformation *info) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
vtkTypeBool GenerateRegionExtents
abstract class to specify dataset behavior
vtkIdType GetNumberOfExtractedRegions()
Get the number of extracted regions.
dynamic, self-adjusting array of vtkIdType
vtkImageConnectivityFilter()
void SetExtractionModeToLargestRegion()
Set which regions to output from this filter.
Proxy object to connect input/output ports.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to translate the update extent requests from each output port ...
vtkIdTypeArray * ExtractedRegionSeedIds
void SetSeedData(vtkDataSet *data)
The input for seed locations (input port 1).
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called in response to a REQUEST_DATA request from the executive.
efficient description of an image stencil
vtkIdTypeArray * GetExtractedRegionSeedIds()
Get the PointId of the seed for each region.
void SetLabelScalarTypeToInt()
Set the scalar type for the output label image.
vtkIdTypeArray * GetExtractedRegionLabels()
Get the label used for each extracted region.
void SetLabelScalarTypeToUnsignedChar()
Set the scalar type for the output label image.