VTK  9.0.1
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 =========================================================================*/
25 #ifndef vtkImageIslandRemoval2D_h
26 #define vtkImageIslandRemoval2D_h
27 
28 #include "vtkImageAlgorithm.h"
29 #include "vtkImagingMorphologicalModule.h" // For export macro
30 
31 typedef struct
32 {
33  void* inPtr;
34  void* outPtr;
35  int idx0;
36  int idx1;
38 
39 class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageIslandRemoval2D : public vtkImageAlgorithm
40 {
41 public:
43 
46  static vtkImageIslandRemoval2D* New();
48  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
52 
55  vtkSetMacro(AreaThreshold, int);
56  vtkGetMacro(AreaThreshold, int);
58 
60 
63  vtkSetMacro(SquareNeighborhood, vtkTypeBool);
64  vtkGetMacro(SquareNeighborhood, vtkTypeBool);
65  vtkBooleanMacro(SquareNeighborhood, vtkTypeBool);
67 
69 
72  vtkSetMacro(IslandValue, double);
73  vtkGetMacro(IslandValue, double);
75 
77 
80  vtkSetMacro(ReplaceValue, double);
81  vtkGetMacro(ReplaceValue, double);
83 
84 protected:
87 
90  double IslandValue;
91  double ReplaceValue;
92 
94 
95 private:
97  void operator=(const vtkImageIslandRemoval2D&) = delete;
98 };
99 
100 #endif
vtkImageAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.
vtkImage2DIslandPixel::idx0
int idx0
Definition: vtkImageIslandRemoval2D.h:35
vtkImage2DIslandPixel::inPtr
void * inPtr
Definition: vtkImageIslandRemoval2D.h:33
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkImage2DIslandPixel::idx1
int idx1
Definition: vtkImageIslandRemoval2D.h:36
vtkImageIslandRemoval2D::ReplaceValue
double ReplaceValue
Definition: vtkImageIslandRemoval2D.h:91
vtkImageIslandRemoval2D::AreaThreshold
int AreaThreshold
Definition: vtkImageIslandRemoval2D.h:88
vtkImageAlgorithm.h
vtkImageIslandRemoval2D::SquareNeighborhood
vtkTypeBool SquareNeighborhood
Definition: vtkImageIslandRemoval2D.h:89
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:37
vtkImageIslandRemoval2D
Removes small clusters in masks.
Definition: vtkImageIslandRemoval2D.h:39
vtkImageIslandRemoval2D::~vtkImageIslandRemoval2D
~vtkImageIslandRemoval2D() override
Definition: vtkImageIslandRemoval2D.h:86
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkImage2DIslandPixel::outPtr
void * outPtr
Definition: vtkImageIslandRemoval2D.h:34
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkImageAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkImage2DIslandPixel
Definition: vtkImageIslandRemoval2D.h:31
vtkImageIslandRemoval2D::IslandValue
double IslandValue
Definition: vtkImageIslandRemoval2D.h:90
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69