Go to the documentation of this file.
96 #ifndef vtkImageConnectivityFilter_h
97 #define vtkImageConnectivityFilter_h
99 #include "vtkImagingMorphologicalModule.h"
174 this->SetLabelScalarType(
VTK_INT); }
177 vtkGetMacro(LabelScalarType,
int);
198 vtkGetMacro(LabelMode,
int);
210 this->SetExtractionMode(SeededRegions); }
212 this->SetExtractionMode(AllRegions); }
214 this->SetExtractionMode(LargestRegion); }
217 vtkGetMacro(ExtractionMode,
int);
226 vtkGetMacro(LabelConstantValue,
int);
238 return this->ExtractedRegionLabels; }
243 return this->ExtractedRegionSizes; }
250 return this->ExtractedRegionSeedIds; }
258 return this->ExtractedRegionExtents; }
266 vtkGetMacro(GenerateRegionExtents,
int);
287 vtkSetVector2Macro(ScalarRange,
double);
288 vtkGetVector2Macro(ScalarRange,
double);
296 vtkGetMacro(ActiveComponent,
int);
306 double ScalarRange[2];
vtkIdTypeArray * GetExtractedRegionSizes()
const char * GetExtractionModeAsString()
LabelModeEnum
Enum constants for SetLabelMode().
vtkIntArray * GetExtractedRegionExtents()
Get the extent (a 6-tuples) for each output region.
vtkAlgorithmOutput * GetStencilConnection()
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called in response to a REQUEST_DATA request from the executive.
const char * GetLabelScalarTypeAsString()
vtkIdTypeArray * ExtractedRegionSizes
#define VTK_UNSIGNED_SHORT
void SetStencilData(vtkImageStencilData *data)
void SetLabelScalarTypeToUnsignedShort()
~vtkImageConnectivityFilter()
ExtractionModeEnum
Enum constants for SetExtractionMode().
void SetLabelModeToSeedScalar()
Set the mode for applying labels to the output.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void SetStencilConnection(vtkAlgorithmOutput *port)
The input for a stencil (input port 2).
void ComputeInputUpdateExtent(int inExt[6], int outExt[6])
void SetLabelModeToSizeRank()
const char * GetLabelModeAsString()
vtkIntArray * ExtractedRegionExtents
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to collect information from their inputs and set information f...
Generic algorithm superclass for image algs.
int GenerateRegionExtents
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
void SetExtractionModeToAllRegions()
static vtkImageConnectivityFilter * New()
void SetLabelModeToConstantValue()
vtkAlgorithmOutput * GetSeedConnection()
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
abstract class to specify dataset behavior
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to translate the update extent requests from each output port ...
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkIdType GetNumberOfExtractedRegions()
Get the number of extracted regions.
dynamic, self-adjusting array of vtkIdType
vtkImageConnectivityFilter()
void SetExtractionModeToLargestRegion()
Proxy object to connect input/output ports.
vtkIdTypeArray * ExtractedRegionSeedIds
void SetSeedData(vtkDataSet *data)
efficient description of an image stencil
vtkIdTypeArray * GetExtractedRegionSeedIds()
Get the PointId of the seed for each region.
void SetLabelScalarTypeToInt()
vtkIdTypeArray * GetExtractedRegionLabels()
Get the label used for each extracted region.
void SetLabelScalarTypeToUnsignedChar()
Set the scalar type for the output label image.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.