93 #ifndef vtkImageConnectivityFilter_h
94 #define vtkImageConnectivityFilter_h
96 #include "vtkImagingMorphologicalModule.h"
171 this->SetLabelScalarType(
VTK_INT); }
172 const char *GetLabelScalarTypeAsString();
174 vtkGetMacro(LabelScalarType,
int);
193 const char *GetLabelModeAsString();
195 vtkGetMacro(LabelMode,
int);
207 this->SetExtractionMode(SeededRegions); }
209 this->SetExtractionMode(AllRegions); }
211 this->SetExtractionMode(LargestRegion); }
212 const char *GetExtractionModeAsString();
214 vtkGetMacro(ExtractionMode,
int);
223 vtkGetMacro(LabelConstantValue,
int);
235 return this->ExtractedRegionLabels; }
240 return this->ExtractedRegionSizes; }
247 return this->ExtractedRegionSeedIds; }
255 return this->ExtractedRegionExtents; }
263 vtkGetMacro(GenerateRegionExtents,
int);
272 vtkSetVector2Macro(SizeRange,
vtkIdType);
273 vtkGetVector2Macro(SizeRange,
vtkIdType);
284 vtkSetVector2Macro(ScalarRange,
double);
285 vtkGetVector2Macro(ScalarRange,
double);
293 vtkGetMacro(ActiveComponent,
int);
303 double ScalarRange[2];
305 int LabelConstantValue;
308 int GenerateRegionExtents;
315 void ComputeInputUpdateExtent(
int inExt[6],
int outExt[6]);
318 int RequestInformation(
320 int RequestUpdateExtent(
321 vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
323 vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
vtkIdTypeArray * GetExtractedRegionSeedIds()
Get the PointId of the seed for each region.
#define VTK_UNSIGNED_SHORT
abstract class to specify dataset behavior
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.
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.
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
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.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void SetLabelModeToConstantValue()
Set the mode for applying labels to the output.
#define VTK_UNSIGNED_CHAR
Label an image by connectivity.
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.
void SetExtractionModeToAllRegions()
Set which regions to output from this filter.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.