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 
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 
vtkImage2DIslandPixel::idx0
int idx0
Definition: vtkImageIslandRemoval2D.h:38
vtkImageIslandRemoval2D::New
static vtkImageIslandRemoval2D * New()
vtkImageIslandRemoval2D::vtkImageIslandRemoval2D
vtkImageIslandRemoval2D()
vtkImage2DIslandPixel::inPtr
void * inPtr
Definition: vtkImageIslandRemoval2D.h:36
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkImage2DIslandPixel::idx1
int idx1
Definition: vtkImageIslandRemoval2D.h:39
vtkImageIslandRemoval2D::ReplaceValue
double ReplaceValue
Definition: vtkImageIslandRemoval2D.h:85
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkImageIslandRemoval2D::AreaThreshold
int AreaThreshold
Definition: vtkImageIslandRemoval2D.h:82
vtkImageAlgorithm.h
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:40
vtkImageIslandRemoval2D::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkImageIslandRemoval2D
Removes small clusters in masks.
Definition: vtkImageIslandRemoval2D.h:44
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkImage2DIslandPixel::outPtr
void * outPtr
Definition: vtkImageIslandRemoval2D.h:37
vtkImagingMorphologicalModule.h
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkImage2DIslandPixel
Definition: vtkImageIslandRemoval2D.h:35
vtkImageIslandRemoval2D::IslandValue
double IslandValue
Definition: vtkImageIslandRemoval2D.h:84
vtkImageIslandRemoval2D::~vtkImageIslandRemoval2D
~vtkImageIslandRemoval2D()
Definition: vtkImageIslandRemoval2D.h:80
vtkImageIslandRemoval2D::SquareNeighborhood
int SquareNeighborhood
Definition: vtkImageIslandRemoval2D.h:83
VTKIMAGINGMORPHOLOGICAL_EXPORT
#define VTKIMAGINGMORPHOLOGICAL_EXPORT
Definition: vtkImagingMorphologicalModule.h:15
vtkImageIslandRemoval2D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)