28 #ifndef __vtkboneImageConnectivityFilter_h 29 #define __vtkboneImageConnectivityFilter_h 49 EXTRACT_SEEDED_REGIONS = 2,
50 EXTRACT_SPECIFIED_REGIONS = 3,
51 EXTRACT_LARGEST_REGION = 4,
52 EXTRACT_ALL_REGIONS = 5,
53 EXTRACT_CLOSEST_POINT_REGION = 6,
54 EXTRACT_REGIONS_OF_SPECIFIED_SIZE = 7
60 vtkSetClampMacro(ExtractionMode,
int,
61 EXTRACT_SEEDED_REGIONS,EXTRACT_REGIONS_OF_SPECIFIED_SIZE);
62 vtkGetMacro(ExtractionMode,
int);
64 {this->SetExtractionMode(EXTRACT_SEEDED_REGIONS);};
66 {this->SetExtractionMode(EXTRACT_LARGEST_REGION);};
68 {this->SetExtractionMode(EXTRACT_SPECIFIED_REGIONS);};
70 {this->SetExtractionMode(EXTRACT_CLOSEST_POINT_REGION);};
72 {this->SetExtractionMode(EXTRACT_ALL_REGIONS);};
74 {this->SetExtractionMode(EXTRACT_REGIONS_OF_SPECIFIED_SIZE);};
75 const char *GetExtractionModeAsString();
79 void InitializeSeedList();
88 void InitializeSpecifiedRegionList();
91 void AddSpecifiedRegion(
int id);
94 void DeleteSpecifiedRegion(
int id);
99 vtkSetVector3Macro(ClosestPoint,
double);
100 vtkGetVectorMacro(ClosestPoint,
double,3);
106 vtkSetMacro(MinimumRegionSize,
vtkIdType);
107 vtkGetMacro(MinimumRegionSize,
vtkIdType);
112 vtkGetMacro(NumberOfExtractedRegions,
unsigned int);
125 int CalculateRegionSizes(
127 unsigned int numRegions,
133 double ClosestPoint[3];
void SetExtractionModeToLargestRegion()
virtual void SimpleExecute(vtkImageData *input, vtkImageData *output)=0
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
vtkIdType MinimumRegionSize
void SetExtractionModeToAllRegions()
void SetExtractionModeToClosestPointRegion()
void SetExtractionModeToSeededRegions()
mask regions of image data based on geometric connectivity
void SetExtractionModeToSpecifiedRegions()
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void SetExtractionModeToRegionsOfSpecifiedSize()
static vtkAlgorithm * New()
unsigned int NumberOfExtractedRegions
void operator=(const vtkObjectBase &)
vtkIdList * SpecifiedRegionIds