VTK  9.1.0
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 =========================================================================*/
44 #ifndef vtkImageIslandRemoval2D_h
45 #define vtkImageIslandRemoval2D_h
46 
47 #include "vtkImageAlgorithm.h"
48 #include "vtkImagingMorphologicalModule.h" // For export macro
49 
51 {
52  void* inPtr;
53  void* outPtr;
54  int idx0;
55  int idx1;
56 };
58 
59 class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageIslandRemoval2D : public vtkImageAlgorithm
60 {
61 public:
63 
68  void PrintSelf(ostream& os, vtkIndent indent) override;
70 
72 
75  vtkSetMacro(AreaThreshold, int);
76  vtkGetMacro(AreaThreshold, int);
78 
80 
83  vtkSetMacro(SquareNeighborhood, vtkTypeBool);
84  vtkGetMacro(SquareNeighborhood, vtkTypeBool);
85  vtkBooleanMacro(SquareNeighborhood, vtkTypeBool);
87 
89 
92  vtkSetMacro(IslandValue, double);
93  vtkGetMacro(IslandValue, double);
95 
97 
100  vtkSetMacro(ReplaceValue, double);
101  vtkGetMacro(ReplaceValue, double);
103 
104 protected:
106  ~vtkImageIslandRemoval2D() override = default;
107 
110  double IslandValue;
111  double ReplaceValue;
112 
114 
115 private:
117  void operator=(const vtkImageIslandRemoval2D&) = delete;
118 };
119 
120 #endif
Generic algorithm superclass for image algs.
Removes small clusters in masks.
void PrintSelf(ostream &os, vtkIndent indent) override
Constructor: Sets default filter to be identity.
~vtkImageIslandRemoval2D() override=default
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called in response to a REQUEST_DATA request from the executive.
static vtkImageIslandRemoval2D * New()
Constructor: Sets default filter to be identity.
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition: vtkABI.h:69