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 "vtkImageAlgorithm.h"
32 
33 //BTX
34 typedef struct{
35  void *inPtr;
36  void *outPtr;
37  int idx0;
38  int idx1;
40 //ETX
41 
43 {
44 public:
46 
47  static vtkImageIslandRemoval2D *New();
49  void PrintSelf(ostream& os, vtkIndent indent);
51 
53 
54  vtkSetMacro(AreaThreshold, int);
55  vtkGetMacro(AreaThreshold, int);
57 
59 
60  vtkSetMacro(SquareNeighborhood, int);
61  vtkGetMacro(SquareNeighborhood, int);
62  vtkBooleanMacro(SquareNeighborhood, int);
64 
66 
67  vtkSetMacro(IslandValue, double);
68  vtkGetMacro(IslandValue, double);
70 
72 
73  vtkSetMacro(ReplaceValue, double);
74  vtkGetMacro(ReplaceValue, double);
76 
77 protected:
80 
81  int AreaThreshold;
83  double IslandValue;
84  double ReplaceValue;
85 
86  virtual int RequestData(vtkInformation *,
89 
90 private:
91  vtkImageIslandRemoval2D(const vtkImageIslandRemoval2D&); // Not implemented.
92  void operator=(const vtkImageIslandRemoval2D&); // Not implemented.
93 };
94 
95 #endif
96 
97 
98 
Store vtkAlgorithm input/output information.
a simple class to control print indentation
Definition: vtkIndent.h:37
#define VTK_IMAGING_EXPORT
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)