VTK  9.3.0
vtkImageIslandRemoval2D.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
16#ifndef vtkImageIslandRemoval2D_h
17#define vtkImageIslandRemoval2D_h
18
19#include "vtkImageAlgorithm.h"
20#include "vtkImagingMorphologicalModule.h" // For export macro
21
22VTK_ABI_NAMESPACE_BEGIN
24{
25 void* inPtr;
26 void* outPtr;
27 int idx0;
28 int idx1;
29};
31
32class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageIslandRemoval2D : public vtkImageAlgorithm
33{
34public:
36
41 void PrintSelf(ostream& os, vtkIndent indent) override;
43
45
48 vtkSetMacro(AreaThreshold, int);
49 vtkGetMacro(AreaThreshold, int);
51
53
56 vtkSetMacro(SquareNeighborhood, vtkTypeBool);
57 vtkGetMacro(SquareNeighborhood, vtkTypeBool);
58 vtkBooleanMacro(SquareNeighborhood, vtkTypeBool);
60
62
65 vtkSetMacro(IslandValue, double);
66 vtkGetMacro(IslandValue, double);
68
70
73 vtkSetMacro(ReplaceValue, double);
74 vtkGetMacro(ReplaceValue, double);
76
77protected:
79 ~vtkImageIslandRemoval2D() override = default;
80
85
87
88private:
90 void operator=(const vtkImageIslandRemoval2D&) = delete;
91};
92
93VTK_ABI_NAMESPACE_END
94#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:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition vtkABI.h:64