VTK  9.3.0
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
31 #ifndef vtkImageSeedConnectivity_h
32 #define vtkImageSeedConnectivity_h
33 
34 #include "vtkImageAlgorithm.h"
35 #include "vtkImagingMorphologicalModule.h" // For export macro
36 
37 VTK_ABI_NAMESPACE_BEGIN
38 class vtkImageConnector;
40 
41 class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageSeedConnectivity : public vtkImageAlgorithm
42 {
43 public:
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
49 
53  void AddSeed(int num, int* index);
54  void AddSeed(int i0, int i1, int i2);
55  void AddSeed(int i0, int i1);
57 
59 
62  vtkSetMacro(InputConnectValue, unsigned char);
63  vtkGetMacro(InputConnectValue, unsigned char);
65 
67 
70  vtkSetMacro(OutputConnectedValue, unsigned char);
71  vtkGetMacro(OutputConnectedValue, unsigned char);
73 
75 
78  vtkSetMacro(OutputUnconnectedValue, unsigned char);
79  vtkGetMacro(OutputUnconnectedValue, unsigned char);
81 
83 
86  vtkGetObjectMacro(Connector, vtkImageConnector);
88 
90 
93  vtkSetMacro(Dimensionality, int);
94  vtkGetMacro(Dimensionality, int);
96 
97 protected:
100 
101  unsigned char InputConnectValue;
102  unsigned char OutputConnectedValue;
103  unsigned char OutputUnconnectedValue;
107 
110 
111 private:
113  void operator=(const vtkImageSeedConnectivity&) = delete;
114 };
115 
116 VTK_ABI_NAMESPACE_END
117 #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:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ index
Definition: vtkX3D.h:246