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