VTK  9.3.0
vtkImageIslandRemoval2D.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
16 #ifndef vtkImageIslandRemoval2D_h
17 #define vtkImageIslandRemoval2D_h
18 
19 #include "vtkImageAlgorithm.h"
20 #include "vtkImagingMorphologicalModule.h" // For export macro
21 
22 VTK_ABI_NAMESPACE_BEGIN
24 {
25  void* inPtr;
26  void* outPtr;
27  int idx0;
28  int idx1;
29 };
31 
32 class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageIslandRemoval2D : public vtkImageAlgorithm
33 {
34 public:
36 
41  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
45 
48  vtkSetMacro(AreaThreshold, int);
49  vtkGetMacro(AreaThreshold, int);
51 
53 
56  vtkSetMacro(SquareNeighborhood, vtkTypeBool);
57  vtkGetMacro(SquareNeighborhood, vtkTypeBool);
58  vtkBooleanMacro(SquareNeighborhood, vtkTypeBool);
60 
62 
65  vtkSetMacro(IslandValue, double);
66  vtkGetMacro(IslandValue, double);
68 
70 
73  vtkSetMacro(ReplaceValue, double);
74  vtkGetMacro(ReplaceValue, double);
76 
77 protected:
79  ~vtkImageIslandRemoval2D() override = default;
80 
83  double IslandValue;
84  double ReplaceValue;
85 
87 
88 private:
90  void operator=(const vtkImageIslandRemoval2D&) = delete;
91 };
92 
93 VTK_ABI_NAMESPACE_END
94 #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:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition: vtkABI.h:64