46#include <ttkMergeTreePrincipalGeodesicsModule.h>
50#include <vtkMultiBlockDataSet.h>
51#include <vtkUnstructuredGrid.h>
70 double oldEpsilonTree1;
77 std::vector<ttk::ftm::MergeTree<double>> intermediateDTrees;
78 std::vector<vtkUnstructuredGrid *> treesNodes, treesNodes2;
79 std::vector<vtkUnstructuredGrid *> treesArcs, treesArcs2;
80 std::vector<vtkDataSet *> treesSegmentation, treesSegmentation2;
84 void setDataVisualization(
int ttkNotUsed(numInputs),
88 void resetDataVisualization() {
89 setDataVisualization(0, 0);
96 bool isDataVisualizationFilled() {
107 normalizedWasserstein_ = nW;
109 resetDataVisualization();
116 numberOfGeodesics_ = numberOfGeodesics;
118 resetDataVisualization();
127 resetDataVisualization();
134 noProjectionStep_ = steps;
136 resetDataVisualization();
143 barycenterSizeLimitPercent_ = percent;
145 resetDataVisualization();
152 deterministic_ = deterministic;
154 resetDataVisualization();
161 mixtureCoefficient_ = joinSplitMixtureCoefficient;
163 resetDataVisualization();
170 keepState_ = keepState;
172 resetDataVisualization();
179 epsilon1UseFarthestSaddle_ = epsilon1UseFarthestSaddle;
181 resetDataVisualization();
188 epsilonTree1_ = epsilonTree1;
191 resetDataVisualization();
198 epsilon2Tree1_ = epsilon2Tree1;
200 resetDataVisualization();
207 epsilon3Tree1_ = epsilon3Tree1;
209 resetDataVisualization();
216 persistenceThreshold_ = persistenceThreshold;
218 resetDataVisualization();
225 deleteMultiPersPairs_ = delMultiPersPairs;
227 resetDataVisualization();
235 doComputeReconstructionError_ = b;
237 resetDataVisualization();
274 vtkInformationVector **inputVector,
275 vtkInformationVector *outputVector)
override;
277 template <
class dataType>
278 int run(vtkInformationVector *outputVector,
282 template <
class dataType>
284 vtkInformationVector *outputVector,
288 template <
class dataType>
290 vtkInformationVector *outputVector,
294 template <
class dataType>
297 vtkMultiBlockDataSet *output_barycenter);
#define ttkNotUsed(x)
Mark function/method parameters that are not used in the function body at all.
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 wraps the ttk::MergeTreePrincipalGeodesics module.
bool GetNormalizedWasserstein()
int runCompute(vtkInformationVector *outputVector, std::vector< vtkSmartPointer< vtkMultiBlockDataSet > > &inputTrees, std::vector< vtkSmartPointer< vtkMultiBlockDataSet > > &inputTrees2)
void SetDeterministic(bool deterministic)
void SetJoinSplitMixtureCoefficient(double joinSplitMixtureCoefficient)
void SetNumberOfProjectionSteps(unsigned int steps)
void SetNormalizedWasserstein(bool nW)
bool GetDeleteMultiPersPairs()
void SetDeleteMultiPersPairs(bool delMultiPersPairs)
unsigned int GetNumberOfGeodesics()
void SetNumberOfGeodesics(unsigned int numberOfGeodesics)
static ttkMergeTreePrincipalGeodesics * New()
unsigned int GetNumberOfProjectionSteps()
void SetComputeReconstructionError(bool b)
double GetEpsilon3Tree1()
void SetBarycenterSizeLimitPercent(double percent)
double GetEpsilon2Tree1()
double GetBarycenterSizeLimitPercent()
void SetEpsilonTree1(double epsilonTree1)
void SetNumberOfProjectionIntervals(unsigned int intervals)
void SetEpsilon3Tree1(double epsilon3Tree1)
bool GetComputeReconstructionError()
void SetEpsilon1UseFarthestSaddle(bool epsilon1UseFarthestSaddle)
void SetKeepState(bool keepState)
unsigned int GetNumberOfProjectionIntervals()
double GetJoinSplitMixtureCoefficient()
double GetPersistenceThreshold()
void SetPersistenceThreshold(double persistenceThreshold)
void SetEpsilon2Tree1(double epsilon2Tree1)
bool GetEpsilon1UseFarthestSaddle()
double barycenterSizeLimitPercent_
unsigned int numberOfGeodesics_
double mixtureCoefficient_
bool epsilon1UseFarthestSaddle_
bool normalizedWasserstein_
bool deleteMultiPersPairs_
double persistenceThreshold_
unsigned int noProjectionStep_
bool doComputeReconstructionError_