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