VTK  9.1.0
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=========================================================================*/
40#ifndef vtkImageSeedConnectivity_h
41#define vtkImageSeedConnectivity_h
42
43#include "vtkImageAlgorithm.h"
44#include "vtkImagingMorphologicalModule.h" // For export macro
45
48
49class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageSeedConnectivity : public vtkImageAlgorithm
50{
51public:
54 void PrintSelf(ostream& os, vtkIndent indent) override;
55
57
61 void AddSeed(int num, int* index);
62 void AddSeed(int i0, int i1, int i2);
63 void AddSeed(int i0, int i1);
65
67
70 vtkSetMacro(InputConnectValue, unsigned char);
71 vtkGetMacro(InputConnectValue, unsigned char);
73
75
78 vtkSetMacro(OutputConnectedValue, unsigned char);
79 vtkGetMacro(OutputConnectedValue, unsigned char);
81
83
86 vtkSetMacro(OutputUnconnectedValue, unsigned char);
87 vtkGetMacro(OutputUnconnectedValue, unsigned char);
89
91
94 vtkGetObjectMacro(Connector, vtkImageConnector);
96
98
101 vtkSetMacro(Dimensionality, int);
102 vtkGetMacro(Dimensionality, int);
104
105protected:
108
109 unsigned char InputConnectValue;
110 unsigned char OutputConnectedValue;
115
118
119private:
121 void operator=(const vtkImageSeedConnectivity&) = delete;
122};
123
124#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:43
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ index
Definition: vtkX3D.h:252