VTK  9.3.20240416
vtkImageSeedConnectivity.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
51 #ifndef vtkImageSeedConnectivity_h
52 #define vtkImageSeedConnectivity_h
53 
54 #include "vtkImageAlgorithm.h"
55 #include "vtkImagingMorphologicalModule.h" // For export macro
56 
57 VTK_ABI_NAMESPACE_BEGIN
58 class vtkImageConnector;
60 
61 class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageSeedConnectivity : public vtkImageAlgorithm
62 {
63 public:
66  void PrintSelf(ostream& os, vtkIndent indent) override;
67 
69 
73  void AddSeed(int num, int* index);
74  void AddSeed(int i0, int i1, int i2);
75  void AddSeed(int i0, int i1);
77 
79 
82  vtkSetMacro(InputConnectValue, unsigned char);
83  vtkGetMacro(InputConnectValue, unsigned char);
85 
87 
90  vtkSetMacro(OutputConnectedValue, unsigned char);
91  vtkGetMacro(OutputConnectedValue, unsigned char);
93 
95 
98  vtkSetMacro(OutputUnconnectedValue, unsigned char);
99  vtkGetMacro(OutputUnconnectedValue, unsigned char);
101 
103 
106  vtkGetObjectMacro(Connector, vtkImageConnector);
108 
110 
113  vtkSetMacro(Dimensionality, int);
114  vtkGetMacro(Dimensionality, int);
116 
117 protected:
120 
121  unsigned char InputConnectValue;
122  unsigned char OutputConnectedValue;
123  unsigned char OutputUnconnectedValue;
127 
130 
131 private:
133  void operator=(const vtkImageSeedConnectivity&) = delete;
134 };
135 
136 VTK_ABI_NAMESPACE_END
137 #endif
Generic algorithm superclass for image algs.
Create a binary image of a sphere.
SeedConnectivity with user defined seeds.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called in response to a REQUEST_DATA request from the executive.
void AddSeed(int i0, int i1, int i2)
Methods for manipulating the seed pixels.
vtkImageConnectorSeed * Seeds
void AddSeed(int i0, int i1)
Methods for manipulating the seed pixels.
void AddSeed(int num, int *index)
Methods for manipulating the seed pixels.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to translate the update extent requests from each output port ...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void RemoveAllSeeds()
Methods for manipulating the seed pixels.
static vtkImageSeedConnectivity * New()
~vtkImageSeedConnectivity() override
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ index
Definition: vtkX3D.h:246