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
25#ifndef vtkImageIslandRemoval2D_h
26#define vtkImageIslandRemoval2D_h
27
28#include "vtkImageAlgorithm.h"
29#include "vtkImagingMorphologicalModule.h" // For export macro
30
31VTK_ABI_NAMESPACE_BEGIN
33{
34 void* inPtr;
35 void* outPtr;
36 int idx0;
37 int idx1;
38};
40
41class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageIslandRemoval2D : public vtkImageAlgorithm
42{
43public:
45
50 void PrintSelf(ostream& os, vtkIndent indent) override;
52
54
57 vtkSetMacro(AreaThreshold, int);
58 vtkGetMacro(AreaThreshold, int);
60
62
65 vtkSetMacro(SquareNeighborhood, vtkTypeBool);
66 vtkGetMacro(SquareNeighborhood, vtkTypeBool);
67 vtkBooleanMacro(SquareNeighborhood, vtkTypeBool);
69
71
74 vtkSetMacro(IslandValue, double);
75 vtkGetMacro(IslandValue, double);
77
79
82 vtkSetMacro(ReplaceValue, double);
83 vtkGetMacro(ReplaceValue, double);
85
86protected:
88 ~vtkImageIslandRemoval2D() override = default;
89
94
96
97private:
99 void operator=(const vtkImageIslandRemoval2D&) = delete;
100};
101
102VTK_ABI_NAMESPACE_END
103#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:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition vtkABI.h:64