VTK
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 
32 #include "vtkImagingMorphologicalModule.h" // For export macro
33 #include "vtkImageAlgorithm.h"
34 
35 typedef struct{
36  void *inPtr;
37  void *outPtr;
38  int idx0;
39  int idx1;
41 
42 class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageIslandRemoval2D : public vtkImageAlgorithm
43 {
44 public:
46 
49  static vtkImageIslandRemoval2D *New();
51  void PrintSelf(ostream& os, vtkIndent indent);
53 
55 
58  vtkSetMacro(AreaThreshold, int);
59  vtkGetMacro(AreaThreshold, int);
61 
63 
66  vtkSetMacro(SquareNeighborhood, int);
67  vtkGetMacro(SquareNeighborhood, int);
68  vtkBooleanMacro(SquareNeighborhood, int);
70 
72 
75  vtkSetMacro(IslandValue, double);
76  vtkGetMacro(IslandValue, double);
78 
80 
83  vtkSetMacro(ReplaceValue, double);
84  vtkGetMacro(ReplaceValue, double);
86 
87 protected:
90 
93  double IslandValue;
94  double ReplaceValue;
95 
96  virtual int RequestData(vtkInformation *,
99 
100 private:
101  vtkImageIslandRemoval2D(const vtkImageIslandRemoval2D&) VTK_DELETE_FUNCTION;
102  void operator=(const vtkImageIslandRemoval2D&) VTK_DELETE_FUNCTION;
103 };
104 
105 #endif
106 
107 
108 
Store vtkAlgorithm input/output information.
a simple class to control print indentation
Definition: vtkIndent.h:39
Removes small clusters in masks.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.