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
22#ifndef vtkImageSeedConnectivity_h
23#define vtkImageSeedConnectivity_h
24
25#include "vtkImageAlgorithm.h"
26#include "vtkImagingMorphologicalModule.h" // For export macro
27
28VTK_ABI_NAMESPACE_BEGIN
31
32class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageSeedConnectivity : public vtkImageAlgorithm
33{
34public:
37 void PrintSelf(ostream& os, vtkIndent indent) override;
38
40
44 void AddSeed(int num, int* index);
45 void AddSeed(int i0, int i1, int i2);
46 void AddSeed(int i0, int i1);
48
50
53 vtkSetMacro(InputConnectValue, unsigned char);
54 vtkGetMacro(InputConnectValue, unsigned char);
56
58
61 vtkSetMacro(OutputConnectedValue, unsigned char);
62 vtkGetMacro(OutputConnectedValue, unsigned char);
64
66
69 vtkSetMacro(OutputUnconnectedValue, unsigned char);
70 vtkGetMacro(OutputUnconnectedValue, unsigned char);
72
74
77 vtkGetObjectMacro(Connector, vtkImageConnector);
79
81
84 vtkSetMacro(Dimensionality, int);
85 vtkGetMacro(Dimensionality, int);
87
88protected:
91
92 unsigned char InputConnectValue;
93 unsigned char OutputConnectedValue;
98
101
102private:
104 void operator=(const vtkImageSeedConnectivity&) = delete;
105};
106
107VTK_ABI_NAMESPACE_END
108#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.
static vtkImageSeedConnectivity * New()
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.
~vtkImageSeedConnectivity() override
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.