VTK  9.1.0
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=========================================================================*/
34#ifndef vtkImageIslandRemoval2D_h
35#define vtkImageIslandRemoval2D_h
36
37#include "vtkImageAlgorithm.h"
38#include "vtkImagingMorphologicalModule.h" // For export macro
39
41{
42 void* inPtr;
43 void* outPtr;
44 int idx0;
45 int idx1;
46};
48
49class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageIslandRemoval2D : public vtkImageAlgorithm
50{
51public:
53
58 void PrintSelf(ostream& os, vtkIndent indent) override;
60
62
65 vtkSetMacro(AreaThreshold, int);
66 vtkGetMacro(AreaThreshold, int);
68
70
73 vtkSetMacro(SquareNeighborhood, vtkTypeBool);
74 vtkGetMacro(SquareNeighborhood, vtkTypeBool);
75 vtkBooleanMacro(SquareNeighborhood, vtkTypeBool);
77
79
82 vtkSetMacro(IslandValue, double);
83 vtkGetMacro(IslandValue, double);
85
87
90 vtkSetMacro(ReplaceValue, double);
91 vtkGetMacro(ReplaceValue, double);
93
94protected:
96 ~vtkImageIslandRemoval2D() override = default;
97
102
104
105private:
107 void operator=(const vtkImageIslandRemoval2D&) = delete;
108};
109
110#endif
Generic algorithm superclass for image algs.
Removes small clusters in masks.
void PrintSelf(ostream &os, vtkIndent indent) override
Constructor: Sets default filter to be identity.
static vtkImageIslandRemoval2D * New()
Constructor: Sets default filter to be identity.
~vtkImageIslandRemoval2D() override=default
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called in response to a REQUEST_DATA request from the executive.
a simple class to control print indentation
Definition: vtkIndent.h:43
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition: vtkABI.h:69