VTK  9.3.0
vtkImageOpenClose3D.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
33#ifndef vtkImageOpenClose3D_h
34#define vtkImageOpenClose3D_h
35
36#include "vtkImageAlgorithm.h"
37#include "vtkImagingMorphologicalModule.h" // For export macro
38
39VTK_ABI_NAMESPACE_BEGIN
41
42class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageOpenClose3D : public vtkImageAlgorithm
43{
44public:
46
51 void PrintSelf(ostream& os, vtkIndent indent) override;
53
59
61
64 void DebugOn() override;
65 void DebugOff() override;
67
71 void Modified() override;
72
73 // Forward Source messages to filter1
74
78 void SetKernelSize(int size0, int size1, int size2);
79
81
85 void SetOpenValue(double value);
86 double GetOpenValue();
88
90
94 void SetCloseValue(double value);
95 double GetCloseValue();
97
99
102 vtkGetObjectMacro(Filter0, vtkImageDilateErode3D);
103 vtkGetObjectMacro(Filter1, vtkImageDilateErode3D);
105
111
116 vtkInformationVector* outInfoVec, int requestFromOutputPort, vtkMTimeType* mtime) override;
117
118protected:
121
124
126
127private:
129 void operator=(const vtkImageOpenClose3D&) = delete;
130};
131
132VTK_ABI_NAMESPACE_END
133#endif
Detect and break reference loops.
Generic algorithm superclass for image algs.
Dilates one value and erodes another.
Will perform opening or closing.
vtkMTimeType GetMTime() override
This method considers the sub filters MTimes when computing this objects modified time.
vtkImageDilateErode3D * Filter0
void PrintSelf(ostream &os, vtkIndent indent) override
Default open value is 0, and default close value is 255.
void DebugOff() override
Turn debugging output on.
void ReportReferences(vtkGarbageCollector *) override
void SetOpenValue(double value)
Determines the value that will opened.
void DebugOn() override
Turn debugging output on.
void SetCloseValue(double value)
Determines the value that will closed.
static vtkImageOpenClose3D * New()
Default open value is 0, and default close value is 255.
int ComputePipelineMTime(vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, vtkMTimeType *mtime) override
Override to send the request to internal pipeline.
~vtkImageOpenClose3D() override
double GetOpenValue()
Determines the value that will opened.
void SetKernelSize(int size0, int size1, int size2)
Selects the size of gaps or objects removed.
double GetCloseValue()
Determines the value that will closed.
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
void Modified() override
Pass modified message to sub filters.
vtkImageDilateErode3D * Filter1
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
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270