VTK  9.0.1
vtkImageIslandRemoval2D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageIslandRemoval2D.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
25 #ifndef vtkImageIslandRemoval2D_h
26 #define vtkImageIslandRemoval2D_h
27 
28 #include "vtkImageAlgorithm.h"
29 #include "vtkImagingMorphologicalModule.h" // For export macro
30 
31 typedef struct
32 {
33  void* inPtr;
34  void* outPtr;
35  int idx0;
36  int idx1;
38 
39 class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageIslandRemoval2D : public vtkImageAlgorithm
40 {
41 public:
43 
46  static vtkImageIslandRemoval2D* New();
48  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
52 
55  vtkSetMacro(AreaThreshold, int);
56  vtkGetMacro(AreaThreshold, int);
58 
60 
63  vtkSetMacro(SquareNeighborhood, vtkTypeBool);
64  vtkGetMacro(SquareNeighborhood, vtkTypeBool);
65  vtkBooleanMacro(SquareNeighborhood, vtkTypeBool);
67 
69 
72  vtkSetMacro(IslandValue, double);
73  vtkGetMacro(IslandValue, double);
75 
77 
80  vtkSetMacro(ReplaceValue, double);
81  vtkGetMacro(ReplaceValue, double);
83 
84 protected:
87 
90  double IslandValue;
91  double ReplaceValue;
92 
94 
95 private:
97  void operator=(const vtkImageIslandRemoval2D&) = delete;
98 };
99 
100 #endif
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition: vtkABI.h:69
a simple class to control print indentation
Definition: vtkIndent.h:33
Removes small clusters in masks.
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.