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
37VTK_ABI_NAMESPACE_BEGIN
40
41class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageSeedConnectivity : public vtkImageAlgorithm
42{
43public:
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
97protected:
100
101 unsigned char InputConnectValue;
102 unsigned char OutputConnectedValue;
107
110
111private:
113 void operator=(const vtkImageSeedConnectivity&) = delete;
114};
115
116VTK_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.
static vtkImageSeedConnectivity * New()
void AddSeed(int i0, int i1, int i2)
Methods for manipulating the seed pixels.
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:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.