VTK  9.0.3
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 =========================================================================*/
31 #ifndef vtkImageSeedConnectivity_h
32 #define vtkImageSeedConnectivity_h
33 
34 #include "vtkImageAlgorithm.h"
35 #include "vtkImagingMorphologicalModule.h" // For export macro
36 
37 class vtkImageConnector;
39 
40 class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageSeedConnectivity : public vtkImageAlgorithm
41 {
42 public:
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
48 
52  void AddSeed(int num, int* index);
53  void AddSeed(int i0, int i1, int i2);
54  void AddSeed(int i0, int i1);
56 
58 
61  vtkSetMacro(InputConnectValue, unsigned char);
62  vtkGetMacro(InputConnectValue, unsigned char);
64 
66 
69  vtkSetMacro(OutputConnectedValue, unsigned char);
70  vtkGetMacro(OutputConnectedValue, unsigned char);
72 
74 
77  vtkSetMacro(OutputUnconnectedValue, unsigned char);
78  vtkGetMacro(OutputUnconnectedValue, unsigned char);
80 
82 
85  vtkGetObjectMacro(Connector, vtkImageConnector);
87 
89 
92  vtkSetMacro(Dimensionality, int);
93  vtkGetMacro(Dimensionality, int);
95 
96 protected:
99 
100  unsigned char InputConnectValue;
101  unsigned char OutputConnectedValue;
102  unsigned char OutputUnconnectedValue;
106 
109 
110 private:
112  void operator=(const vtkImageSeedConnectivity&) = delete;
113 };
114 
115 #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)
vtkImageConnectorSeed * Seeds
void AddSeed(int i0, int i1)
void AddSeed(int num, int *index)
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:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ index
Definition: vtkX3D.h:252