TTK
Loading...
Searching...
No Matches
ttkConnectedComponents.h
Go to the documentation of this file.
1
30
31#pragma once
32
33// VTK Module
34#include <ttkConnectedComponentsModule.h>
35
36// TTK Include
37#include <ConnectedComponents.h>
38#include <ttkAlgorithm.h>
39
40class TTKCONNECTEDCOMPONENTS_EXPORT ttkConnectedComponents
41 : public ttkAlgorithm,
42 protected ttk::ConnectedComponents {
43
44private:
45 double BackgroundThreshold{0.0};
46 bool AugmentSegmentationWithComponentSize{false};
47
48public:
49 vtkSetMacro(BackgroundThreshold, double);
50 vtkGetMacro(BackgroundThreshold, double);
51 vtkSetMacro(AugmentSegmentationWithComponentSize, bool);
52 vtkGetMacro(AugmentSegmentationWithComponentSize, bool);
53
56
57protected:
59 ~ttkConnectedComponents() override = default;
60
61 int FillInputPortInformation(int port, vtkInformation *info) override;
62 int FillOutputPortInformation(int port, vtkInformation *info) override;
63
64 int RequestData(vtkInformation *request,
65 vtkInformationVector **inputVector,
66 vtkInformationVector *outputVector) override;
67};
Baseclass of all VTK filters that wrap ttk modules.
virtual int RequestData(vtkInformation *ttkNotUsed(request), vtkInformationVector **ttkNotUsed(inputVectors), vtkInformationVector *ttkNotUsed(outputVector))
int FillInputPortInformation(int ttkNotUsed(port), vtkInformation *ttkNotUsed(info)) override
int FillOutputPortInformation(int ttkNotUsed(port), vtkInformation *ttkNotUsed(info)) override
TTK VTK-filter that computes connected components based on a scalar field.
~ttkConnectedComponents() override=default
static ttkConnectedComponents * New()
TTK connectedComponents processing package.