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=========================================================================*/
63#ifndef vtkImageSeedConnectivity_h
64#define vtkImageSeedConnectivity_h
65
66#include "vtkImageAlgorithm.h"
67#include "vtkImagingMorphologicalModule.h" // For export macro
68
71
72class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageSeedConnectivity : public vtkImageAlgorithm
73{
74public:
77 void PrintSelf(ostream& os, vtkIndent indent) override;
78
80
84 void AddSeed(int num, int* index);
85 void AddSeed(int i0, int i1, int i2);
86 void AddSeed(int i0, int i1);
88
90
93 vtkSetMacro(InputConnectValue, unsigned char);
94 vtkGetMacro(InputConnectValue, unsigned char);
96
98
101 vtkSetMacro(OutputConnectedValue, unsigned char);
102 vtkGetMacro(OutputConnectedValue, unsigned char);
104
106
109 vtkSetMacro(OutputUnconnectedValue, unsigned char);
110 vtkGetMacro(OutputUnconnectedValue, unsigned char);
112
114
117 vtkGetObjectMacro(Connector, vtkImageConnector);
119
121
124 vtkSetMacro(Dimensionality, int);
125 vtkGetMacro(Dimensionality, int);
127
128protected:
131
132 unsigned char InputConnectValue;
133 unsigned char OutputConnectedValue;
138
141
142private:
144 void operator=(const vtkImageSeedConnectivity&) = delete;
145};
146
147#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:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ index
Definition: vtkX3D.h:252