VTK  9.2.6
vtkImageOpenClose3D.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkImageOpenClose3D.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=========================================================================*/
36#ifndef vtkImageOpenClose3D_h
37#define vtkImageOpenClose3D_h
38
39#include "vtkImageAlgorithm.h"
40#include "vtkImagingMorphologicalModule.h" // For export macro
41
43
44class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageOpenClose3D : public vtkImageAlgorithm
45{
46public:
48
53 void PrintSelf(ostream& os, vtkIndent indent) override;
55
61
63
66 void DebugOn() override;
67 void DebugOff() override;
69
73 void Modified() override;
74
75 // Forward Source messages to filter1
76
80 void SetKernelSize(int size0, int size1, int size2);
81
83
87 void SetOpenValue(double value);
88 double GetOpenValue();
90
92
96 void SetCloseValue(double value);
97 double GetCloseValue();
99
101
104 vtkGetObjectMacro(Filter0, vtkImageDilateErode3D);
105 vtkGetObjectMacro(Filter1, vtkImageDilateErode3D);
107
113
118 vtkInformationVector* outInfoVec, int requestFromOutputPort, vtkMTimeType* mtime) override;
119
120protected:
123
126
128
129private:
131 void operator=(const vtkImageOpenClose3D&) = delete;
132};
133
134#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:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition: vtkABI.h:69
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287