VTK  9.2.6
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 =========================================================================*/
28 #ifndef vtkImageIslandRemoval2D_h
29 #define vtkImageIslandRemoval2D_h
30 
31 #include "vtkImageAlgorithm.h"
32 #include "vtkImagingMorphologicalModule.h" // For export macro
33 
35 {
36  void* inPtr;
37  void* outPtr;
38  int idx0;
39  int idx1;
40 };
42 
43 class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageIslandRemoval2D : public vtkImageAlgorithm
44 {
45 public:
47 
50  static vtkImageIslandRemoval2D* New();
52  void PrintSelf(ostream& os, vtkIndent indent) override;
54 
56 
59  vtkSetMacro(AreaThreshold, int);
60  vtkGetMacro(AreaThreshold, int);
62 
64 
67  vtkSetMacro(SquareNeighborhood, vtkTypeBool);
68  vtkGetMacro(SquareNeighborhood, vtkTypeBool);
69  vtkBooleanMacro(SquareNeighborhood, vtkTypeBool);
71 
73 
76  vtkSetMacro(IslandValue, double);
77  vtkGetMacro(IslandValue, double);
79 
81 
84  vtkSetMacro(ReplaceValue, double);
85  vtkGetMacro(ReplaceValue, double);
87 
88 protected:
90  ~vtkImageIslandRemoval2D() override = default;
91 
94  double IslandValue;
95  double ReplaceValue;
96 
98 
99 private:
101  void operator=(const vtkImageIslandRemoval2D&) = delete;
102 };
103 
104 #endif
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition: vtkABI.h:69
a simple class to control print indentation
Definition: vtkIndent.h:39
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.