VTK  9.3.20240425
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
45#ifndef vtkImageIslandRemoval2D_h
46#define vtkImageIslandRemoval2D_h
47
48#include "vtkImageAlgorithm.h"
49#include "vtkImagingMorphologicalModule.h" // For export macro
50
51VTK_ABI_NAMESPACE_BEGIN
53{
54 void* inPtr;
55 void* outPtr;
56 int idx0;
57 int idx1;
58};
60
61class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageIslandRemoval2D : public vtkImageAlgorithm
62{
63public:
65
70 void PrintSelf(ostream& os, vtkIndent indent) override;
72
74
77 vtkSetMacro(AreaThreshold, int);
78 vtkGetMacro(AreaThreshold, int);
80
82
85 vtkSetMacro(SquareNeighborhood, vtkTypeBool);
86 vtkGetMacro(SquareNeighborhood, vtkTypeBool);
87 vtkBooleanMacro(SquareNeighborhood, vtkTypeBool);
89
91
94 vtkSetMacro(IslandValue, double);
95 vtkGetMacro(IslandValue, double);
97
99
102 vtkSetMacro(ReplaceValue, double);
103 vtkGetMacro(ReplaceValue, double);
105
106protected:
108 ~vtkImageIslandRemoval2D() override = default;
109
114
116
117private:
119 void operator=(const vtkImageIslandRemoval2D&) = delete;
120};
121
122VTK_ABI_NAMESPACE_END
123#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:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition vtkABI.h:64