VTK  9.2.6
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#include "vtkImageAlgorithm.h"
32#include "vtkImagingMorphologicalModule.h" // For export macro
33
35{
36 void* inPtr;
37 void* outPtr;
38 int idx0;
39 int idx1;
40};
42
43class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageIslandRemoval2D : public vtkImageAlgorithm
44{
45public:
47
52 void PrintSelf(ostream& os, vtkIndent indent) override;
54
56
59 vtkSetMacro(AreaThreshold, int);
60 vtkGetMacro(AreaThreshold, int);
62
64
67 vtkSetMacro(SquareNeighborhood, vtkTypeBool);
68 vtkGetMacro(SquareNeighborhood, vtkTypeBool);
69 vtkBooleanMacro(SquareNeighborhood, vtkTypeBool);
71
73
76 vtkSetMacro(IslandValue, double);
77 vtkGetMacro(IslandValue, double);
79
81
84 vtkSetMacro(ReplaceValue, double);
85 vtkGetMacro(ReplaceValue, double);
87
88protected:
90 ~vtkImageIslandRemoval2D() override = default;
91
96
98
99private:
101 void operator=(const vtkImageIslandRemoval2D&) = delete;
102};
103
104#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:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition: vtkABI.h:69