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 
51  void PrintSelf(ostream& os, vtkIndent indent) override;
53 
55 
58  vtkSetMacro(AreaThreshold, int);
59  vtkGetMacro(AreaThreshold, int);
61 
63 
66  vtkSetMacro(SquareNeighborhood, vtkTypeBool);
67  vtkGetMacro(SquareNeighborhood, vtkTypeBool);
68  vtkBooleanMacro(SquareNeighborhood, vtkTypeBool);
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 
98  vtkInformationVector *) override;
99 
100 private:
102  void operator=(const vtkImageIslandRemoval2D&) = delete;
103 };
104 
105 #endif
106 
107 
108 
vtkImage2DIslandPixel::idx0
int idx0
Definition: vtkImageIslandRemoval2D.h:38
vtkImageIslandRemoval2D::New
static vtkImageIslandRemoval2D * New()
Constructor: Sets default filter to be identity.
vtkImageIslandRemoval2D::vtkImageIslandRemoval2D
vtkImageIslandRemoval2D()
vtkImage2DIslandPixel::inPtr
void * inPtr
Definition: vtkImageIslandRemoval2D.h:36
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkImage2DIslandPixel::idx1
int idx1
Definition: vtkImageIslandRemoval2D.h:39
vtkImageIslandRemoval2D::ReplaceValue
double ReplaceValue
Definition: vtkImageIslandRemoval2D.h:94
vtkImageIslandRemoval2D::AreaThreshold
int AreaThreshold
Definition: vtkImageIslandRemoval2D.h:91
vtkImageAlgorithm.h
vtkImageIslandRemoval2D::SquareNeighborhood
vtkTypeBool SquareNeighborhood
Definition: vtkImageIslandRemoval2D.h:92
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:41
vtkImageIslandRemoval2D
Removes small clusters in masks.
Definition: vtkImageIslandRemoval2D.h:43
vtkImageIslandRemoval2D::~vtkImageIslandRemoval2D
~vtkImageIslandRemoval2D() override
Definition: vtkImageIslandRemoval2D.h:89
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkImage2DIslandPixel::outPtr
void * outPtr
Definition: vtkImageIslandRemoval2D.h:37
vtkImageIslandRemoval2D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkImage2DIslandPixel
Definition: vtkImageIslandRemoval2D.h:35
vtkImageIslandRemoval2D::IslandValue
double IslandValue
Definition: vtkImageIslandRemoval2D.h:93
vtkImageIslandRemoval2D::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called in response to a REQUEST_DATA request from the executive.
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69