VTK  9.2.6
vtkImageSeedConnectivity.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageSeedConnectivity.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 =========================================================================*/
43 #ifndef vtkImageSeedConnectivity_h
44 #define vtkImageSeedConnectivity_h
45 
46 #include "vtkImageAlgorithm.h"
47 #include "vtkImagingMorphologicalModule.h" // For export macro
48 
49 class vtkImageConnector;
51 
52 class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageSeedConnectivity : public vtkImageAlgorithm
53 {
54 public:
57  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
60 
64  void AddSeed(int num, int* index);
65  void AddSeed(int i0, int i1, int i2);
66  void AddSeed(int i0, int i1);
68 
70 
73  vtkSetMacro(InputConnectValue, unsigned char);
74  vtkGetMacro(InputConnectValue, unsigned char);
76 
78 
81  vtkSetMacro(OutputConnectedValue, unsigned char);
82  vtkGetMacro(OutputConnectedValue, unsigned char);
84 
86 
89  vtkSetMacro(OutputUnconnectedValue, unsigned char);
90  vtkGetMacro(OutputUnconnectedValue, unsigned char);
92 
94 
97  vtkGetObjectMacro(Connector, vtkImageConnector);
99 
101 
104  vtkSetMacro(Dimensionality, int);
105  vtkGetMacro(Dimensionality, int);
107 
108 protected:
111 
112  unsigned char InputConnectValue;
113  unsigned char OutputConnectedValue;
114  unsigned char OutputUnconnectedValue;
118 
121 
122 private:
124  void operator=(const vtkImageSeedConnectivity&) = delete;
125 };
126 
127 #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:49
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ index
Definition: vtkX3D.h:252