VTK
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 
40 #include "vtkImagingMorphologicalModule.h" // For export macro
41 #include "vtkImageAlgorithm.h"
42 
44 
45 class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageOpenClose3D : public vtkImageAlgorithm
46 {
47 public:
49 
54  void PrintSelf(ostream& os, vtkIndent indent);
56 
62 
64 
67  void DebugOn();
68  void DebugOff();
70 
74  void Modified();
75 
76  // Forward Source messages to filter1
77 
81  void SetKernelSize(int size0, int size1, int size2);
82 
84 
88  void SetOpenValue(double value);
89  double GetOpenValue();
91 
93 
97  void SetCloseValue(double value);
98  double GetCloseValue();
100 
102 
105  vtkGetObjectMacro(Filter0, vtkImageDilateErode3D);
106  vtkGetObjectMacro(Filter1, vtkImageDilateErode3D);
108 
115 
119  virtual int
121  vtkInformationVector** inInfoVec,
122  vtkInformationVector* outInfoVec,
123  int requestFromOutputPort,
124  vtkMTimeType* mtime);
125 
126 protected:
129 
132 
134 private:
135  vtkImageOpenClose3D(const vtkImageOpenClose3D&) VTK_DELETE_FUNCTION;
136  void operator=(const vtkImageOpenClose3D&) VTK_DELETE_FUNCTION;
137 };
138 
139 #endif
140 
141 
142 
vtkImageOpenClose3D::~vtkImageOpenClose3D
~vtkImageOpenClose3D()
vtkImageOpenClose3D::New
static vtkImageOpenClose3D * New()
Default open value is 0, and default close value is 255.
vtkX3D::value
@ value
Definition: vtkX3D.h:220
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkImageOpenClose3D::Modified
void Modified()
Pass modified message to sub filters.
vtkImageOpenClose3D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkImageAlgorithm.h
vtkImageOpenClose3D::SetOpenValue
void SetOpenValue(double value)
Determines the value that will opened.
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:41
vtkImageOpenClose3D::SetCloseValue
void SetCloseValue(double value)
Determines the value that will closed.
vtkImageOpenClose3D::ComputePipelineMTime
virtual int ComputePipelineMTime(vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, vtkMTimeType *mtime)
Override to send the request to internal pipeline.
vtkImageOpenClose3D::DebugOff
void DebugOff()
Turn debugging output off.
vtkMTimeType
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
vtkImageOpenClose3D::DebugOn
void DebugOn()
Turn debugging output on.
vtkImageOpenClose3D::ReportReferences
void ReportReferences(vtkGarbageCollector *) override
vtkImageOpenClose3D::GetOpenValue
double GetOpenValue()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkImageOpenClose3D::Filter1
vtkImageDilateErode3D * Filter1
Definition: vtkImageOpenClose3D.h:131
vtkGarbageCollector
Detect and break reference loops.
Definition: vtkGarbageCollector.h:100
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkImageOpenClose3D::GetMTime
vtkMTimeType GetMTime()
This method considers the sub filters MTimes when computing this objects modified time.
vtkImageOpenClose3D::SetKernelSize
void SetKernelSize(int size0, int size1, int size2)
Selects the size of gaps or objects removed.
vtkImageOpenClose3D::vtkImageOpenClose3D
vtkImageOpenClose3D()
vtkImageOpenClose3D::ProcessRequest
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
see vtkAlgorithm for details
vtkImageDilateErode3D
Dilates one value and erodes another.
Definition: vtkImageDilateErode3D.h:36
vtkImageOpenClose3D
Will perform opening or closing.
Definition: vtkImageOpenClose3D.h:46
vtkImageOpenClose3D::Filter0
vtkImageDilateErode3D * Filter0
Definition: vtkImageOpenClose3D.h:130
vtkImageOpenClose3D::GetCloseValue
double GetCloseValue()