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=========================================================================*/
34#ifndef vtkImageSeedConnectivity_h
35#define vtkImageSeedConnectivity_h
36
37#include "vtkImageAlgorithm.h"
38#include "vtkImagingMorphologicalModule.h" // For export macro
39
42
43class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageSeedConnectivity : public vtkImageAlgorithm
44{
45public:
48 void PrintSelf(ostream& os, vtkIndent indent) override;
49
51
55 void AddSeed(int num, int* index);
56 void AddSeed(int i0, int i1, int i2);
57 void AddSeed(int i0, int i1);
59
61
64 vtkSetMacro(InputConnectValue, unsigned char);
65 vtkGetMacro(InputConnectValue, unsigned char);
67
69
72 vtkSetMacro(OutputConnectedValue, unsigned char);
73 vtkGetMacro(OutputConnectedValue, unsigned char);
75
77
80 vtkSetMacro(OutputUnconnectedValue, unsigned char);
81 vtkGetMacro(OutputUnconnectedValue, unsigned char);
83
85
88 vtkGetObjectMacro(Connector, vtkImageConnector);
90
92
95 vtkSetMacro(Dimensionality, int);
96 vtkGetMacro(Dimensionality, int);
98
99protected:
102
103 unsigned char InputConnectValue;
104 unsigned char OutputConnectedValue;
109
112
113private:
115 void operator=(const vtkImageSeedConnectivity&) = delete;
116};
117
118#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:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.