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 =========================================================================*/
27 #ifndef vtkImageIslandRemoval2D_h
28 #define vtkImageIslandRemoval2D_h
29 
30 
31 #include "vtkImagingMorphologicalModule.h" // For export macro
32 #include "vtkImageAlgorithm.h"
33 
34 //BTX
35 typedef struct{
36  void *inPtr;
37  void *outPtr;
38  int idx0;
39  int idx1;
41 //ETX
42 
44 {
45 public:
47 
48  static vtkImageIslandRemoval2D *New();
50  void PrintSelf(ostream& os, vtkIndent indent);
52 
54 
55  vtkSetMacro(AreaThreshold, int);
56  vtkGetMacro(AreaThreshold, int);
58 
60 
61  vtkSetMacro(SquareNeighborhood, int);
62  vtkGetMacro(SquareNeighborhood, int);
63  vtkBooleanMacro(SquareNeighborhood, int);
65 
67 
68  vtkSetMacro(IslandValue, double);
69  vtkGetMacro(IslandValue, double);
71 
73 
74  vtkSetMacro(ReplaceValue, double);
75  vtkGetMacro(ReplaceValue, double);
77 
78 protected:
81 
84  double IslandValue;
85  double ReplaceValue;
86 
87  virtual int RequestData(vtkInformation *,
90 
91 private:
92  vtkImageIslandRemoval2D(const vtkImageIslandRemoval2D&); // Not implemented.
93  void operator=(const vtkImageIslandRemoval2D&); // Not implemented.
94 };
95 
96 #endif
97 
98 
99 
Store vtkAlgorithm input/output information.
#define VTKIMAGINGMORPHOLOGICAL_EXPORT
a simple class to control print indentation
Definition: vtkIndent.h:38
Removes small clusters in masks.
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkAlgorithm * New()
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)