49#include <ttkMergeTreePrincipalGeodesicsModule.h>
53#include <vtkMultiBlockDataSet.h>
54#include <vtkUnstructuredGrid.h>
73 double oldEpsilonTree1;
80 std::vector<ttk::ftm::MergeTree<double>> intermediateDTrees;
81 std::vector<vtkUnstructuredGrid *> treesNodes, treesNodes2;
82 std::vector<vtkUnstructuredGrid *> treesArcs, treesArcs2;
83 std::vector<vtkDataSet *> treesSegmentation, treesSegmentation2;
87 void setDataVisualization(
int ttkNotUsed(numInputs),
91 void resetDataVisualization() {
92 setDataVisualization(0, 0);
99 bool isDataVisualizationFilled() {
110 normalizedWasserstein_ = nW;
112 resetDataVisualization();
119 numberOfAxes_ = numberOfGeodesics;
121 resetDataVisualization();
130 resetDataVisualization();
137 noProjectionStep_ = steps;
139 resetDataVisualization();
146 barycenterSizeLimitPercent_ = percent;
148 resetDataVisualization();
155 deterministic_ = deterministic;
157 resetDataVisualization();
164 mixtureCoefficient_ = joinSplitMixtureCoefficient;
166 resetDataVisualization();
173 keepState_ = keepState;
175 resetDataVisualization();
182 epsilon1UseFarthestSaddle_ = epsilon1UseFarthestSaddle;
184 resetDataVisualization();
191 epsilonTree1_ = epsilonTree1;
194 resetDataVisualization();
201 epsilon2Tree1_ = epsilon2Tree1;
203 resetDataVisualization();
210 epsilon3Tree1_ = epsilon3Tree1;
212 resetDataVisualization();
219 persistenceThreshold_ = persistenceThreshold;
221 resetDataVisualization();
228 deleteMultiPersPairs_ = delMultiPersPairs;
230 resetDataVisualization();
238 doComputeReconstructionError_ = b;
240 resetDataVisualization();
277 vtkInformationVector **inputVector,
278 vtkInformationVector *outputVector)
override;
280 template <
class dataType>
281 int run(vtkInformationVector *outputVector,
285 template <
class dataType>
287 vtkInformationVector *outputVector,
291 template <
class dataType>
293 vtkInformationVector *outputVector,
297 template <
class dataType>
300 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()
unsigned int numberOfAxes_
double barycenterSizeLimitPercent_
double mixtureCoefficient_
bool epsilon1UseFarthestSaddle_
bool normalizedWasserstein_
bool deleteMultiPersPairs_
double persistenceThreshold_
unsigned int noProjectionStep_
bool doComputeReconstructionError_