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
35typedef struct{
36 void *inPtr;
37 void *outPtr;
38 int idx0;
39 int idx1;
41
42class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageIslandRemoval2D : public vtkImageAlgorithm
43{
44public:
46
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
87protected:
90
95
99
100private:
101 vtkImageIslandRemoval2D(const vtkImageIslandRemoval2D&) VTK_DELETE_FUNCTION;
102 void operator=(const vtkImageIslandRemoval2D&) VTK_DELETE_FUNCTION;
103};
104
105#endif
106
107
108
Generic algorithm superclass for image algs.
Removes small clusters in masks.
static vtkImageIslandRemoval2D * New()
Constructor: Sets default filter to be identity.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called in response to a REQUEST_DATA request from the executive.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.