TTK
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
ttkMergeTreePrincipalGeodesics Class Reference

TTK VTK-filter that wraps the ttk::MergeTreePrincipalGeodesics module. More...

#include <ttkMergeTreePrincipalGeodesics.h>

Inheritance diagram for ttkMergeTreePrincipalGeodesics:
ttkAlgorithm ttk::MergeTreePrincipalGeodesics ttk::Debug ttk::Debug ttk::MergeTreePrincipalGeodesicsBase ttk::BaseClass ttk::BaseClass ttk::Debug ttk::MergeTreeAxesAlgorithmBase ttk::BaseClass ttk::Debug ttk::MergeTreeBase ttk::BaseClass ttk::Debug ttk::BaseClass

Public Types

typedef ttkAlgorithm Superclass
 
- Public Types inherited from ttkAlgorithm
typedef vtkAlgorithm Superclass
 

Public Member Functions

void SetNormalizedWasserstein (bool nW)
 
bool GetNormalizedWasserstein ()
 
void SetNumberOfGeodesics (unsigned int numberOfGeodesics)
 
unsigned int GetNumberOfGeodesics ()
 
void SetNumberOfProjectionIntervals (unsigned int intervals)
 
unsigned int GetNumberOfProjectionIntervals ()
 
void SetNumberOfProjectionSteps (unsigned int steps)
 
unsigned int GetNumberOfProjectionSteps ()
 
void SetBarycenterSizeLimitPercent (double percent)
 
double GetBarycenterSizeLimitPercent ()
 
void SetDeterministic (bool deterministic)
 
bool GetDeterministic ()
 
void SetJoinSplitMixtureCoefficient (double joinSplitMixtureCoefficient)
 
double GetJoinSplitMixtureCoefficient ()
 
void SetKeepState (bool keepState)
 
bool GetKeepState ()
 
void SetEpsilon1UseFarthestSaddle (bool epsilon1UseFarthestSaddle)
 
bool GetEpsilon1UseFarthestSaddle ()
 
void SetEpsilonTree1 (double epsilonTree1)
 
double GetEpsilonTree1 ()
 
void SetEpsilon2Tree1 (double epsilon2Tree1)
 
double GetEpsilon2Tree1 ()
 
void SetEpsilon3Tree1 (double epsilon3Tree1)
 
double GetEpsilon3Tree1 ()
 
void SetPersistenceThreshold (double persistenceThreshold)
 
double GetPersistenceThreshold ()
 
void SetDeleteMultiPersPairs (bool delMultiPersPairs)
 
bool GetDeleteMultiPersPairs ()
 
void SetComputeReconstructionError (bool b)
 
bool GetComputeReconstructionError ()
 
virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
template<class dataType >
int runCompute (vtkInformationVector *ttkNotUsed(outputVector), std::vector< vtkSmartPointer< vtkMultiBlockDataSet > > &inputTrees, std::vector< vtkSmartPointer< vtkMultiBlockDataSet > > &inputTrees2)
 
- Public Member Functions inherited from ttkAlgorithm
virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void UpdateThreadNumber ()
 
void SetThreadNumber (int threadNumber)
 
void SetUseAllCores (bool useAllCores)
 
void SetDebugLevel (int debugLevel)
 
void SetCompactTriangulationCacheSize (float cacheSize)
 
vtkDataArray * GetOptionalArray (const bool &enforceArrayIndex, const int &arrayIndex, const std::string &arrayName, vtkDataSet *const inputData, const int &inputPort=0)
 
vtkDataArray * GetOrderArray (vtkDataSet *const inputData, const int scalarArrayIdx, const int orderArrayIdx=0, const bool enforceOrderArrayIdx=false)
 
ttk::SimplexIdGetIdentifierArrayPtr (const bool &enforceArrayIndex, const int &arrayIndex, const std::string &arrayName, vtkDataSet *const inputData, std::vector< ttk::SimplexId > &spareStorage, const int inputPort=0, const bool printErr=true)
 
ttk::TriangulationGetTriangulation (vtkDataSet *dataSet)
 
int ProcessRequest (vtkInformation *request, vtkInformationVector **inputVectors, vtkInformationVector *outputVector) override
 
vtkDataSet * GetOutput ()
 
vtkDataSet * GetOutput (int)
 
void SetInputData (vtkDataSet *)
 
void SetInputData (int, vtkDataSet *)
 
void AddInputData (vtkDataSet *)
 
void AddInputData (int, vtkDataSet *)
 
template<typename inputType >
int checkEmptyMPIInput (inputType *input)
 This method tests whether the input is a nullptr. If the computation is being done on multiple processes, it is possible that the domain of one process or more is empty, but not others, therefore in that particular case the rest of the filter will not be computed but an error message will not be sent.
 
- Public Member Functions inherited from ttk::Debug
 Debug ()
 
 ~Debug () override
 
virtual int setDebugLevel (const int &debugLevel)
 
int setWrapper (const Wrapper *wrapper) override
 
int printMsg (const std::string &msg, const debug::Priority &priority=debug::Priority::INFO, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printMsg (const std::vector< std::string > &msgs, const debug::Priority &priority=debug::Priority::INFO, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printErr (const std::string &msg, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cerr) const
 
int printWrn (const std::string &msg, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cerr) const
 
int printMsg (const std::string &msg, const double &progress, const double &time, const int &threads, const double &memory, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const
 
int printMsg (const std::string &msg, const double &progress, const double &time, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const
 
int printMsg (const std::string &msg, const double &progress, const double &time, const int &threads, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const
 
int printMsg (const std::string &msg, const double &progress, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const
 
int printMsg (const std::string &msg, const double &progress, const debug::Priority &priority, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printMsg (const std::vector< std::vector< std::string > > &rows, const debug::Priority &priority=debug::Priority::INFO, const bool hasHeader=true, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printMsg (const debug::Separator &separator, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::INFO, std::ostream &stream=std::cout) const
 
int printMsg (const debug::Separator &separator, const debug::Priority &priority, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printMsg (const std::string &msg, const debug::Separator &separator, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::INFO, std::ostream &stream=std::cout) const
 
void setDebugMsgPrefix (const std::string &prefix)
 
- Public Member Functions inherited from ttk::BaseClass
 BaseClass ()
 
virtual ~BaseClass ()=default
 
int getThreadNumber () const
 
virtual int setThreadNumber (const int threadNumber)
 
virtual int setWrapper (const Wrapper *wrapper)
 

Static Public Member Functions

static ttkMergeTreePrincipalGeodesicsNew ()
 
static int IsTypeOf (const char *type)
 
static ttkMergeTreePrincipalGeodesicsSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from ttkAlgorithm
static ttkAlgorithmNew ()
 
static int IsTypeOf (const char *type)
 
static ttkAlgorithmSafeDownCast (vtkObject *o)
 
static std::string GetOrderArrayName (vtkDataArray *const array)
 
static vtkInformationIntegerKey * SAME_DATA_TYPE_AS_INPUT_PORT ()
 

Protected Member Functions

 ttkMergeTreePrincipalGeodesics ()
 
int FillInputPortInformation (int port, vtkInformation *info) override
 
int FillOutputPortInformation (int port, vtkInformation *info) override
 
int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
 
template<class dataType >
int run (vtkInformationVector *outputVector, std::vector< vtkSmartPointer< vtkMultiBlockDataSet > > &inputTrees, std::vector< vtkSmartPointer< vtkMultiBlockDataSet > > &inputTrees2)
 
template<class dataType >
int runCompute (vtkInformationVector *outputVector, std::vector< vtkSmartPointer< vtkMultiBlockDataSet > > &inputTrees, std::vector< vtkSmartPointer< vtkMultiBlockDataSet > > &inputTrees2)
 
template<class dataType >
int runOutput (vtkInformationVector *outputVector, std::vector< vtkSmartPointer< vtkMultiBlockDataSet > > &inputTrees, std::vector< vtkSmartPointer< vtkMultiBlockDataSet > > &inputTrees2)
 
template<class dataType >
void makeBarycenterOutput (ttk::ftm::MergeTree< dataType > &barycenter, int blockId, vtkMultiBlockDataSet *output_barycenter)
 
- Protected Member Functions inherited from ttkAlgorithm
 ttkAlgorithm ()
 
 ~ttkAlgorithm () override
 
void MPIGhostPipelinePreconditioning (vtkDataSet *input)
 
void MPIPipelinePreconditioning (vtkDataSet *input, std::vector< int > &neighbors, ttk::Triangulation *triangulation=nullptr)
 
bool checkGlobalIdValidity (ttk::LongSimplexId *globalIds, ttk::SimplexId simplexNumber, unsigned char *ghost, int *rankArray)
 
int GenerateGlobalIds (vtkDataSet *input, std::unordered_map< ttk::SimplexId, ttk::SimplexId > &vertGtoL, std::vector< int > &neighborRanks)
 
void MPITriangulationPreconditioning (ttk::Triangulation *triangulation, vtkDataSet *input)
 
virtual int RequestDataObject (vtkInformation *request, vtkInformationVector **inputVectors, vtkInformationVector *outputVector)
 
virtual int RequestInformation (vtkInformation *ttkNotUsed(request), vtkInformationVector **ttkNotUsed(inputVectors), vtkInformationVector *ttkNotUsed(outputVector))
 
virtual int RequestUpdateTime (vtkInformation *ttkNotUsed(request), vtkInformationVector **ttkNotUsed(inputVectors), vtkInformationVector *ttkNotUsed(outputVector))
 
virtual int RequestUpdateTimeDependentInformation (vtkInformation *ttkNotUsed(request), vtkInformationVector **ttkNotUsed(inputVectors), vtkInformationVector *ttkNotUsed(outputVector))
 
virtual int RequestUpdateExtent (vtkInformation *ttkNotUsed(request), vtkInformationVector **ttkNotUsed(inputVectors), vtkInformationVector *ttkNotUsed(outputVector))
 
virtual int RequestDataNotGenerated (vtkInformation *ttkNotUsed(request), vtkInformationVector **ttkNotUsed(inputVectors), vtkInformationVector *ttkNotUsed(outputVector))
 
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
 
- Protected Member Functions inherited from ttk::Debug
int printMsgInternal (const std::string &msg, const std::string &right, const std::string &filler, const debug::Priority &priority=debug::Priority::INFO, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printMsgInternal (const std::string &msg, const debug::Priority &priority, const debug::LineMode &lineMode, std::ostream &stream=std::cout) const
 
int welcomeMsg (std::ostream &stream)
 
- Protected Member Functions inherited from ttk::MergeTreePrincipalGeodesics
 MergeTreePrincipalGeodesics ()
 
unsigned int getGeodesicNumber ()
 
template<class dataType >
void initVectors (int geodesicNumber, ftm::MergeTree< dataType > &barycenter, std::vector< ftm::MergeTree< dataType > > &trees, ftm::MergeTree< dataType > &barycenter2, std::vector< ftm::MergeTree< dataType > > &trees2, std::vector< std::vector< double > > &v1, std::vector< std::vector< double > > &v2, std::vector< std::vector< double > > &trees2V1, std::vector< std::vector< double > > &trees2V2)
 
double orthogonalCost (std::vector< std::vector< std::vector< double > > > &vS, std::vector< std::vector< std::vector< double > > > &v2s, std::vector< std::vector< double > > &v, std::vector< std::vector< double > > &v2)
 
double regularizerCost (std::vector< std::vector< double > > &v, std::vector< std::vector< double > > &v2)
 
double projectionCost (std::vector< std::vector< double > > &v, std::vector< std::vector< double > > &v2, std::vector< std::vector< std::vector< double > > > &vS, std::vector< std::vector< std::vector< double > > > &v2s, double optMapCost)
 
template<class dataType >
double barycentricProjection (ftm::MergeTree< dataType > &barycenter, ftm::MergeTree< dataType > &extremity, std::vector< std::vector< double > > &v, bool isV1, bool useDoubleInput=false, bool isFirstInput=true)
 
template<class dataType >
double optimalMappingSetProjection (ftm::MergeTree< dataType > &barycenter, std::vector< std::vector< double > > &v, std::vector< std::vector< double > > &v2, ftm::MergeTree< dataType > &barycenter2, std::vector< std::vector< double > > &trees2V, std::vector< std::vector< double > > &trees2V2, bool useSecondInput=false)
 
void trueGeneralizedGeodesicProjection (std::vector< std::vector< double > > &v1, std::vector< std::vector< double > > &v2)
 
void orthogonalProjection (std::vector< std::vector< double > > &v1, std::vector< std::vector< double > > &v2, std::vector< std::vector< std::vector< double > > > &vS, std::vector< std::vector< std::vector< double > > > &v2s)
 
template<class dataType >
double projectionStep (int geodesicNumber, ftm::MergeTree< dataType > &barycenter, std::vector< std::vector< double > > &v, std::vector< std::vector< double > > &v2, std::vector< std::vector< std::vector< double > > > &vS, std::vector< std::vector< std::vector< double > > > &v2s, ftm::MergeTree< dataType > &barycenter2, std::vector< std::vector< double > > &trees2V, std::vector< std::vector< double > > &trees2V2, std::vector< std::vector< std::vector< double > > > &trees2Vs, std::vector< std::vector< std::vector< double > > > &trees2V2s, bool useSecondInput, unsigned int noProjectionStep)
 
template<class dataType >
void assignmentImpl (ftm::MergeTree< dataType > &barycenter, std::vector< ftm::MergeTree< dataType > > &trees, std::vector< std::vector< double > > &v, std::vector< std::vector< double > > &v2, ftm::MergeTree< dataType > &barycenter2, std::vector< ftm::MergeTree< dataType > > &trees2, std::vector< std::vector< double > > &trees2V, std::vector< std::vector< double > > &trees2V2, std::vector< std::vector< double > > &allTreesTs, std::vector< std::vector< std::vector< double > > > &vS, std::vector< std::vector< std::vector< double > > > &v2s, std::vector< std::vector< std::vector< double > > > &trees2Vs, std::vector< std::vector< std::vector< double > > > &trees2V2s, std::vector< std::vector< std::tuple< ftm::idNode, ftm::idNode, double > > > &matchings, std::vector< std::vector< std::tuple< ftm::idNode, ftm::idNode, double > > > &matchings2, std::vector< double > &ts, std::vector< double > &distances)
 
template<class dataType >
void assignmentStep (ftm::MergeTree< dataType > &barycenter, std::vector< ftm::MergeTree< dataType > > &trees, std::vector< std::vector< double > > &v, std::vector< std::vector< double > > &v2, ftm::MergeTree< dataType > &barycenter2, std::vector< ftm::MergeTree< dataType > > &trees2, std::vector< std::vector< double > > &trees2V, std::vector< std::vector< double > > &trees2V2, std::vector< std::vector< double > > &allTreesTs, std::vector< std::vector< std::vector< double > > > &vS, std::vector< std::vector< std::vector< double > > > &v2s, std::vector< std::vector< std::vector< double > > > &trees2Vs, std::vector< std::vector< std::vector< double > > > &trees2V2s, std::vector< std::vector< std::tuple< ftm::idNode, ftm::idNode, double > > > &matchings, std::vector< std::vector< std::tuple< ftm::idNode, ftm::idNode, double > > > &matchings2, std::vector< double > &ts, std::vector< double > &distances)
 
template<class dataType >
void updateClosedForm (int geodesicNumber, ftm::MergeTree< dataType > &barycenter, std::vector< ftm::MergeTree< dataType > > &trees, std::vector< ftm::MergeTree< dataType > > &allInterpolated, std::vector< std::vector< double > > &v, std::vector< std::vector< double > > &v2, std::vector< std::vector< std::tuple< ftm::idNode, ftm::idNode, double > > > &matchings, std::vector< std::vector< double > > &tss, std::vector< std::vector< double > > &vR, std::vector< std::vector< double > > &vR2, std::vector< bool > &isUniform)
 
template<class dataType >
void manageIndividualTs (int geodesicNumber, ftm::MergeTree< dataType > &barycenter, std::vector< ftm::MergeTree< dataType > > &trees, std::vector< std::vector< double > > &v, std::vector< std::vector< double > > &v2, std::vector< std::vector< std::vector< double > > > &vS, std::vector< std::vector< std::vector< double > > > &v2s, std::vector< double > &ts, std::vector< std::vector< double > > &allTreesTs, std::vector< ftm::MergeTree< dataType > > &allInterpolated, std::vector< bool > &isUniform, std::vector< std::vector< double > > &tss, unsigned int &noUniform, bool &foundAllUniform)
 
template<class dataType >
bool updateClosedFormStep (int geodesicNumber, ftm::MergeTree< dataType > &barycenter, std::vector< ftm::MergeTree< dataType > > &trees, std::vector< std::vector< double > > &v, std::vector< std::vector< double > > &v2, std::vector< std::vector< std::tuple< ftm::idNode, ftm::idNode, double > > > &matchings, std::vector< std::vector< std::vector< double > > > &vS, std::vector< std::vector< std::vector< double > > > &v2s, ftm::MergeTree< dataType > &barycenter2, std::vector< ftm::MergeTree< dataType > > &trees2, std::vector< std::vector< double > > &trees2V, std::vector< std::vector< double > > &trees2V2, std::vector< std::vector< std::tuple< ftm::idNode, ftm::idNode, double > > > &matchings2, std::vector< std::vector< std::vector< double > > > &trees2Vs, std::vector< std::vector< std::vector< double > > > &trees2V2s, std::vector< double > &ts, std::vector< std::vector< double > > &allTreesTs)
 
template<class dataType >
bool updateStep (int geodesicNumber, ftm::MergeTree< dataType > &barycenter, std::vector< ftm::MergeTree< dataType > > &trees, std::vector< std::vector< double > > &v, std::vector< std::vector< double > > &v2, std::vector< std::vector< std::tuple< ftm::idNode, ftm::idNode, double > > > &matchings, std::vector< std::vector< std::vector< double > > > &vS, std::vector< std::vector< std::vector< double > > > &v2s, ftm::MergeTree< dataType > &barycenter2, std::vector< ftm::MergeTree< dataType > > &trees2, std::vector< std::vector< double > > &trees2V, std::vector< std::vector< double > > &trees2V2, std::vector< std::vector< std::tuple< ftm::idNode, ftm::idNode, double > > > &matchings2, std::vector< std::vector< std::vector< double > > > &trees2Vs, std::vector< std::vector< std::vector< double > > > &trees2V2s, std::vector< double > &ts, std::vector< std::vector< double > > &allTreesTs)
 
template<class dataType >
bool convergenceStep (std::vector< double > &distances, std::vector< std::vector< double > > &v, std::vector< std::vector< double > > &v2, dataType &oldFrechetEnergy, dataType &minFrechetEnergy, int &cptBlocked, bool &converged, double optMapCost)
 
template<class dataType >
void computePrincipalGeodesic (unsigned int geodesicNumber, ftm::MergeTree< dataType > &barycenter, std::vector< ftm::MergeTree< dataType > > &trees, ftm::MergeTree< dataType > &barycenter2, std::vector< ftm::MergeTree< dataType > > &trees2)
 
template<class dataType >
void computePrincipalGeodesics (std::vector< ftm::MergeTree< dataType > > &trees, std::vector< ftm::MergeTree< dataType > > &trees2)
 
template<class dataType >
void execute (std::vector< ftm::MergeTree< dataType > > &trees, std::vector< ftm::MergeTree< dataType > > &trees2)
 
void copyMinMaxPairVector (std::vector< std::vector< double > > &v, std::vector< std::vector< double > > &v2, std::vector< std::vector< double > > &trees2V, std::vector< std::vector< double > > &trees2V2)
 
template<class dataType >
void computeGeodesicExtremities ()
 
template<class dataType >
void computeBranchesCorrelationMatrix (ftm::MergeTree< dataType > &barycenter, std::vector< ftm::MergeTree< dataType > > &trees)
 
template<class dataType >
void printIterationVariances (ftm::MergeTree< dataType > &barycenter, std::vector< ftm::MergeTree< dataType > > &trees, ftm::MergeTree< dataType > &barycenter2, std::vector< ftm::MergeTree< dataType > > &trees2, int geodesicNumber, double globalVariance)
 
double verifyOrthogonality (std::vector< std::vector< std::vector< double > > > &vS, std::vector< std::vector< std::vector< double > > > &v2s, bool doPrint=true)
 
double verifyOrthogonality (std::vector< std::vector< std::vector< double > > > &vS, std::vector< std::vector< std::vector< double > > > &v2s, std::vector< std::vector< double > > &v, std::vector< std::vector< double > > &v2, bool doPrint=true)
 
template<class dataType >
dataType computeVarianceFromDistances (std::vector< dataType > &distances)
 
template<class dataType >
double computeExplainedVariance (ftm::MergeTree< dataType > &barycenter, std::vector< ftm::MergeTree< dataType > > &trees, std::vector< std::vector< double > > &v, std::vector< std::vector< double > > &v2, std::vector< double > &ts, bool computeGlobalVariance=false)
 
template<class dataType >
double computeGlobalVariance (ftm::MergeTree< dataType > &barycenter, std::vector< ftm::MergeTree< dataType > > &trees)
 
template<class dataType >
double computeSurfaceExplainedVariance (ftm::MergeTree< dataType > &barycenter, std::vector< ftm::MergeTree< dataType > > &trees, std::vector< std::vector< std::vector< double > > > &vS, std::vector< std::vector< std::vector< double > > > &v2s, std::vector< std::vector< double > > &ts)
 
template<class dataType >
void computeProjectionDistances (ftm::MergeTree< dataType > &barycenter, std::vector< std::vector< double > > &v, std::vector< std::vector< double > > &v2, std::vector< double > &ts, std::vector< double > &distances, bool useDoubleInput=false, bool isFirstInput=true)
 
template<class dataType >
double computeExplainedVarianceT (ftm::MergeTree< dataType > &barycenter, std::vector< std::vector< double > > &v, std::vector< std::vector< double > > &v2, std::vector< double > &ts)
 
template<class dataType >
double computeExplainedVarianceT (ftm::MergeTree< dataType > &barycenter, std::vector< std::vector< double > > &v, std::vector< std::vector< double > > &v2, ftm::MergeTree< dataType > &barycenter2, std::vector< std::vector< double > > &trees2V, std::vector< std::vector< double > > &trees2V2, std::vector< double > &ts)
 
template<class dataType >
void verifyMinMaxPair (ftm::MergeTree< dataType > &mTree1, ftm::MergeTree< dataType > &mTree)
 
- Protected Member Functions inherited from ttk::MergeTreePrincipalGeodesicsBase
 MergeTreePrincipalGeodesicsBase ()
 
template<class dataType >
dataType computeReconstructionError (ftm::MergeTree< dataType > &barycenter, std::vector< ftm::MergeTree< dataType > > &inputTrees, std::vector< std::vector< double * > > &vS, std::vector< std::vector< double * > > &v2s, size_t vSize, std::vector< std::vector< double > > &allTreesTs, std::vector< double > &reconstructionErrors, std::vector< std::vector< std::tuple< ftm::idNode, ftm::idNode, double > > > &matchings, bool transposeVector=true)
 
template<class dataType >
dataType computeReconstructionError (ftm::MergeTree< dataType > &barycenter, std::vector< ftm::MergeTree< dataType > > &inputTrees, std::vector< std::vector< std::vector< double > > > &vS, std::vector< std::vector< std::vector< double > > > &v2s, std::vector< std::vector< double > > &allTreesTs, std::vector< double > &reconstructionErrors)
 
template<class dataType >
dataType computeReconstructionError (ftm::MergeTree< dataType > &barycenter, std::vector< ftm::MergeTree< dataType > > &inputTrees, std::vector< std::vector< std::vector< double > > > &vS, std::vector< std::vector< std::vector< double > > > &v2s, std::vector< std::vector< double > > &allTreesTs)
 
double getGeodesicVectorMiddle (std::vector< double > &v, std::vector< double > &v2)
 
double getAdjustedTMax (double tMin, double m)
 
double getAdjustedTMin (double tMax, double m)
 
void updateT (double newT, double m, double &tMin, double &tMax, bool updateTMin)
 
template<class dataType >
bool adjustDiagonalT (dataType baryBirth, dataType baryDeath, ftm::idNode node, std::vector< std::vector< double > > &vNew, std::vector< std::vector< double > > &v2New, double &tMin, double &tMax)
 
template<class dataType >
bool adjustNestingT (ftm::MergeTree< dataType > &ttkNotUsed(barycenter), dataType baryBirth, dataType baryDeath, ftm::idNode node, std::vector< std::vector< double > > &vNew, std::vector< std::vector< double > > &v2New, double &tMin, double &tMax)
 
template<class dataType >
void getInterpolationVectorDebugMsg (dataType birth, dataType death, std::vector< std::vector< double > > &vNew, std::vector< std::vector< double > > &v2New, int i, double t, double tMin, double tMax, const std::string &msg, std::stringstream &ssT)
 
template<class dataType >
double getTNew (ftm::MergeTree< dataType > &barycenter, std::vector< std::vector< double > > &v, std::vector< std::vector< double > > &v2, int i, double t)
 
template<class dataType >
void getInterpolationVector (ftm::MergeTree< dataType > &barycenter, std::vector< double * > &v, std::vector< double * > &v2, size_t vSize, double t, std::vector< dataType > &interpolationVectorT, bool transposeVector)
 
template<class dataType >
void getInterpolation (ftm::MergeTree< dataType > &barycenter, std::vector< double * > &v, std::vector< double * > &v2, size_t vSize, double t, ftm::MergeTree< dataType > &interpolated, bool transposeVector=true)
 
template<class dataType >
void getInterpolation (ftm::MergeTree< dataType > &barycenter, std::vector< std::vector< double > > &v, std::vector< std::vector< double > > &v2, double t, ftm::MergeTree< dataType > &interpolated)
 
template<class dataType >
void getMultiInterpolation (ftm::MergeTree< dataType > &barycenter, std::vector< std::vector< double * > > &vS, std::vector< std::vector< double * > > &v2s, size_t vSize, std::vector< double > &ts, ftm::MergeTree< dataType > &interpolated, bool transposeVector=true)
 
template<class dataType >
void getMultiInterpolation (ftm::MergeTree< dataType > &barycenter, std::vector< std::vector< std::vector< double > > > &vS, std::vector< std::vector< std::vector< double > > > &v2s, std::vector< double > &ts, ftm::MergeTree< dataType > &interpolated)
 
template<class dataType >
void getMultiInterpolation (ftm::MergeTree< dataType > &barycenter, std::vector< std::vector< std::vector< double > > > &vS, std::vector< std::vector< std::vector< double > > > &v2s, std::vector< std::vector< double > > &v, std::vector< std::vector< double > > &v2, std::vector< double > &ts, double t, ftm::MergeTree< dataType > &interpolated)
 
void callGramSchmidt (std::vector< std::vector< double > > &vS, std::vector< double > &v, std::vector< double > &newV)
 
void vectorToPointer (std::vector< double > &vec, double *&pVec)
 
void vectorsToPointers (std::vector< std::vector< double > > &vec, std::vector< double * > &pVec)
 
void vectorOfVectorsToPointers (std::vector< std::vector< std::vector< double > > > &vS, std::vector< std::vector< double * > > &pVS)
 
void pointerToVector (double *pVec, size_t size, std::vector< double > &vec)
 
void pointersToVectors (std::vector< double * > &pVec, std::vector< size_t > sizes, std::vector< std::vector< double > > &vec)
 
void pointersToVectors (std::vector< double * > &pVec, size_t size, std::vector< std::vector< double > > &vec)
 
- Protected Member Functions inherited from ttk::MergeTreeAxesAlgorithmBase
 MergeTreeAxesAlgorithmBase ()
 
template<class dataType >
void computeOneDistance (ftm::MergeTree< dataType > &tree1, ftm::MergeTree< dataType > &tree2, std::vector< std::tuple< ftm::idNode, ftm::idNode, double > > &matching, dataType &distance, bool isCalled=false, bool useDoubleInput=false, bool isFirstInput=true)
 
template<class dataType >
void computeOneDistance (ftm::MergeTree< dataType > &tree1, ftm::MergeTree< dataType > &tree2, dataType &distance, bool isCalled=false, bool useDoubleInput=false, bool isFirstInput=true)
 
template<class dataType >
void initVectorFromMatching (ftm::MergeTree< dataType > &barycenter, ftm::MergeTree< dataType > &tree, std::vector< std::tuple< ftm::idNode, ftm::idNode, double > > &matching, std::vector< std::vector< double > > &v)
 
template<class dataType >
void initRandomVector (ftm::MergeTree< dataType > &barycenter, std::vector< std::vector< double > > &v, std::vector< std::vector< std::vector< double > > > &vS, std::vector< std::vector< std::vector< double > > > &v2s)
 
template<class dataType , typename F >
int initVectors (int geodesicNumber, ftm::MergeTree< dataType > &barycenter, std::vector< ftm::MergeTree< dataType > > &trees, ftm::MergeTree< dataType > &barycenter2, std::vector< ftm::MergeTree< dataType > > &trees2, std::vector< std::vector< double > > &v1, std::vector< std::vector< double > > &v2, std::vector< std::vector< double > > &trees2V1, std::vector< std::vector< double > > &trees2V2, int newVectorOffset, std::vector< double > &inputToOriginDistances, std::vector< std::vector< std::tuple< ftm::idNode, ftm::idNode, double > > > &baryMatchings, std::vector< std::vector< std::tuple< ftm::idNode, ftm::idNode, double > > > &baryMatchings2, std::vector< std::vector< double > > &inputToGeodesicsDistances, std::vector< std::vector< std::vector< double > > > &vS, std::vector< std::vector< std::vector< double > > > &v2s, std::vector< std::vector< std::vector< double > > > &trees2Vs, std::vector< std::vector< std::vector< double > > > &trees2V2s, bool projectInitializedVectors, F initializedVectorsProjection)
 
template<class dataType >
void computeOneBarycenter (std::vector< ftm::MergeTree< dataType > > &trees, ftm::MergeTree< dataType > &baryMergeTree, std::vector< std::vector< std::tuple< ftm::idNode, ftm::idNode, double > > > &matchings, std::vector< double > &finalDistances, double barycenterSizeLimitPercent, unsigned int barycenterMaximumNumberOfPairs, bool useDoubleInput=false, bool isFirstInput=true)
 
template<class dataType >
void computeOneBarycenter (std::vector< ftm::MergeTree< dataType > > &trees, ftm::MergeTree< dataType > &baryMergeTree, std::vector< std::vector< std::tuple< ftm::idNode, ftm::idNode, double > > > &matchings, std::vector< double > &finalDistances, double barycenterSizeLimitPercent, bool useDoubleInput=false, bool isFirstInput=true)
 
template<class dataType >
void computeOneBarycenter (std::vector< ftm::MergeTree< dataType > > &trees, ftm::MergeTree< dataType > &baryMergeTree, std::vector< std::vector< std::tuple< ftm::idNode, ftm::idNode, double > > > &matchings, std::vector< double > &finalDistances, bool useDoubleInput=false, bool isFirstInput=true)
 
template<class dataType >
void computeOneBarycenter (std::vector< ftm::MergeTree< dataType > > &trees, ftm::MergeTree< dataType > &baryMergeTree, std::vector< std::vector< std::tuple< ftm::idNode, ftm::idNode, double > > > &matchings)
 
template<class dataType >
void computeOneBarycenter (std::vector< ftm::MergeTree< dataType > > &trees, ftm::MergeTree< dataType > &baryMergeTree)
 
template<class dataType >
void preprocessingTrees (std::vector< ftm::MergeTree< dataType > > &trees, std::vector< std::vector< int > > &nodeCorr, bool useMinMaxPairT=true)
 
template<class dataType >
void preprocessingTrees (std::vector< ftm::MergeTree< dataType > > &trees, bool useMinMaxPairT=true)
 
template<class dataType >
void getMatchingVector (ftm::MergeTree< dataType > &barycenter, ftm::MergeTree< dataType > &tree, std::vector< std::tuple< ftm::idNode, ftm::idNode, double > > &matchings, std::vector< ftm::idNode > &matchingVector)
 
template<class dataType >
void getInverseMatchingVector (ftm::MergeTree< dataType > &barycenter, ftm::MergeTree< dataType > &tree, std::vector< std::tuple< ftm::idNode, ftm::idNode, double > > &matchings, std::vector< ftm::idNode > &matchingVector)
 
template<class dataType >
void getMatchingMatrix (ftm::MergeTree< dataType > &barycenter, std::vector< ftm::MergeTree< dataType > > &trees, std::vector< std::vector< std::tuple< ftm::idNode, ftm::idNode, double > > > &matchings, std::vector< std::vector< ftm::idNode > > &matchingMatrix)
 
template<class dataType >
std::tuple< dataType, dataType > getParametrizedBirthDeath (ftm::FTMTree_MT *tree, ftm::idNode node)
 
template<class dataType >
void computeBranchesCorrelationMatrix (ftm::MergeTree< dataType > &barycenter, std::vector< ftm::MergeTree< dataType > > &trees, std::vector< std::vector< std::tuple< ftm::idNode, ftm::idNode, double > > > &baryMatchings, std::vector< std::vector< double > > &allTs, std::vector< std::vector< double > > &branchesCorrelationMatrix, std::vector< std::vector< double > > &persCorrelationMatrix)
 
void zeroPadding (std::string &colName, const size_t numberCols, const size_t colIdx)
 
std::string getTableCoefficientName (int noGeodesics, int geodesicNum)
 
std::string getTableCoefficientNormName (int noGeodesics, int geodesicNum)
 
std::string getTableVectorName (int noGeodesics, int geodesicNum, int vId, int vComp, bool isSecondInput=false)
 
std::string getTableCorrelationName (int noGeodesics, int geodesicNum)
 
std::string getTableCorrelationPersName (int noGeodesics, int geodesicNum)
 
std::string getTableCorrelationTreeName (int noTrees, int treeNum)
 
- Protected Member Functions inherited from ttk::MergeTreeBase
 MergeTreeBase ()
 
void setAssignmentSolver (int assignmentSolver)
 
void setEpsilon1UseFarthestSaddle (bool b)
 
void setEpsilonTree1 (double epsilon)
 
void setEpsilonTree2 (double epsilon)
 
void setEpsilon2Tree1 (double epsilon)
 
void setEpsilon2Tree2 (double epsilon)
 
void setEpsilon3Tree1 (double epsilon)
 
void setEpsilon3Tree2 (double epsilon)
 
void setPersistenceThreshold (double pt)
 
void setParallelize (bool para)
 
void setNodePerTask (int npt)
 
void setBranchDecomposition (bool useBD)
 
void setNormalizedWasserstein (bool normalizedWasserstein)
 
void setKeepSubtree (bool keepSubtree)
 
void setBarycenterMergeTree (bool imt)
 
void setDistanceSquaredRoot (bool distanceSquaredRoot)
 
void setUseMinMaxPair (bool useMinMaxPair)
 
void setDeleteMultiPersPairs (bool deleteMultiPersPairsT)
 
void setCleanTree (bool clean)
 
void setIsPersistenceDiagram (bool isPD)
 
std::vector< std::vector< int > > getTreesNodeCorr ()
 
double mixDistancesMinMaxPairWeight (bool isFirstInput)
 
double mixDistancesWeight (bool isFirstInput)
 
template<class dataType >
double mixDistances (dataType distance1, dataType distance2)
 
template<class dataType >
void mixDistancesMatrix (std::vector< std::vector< dataType > > &distanceMatrix, std::vector< std::vector< dataType > > &distanceMatrix2)
 
template<class dataType >
void mergeSaddle (ftm::FTMTree_MT *tree, double epsilon, std::vector< std::vector< ftm::idNode > > &treeNodeMerged, bool mergeByPersistence=false)
 
template<class dataType >
void persistenceMerging (ftm::FTMTree_MT *tree, double epsilon2, double epsilon3=100)
 
template<class dataType >
void keepMostImportantPairs (ftm::FTMTree_MT *tree, int n, bool useBD)
 
template<class dataType >
void persistenceThresholding (ftm::FTMTree_MT *tree, double persistenceThresholdT, std::vector< ftm::idNode > &deletedNodes)
 
template<class dataType >
void persistenceThresholding (ftm::FTMTree_MT *tree, std::vector< ftm::idNode > &deletedNodes)
 
template<class dataType >
void persistenceThresholding (ftm::FTMTree_MT *tree, double persistenceThresholdT)
 
template<class dataType >
void persistenceThresholding (ftm::FTMTree_MT *tree)
 
template<class dataType >
void verifyOrigins (ftm::FTMTree_MT *tree)
 
template<class dataType >
void preprocessTree (ftm::FTMTree_MT *tree, bool deleteInconsistentNodes=true)
 
template<class dataType >
ftm::FTMTree_MTcomputeBranchDecomposition (ftm::FTMTree_MT *tree, std::vector< std::vector< ftm::idNode > > &treeNodeMerged)
 
template<class dataType >
void dontUseMinMaxPair (ftm::FTMTree_MT *tree)
 
void verifyPairsTree (ftm::FTMTree_MT *tree)
 
template<class dataType >
void deleteMultiPersPairs (ftm::FTMTree_MT *tree, bool useBD)
 
template<class dataType >
void preprocessingPipeline (ftm::MergeTree< dataType > &mTree, double epsilonTree, double epsilon2Tree, double epsilon3Tree, bool branchDecompositionT, bool useMinMaxPairT, bool cleanTreeT, double persistenceThreshold, std::vector< int > &nodeCorr, bool deleteInconsistentNodes=true)
 
template<class dataType >
void preprocessingPipeline (ftm::MergeTree< dataType > &mTree, double epsilonTree, double epsilon2Tree, double epsilon3Tree, bool branchDecompositionT, bool useMinMaxPairT, bool cleanTreeT, std::vector< int > &nodeCorr, bool deleteInconsistentNodes=true)
 
void reverseNodeCorr (ftm::FTMTree_MT *tree, std::vector< int > &nodeCorr)
 
template<class dataType >
void mtFlattening (ftm::MergeTree< dataType > &mt)
 
template<class dataType >
void mtsFlattening (std::vector< ftm::MergeTree< dataType > > &mts)
 
double getSizeLimitMetric (std::vector< ftm::FTMTree_MT * > &trees)
 
template<class dataType >
void copyMinMaxPair (ftm::MergeTree< dataType > &mTree1, ftm::MergeTree< dataType > &mTree2, bool setOrigins=false)
 
template<class dataType >
std::tuple< int, dataType > fixMergedRootOrigin (ftm::FTMTree_MT *tree)
 
template<class dataType >
void branchDecompositionToTree (ftm::FTMTree_MT *tree)
 
template<class dataType >
void putBackMergedNodes (ftm::FTMTree_MT *tree)
 
template<class dataType >
void postprocessingPipeline (ftm::FTMTree_MT *tree)
 
template<class dataType >
void convertBranchDecompositionMatching (ftm::FTMTree_MT *tree1, ftm::FTMTree_MT *tree2, std::vector< std::tuple< ftm::idNode, ftm::idNode, double > > &outputMatching)
 
template<class dataType >
void convertBranchDecompositionMatching (ftm::FTMTree_MT *tree1, ftm::FTMTree_MT *tree2, std::vector< std::tuple< ftm::idNode, ftm::idNode > > &outputMatching)
 
template<class dataType >
void identifyRealMatching (ftm::FTMTree_MT *tree1, ftm::FTMTree_MT *tree2, std::vector< std::tuple< ftm::idNode, ftm::idNode > > &outputMatching, std::vector< std::tuple< ftm::idNode, ftm::idNode, bool > > &realMatching)
 
template<class dataType >
dataType computeDistance (dataType x1, dataType x2, dataType y1, dataType y2, double power=2)
 
template<class dataType >
dataType deleteCost (ftm::FTMTree_MT *tree, ftm::idNode nodeId)
 
template<class dataType >
dataType insertCost (ftm::FTMTree_MT *tree, ftm::idNode nodeId)
 
template<class dataType >
dataType relabelCostOnly (ftm::FTMTree_MT *tree1, ftm::idNode nodeId1, ftm::FTMTree_MT *tree2, ftm::idNode nodeId2)
 
template<class dataType >
dataType relabelCost (ftm::FTMTree_MT *tree1, ftm::idNode nodeId1, ftm::FTMTree_MT *tree2, ftm::idNode nodeId2)
 
void getParamNames (std::vector< std::string > &paramNames)
 
double getParamValueFromName (std::string &paramName)
 
void setParamValueFromName (std::string &paramName, double value)
 
void getTreesStats (std::vector< ftm::FTMTree_MT * > &trees, std::array< double, 3 > &stats)
 
void printTreesStats (std::vector< ftm::FTMTree_MT * > &trees)
 
template<class dataType >
void printTreesStats (std::vector< ftm::MergeTree< dataType > > &trees)
 
template<class dataType >
void printTableVector (std::vector< std::vector< dataType > > &table)
 
template<class dataType >
void printTable (dataType *table, int nRows, int nCols)
 
void printMatching (std::vector< MatchingType > &matchings)
 
void printMatching (std::vector< std::tuple< ftm::idNode, ftm::idNode, double > > &matchings)
 
void printMatching (std::vector< std::tuple< ftm::idNode, ftm::idNode > > &matchings)
 
template<class dataType >
void printPairs (std::vector< std::tuple< SimplexId, SimplexId, dataType > > &treePairs)
 
template<class dataType >
void printOutputMatching (std::vector< std::tuple< ftm::idNode, ftm::idNode > > &outputMatching, ftm::FTMTree_MT *tree1, ftm::FTMTree_MT *tree2, bool computeCosts=true)
 

Additional Inherited Members

- Protected Attributes inherited from ttkAlgorithm
float CompactTriangulationCacheSize {0.2f}
 
- Protected Attributes inherited from ttk::Debug
int debugLevel_
 
std::string debugMsgPrefix_
 
std::string debugMsgNamePrefix_
 
- Protected Attributes inherited from ttk::BaseClass
bool lastObject_
 
int threadNumber_
 
Wrapperwrapper_
 
- Protected Attributes inherited from ttk::MergeTreePrincipalGeodesics
bool doComputeReconstructionError_ = false
 
bool keepState_ = false
 
unsigned int noProjectionStep_ = 2
 
bool projectInitializedVectors_ = true
 
double t_vectorCopy_time_ = 0.0
 
double t_allVectorCopy_time_ = 0.0
 
std::vector< double > inputToBaryDistances_
 
std::vector< std::vector< double > > inputToGeodesicsDistances_
 
ftm::MergeTree< double > barycenter_
 
ftm::MergeTree< double > barycenterInput2_
 
ftm::MergeTree< double > barycenterBDT_
 
ftm::MergeTree< double > barycenterInput2BDT_
 
bool barycenterWasComputed_ = false
 
int newVectorOffset_ = 0
 
double cumulVariance_ = 0.0
 
double cumulTVariance_ = 0.0
 
- Protected Attributes inherited from ttk::MergeTreePrincipalGeodesicsBase
std::vector< std::vector< std::vector< double > > > vS_
 
std::vector< std::vector< std::vector< double > > > v2s_
 
std::vector< std::vector< std::vector< double > > > trees2Vs_
 
std::vector< std::vector< std::vector< double > > > trees2V2s_
 
std::vector< std::vector< double > > allTs_
 
std::vector< std::vector< double > > allScaledTs_
 
std::vector< std::vector< double > > allTreesTs_
 
std::vector< std::vector< double > > branchesCorrelationMatrix_
 
std::vector< std::vector< double > > persCorrelationMatrix_
 
std::vector< std::vector< std::tuple< ftm::idNode, ftm::idNode, double > > > baryMatchings_
 
std::vector< std::vector< std::tuple< ftm::idNode, ftm::idNode, double > > > baryMatchings2_
 
- Protected Attributes inherited from ttk::MergeTreeAxesAlgorithmBase
bool deterministic_ = true
 
unsigned int numberOfGeodesics_ = 1
 
unsigned int k_ = 10
 
double barycenterSizeLimitPercent_ = 0.0
 
std::vector< std::vector< int > > trees2NodeCorr_
 
- Protected Attributes inherited from ttk::MergeTreeBase
int assignmentSolverID_ = 0
 
bool epsilon1UseFarthestSaddle_ = false
 
double epsilonTree1_ = 0
 
double epsilonTree2_ = 0
 
double epsilon2Tree1_ = 100
 
double epsilon2Tree2_ = 100
 
double epsilon3Tree1_ = 100
 
double epsilon3Tree2_ = 100
 
double persistenceThreshold_ = 0
 
bool barycenterMergeTree_ = false
 
bool useMinMaxPair_ = true
 
bool deleteMultiPersPairs_ = false
 
bool branchDecomposition_ = true
 
int wassersteinPower_ = 2
 
bool normalizedWasserstein_ = true
 
bool keepSubtree_ = false
 
bool distanceSquaredRoot_ = true
 
bool useFullMerge_ = false
 
bool isPersistenceDiagram_ = false
 
bool convertToDiagram_ = false
 
double mixtureCoefficient_ = 0.5
 
bool useDoubleInput_ = false
 
bool parallelize_ = true
 
int nodePerTask_ = 32
 
bool cleanTree_ = true
 
std::vector< std::vector< int > > treesNodeCorr_
 
- Static Protected Attributes inherited from ttk::Debug
static COMMON_EXPORTS debug::LineMode lastLineMode = ttk::debug::LineMode::NEW
 

Detailed Description

TTK VTK-filter that wraps the ttk::MergeTreePrincipalGeodesics module.

Author
Mathieu Pont mathi.nosp@m.eu.p.nosp@m.ont@l.nosp@m.ip6..nosp@m.fr
Date
2022.

This VTK filter uses the ttk::MergeTreePrincipalGeodesics module to compute Principal Geodesic Analysis on the space of merge trees or persistence diagrams, that is, a set of orthogonal geodesic axes defining a basis with the barycenter as origin.

Parameters
InputvtkMultiBlockDataSet Input trees
Input(optional) vtkMultiBlockDataSet Input trees
OutputvtkMultiBlockDataSet Barycenter
OutputvtkTable Coefficients
OutputvtkTable Geodesics Vectors
OutputvtkTable Correlation Matrix

This filter can be used as any other VTK filter (for instance, by using the sequence of calls SetInputData(), Update(), GetOutputDataObject()).

See the corresponding standalone program for a usage example:

See the related ParaView example state files for usage examples within a VTK pipeline.

Related publication:
"Principal Geodesic Analysis of Merge Trees (and Persistence Diagrams)"
Mathieu Pont, Jules Vidal, Julien Tierny.
IEEE Transactions on Visualization and Computer Graphics, 2022

See also
ttk::MergeTreePrincipalGeodesics
ttkAlgorithm

Online examples:

Definition at line 58 of file ttkMergeTreePrincipalGeodesics.h.

Member Typedef Documentation

◆ Superclass

Definition at line 248 of file ttkMergeTreePrincipalGeodesics.h.

Constructor & Destructor Documentation

◆ ttkMergeTreePrincipalGeodesics()

ttkMergeTreePrincipalGeodesics::ttkMergeTreePrincipalGeodesics ( )
protected

Implement the filter constructor and destructor (see cpp file)

Implement the filter constructor and destructor in the cpp file.

The constructor has to specify the number of input and output ports with the functions SetNumberOfInputPorts and SetNumberOfOutputPorts, respectively. It should also set default values for all filter parameters.

The destructor is usually empty unless you want to manage memory explicitly, by for example allocating memory on the heap that needs to be freed when the filter is destroyed.

Definition at line 32 of file ttkMergeTreePrincipalGeodesics.cpp.

Member Function Documentation

◆ FillInputPortInformation()

int ttkMergeTreePrincipalGeodesics::FillInputPortInformation ( int  port,
vtkInformation *  info 
)
overrideprotected

Specify the input data type of each input port (see cpp file)

Specify the required input data type of each input port

This method specifies the required input object data types of the filter by adding the vtkAlgorithm::INPUT_REQUIRED_DATA_TYPE() key to the port information.

Definition at line 44 of file ttkMergeTreePrincipalGeodesics.cpp.

◆ FillOutputPortInformation()

int ttkMergeTreePrincipalGeodesics::FillOutputPortInformation ( int  port,
vtkInformation *  info 
)
overrideprotected

Specify the data object type of each output port (see cpp file)

Specify the data object type of each output port

This method specifies in the port information object the data type of the corresponding output objects. It is possible to either explicitly specify a type by adding a vtkDataObject::DATA_TYPE_NAME() key:

 info->Set( vtkDataObject::DATA_TYPE_NAME(), "vtkUnstructuredGrid" );

or to pass a type of an input port to an output port by adding the ttkAlgorithm::SAME_DATA_TYPE_AS_INPUT_PORT() key (see below).

Note: prior to the execution of the RequestData method the pipeline will initialize empty output data objects based on this information.

Definition at line 71 of file ttkMergeTreePrincipalGeodesics.cpp.

◆ GetBarycenterSizeLimitPercent()

double ttkMergeTreePrincipalGeodesics::GetBarycenterSizeLimitPercent ( )
inline

Definition at line 147 of file ttkMergeTreePrincipalGeodesics.h.

◆ GetClassName()

virtual const char * ttkMergeTreePrincipalGeodesics::GetClassName ( )
virtual

Reimplemented from ttkAlgorithm.

◆ GetComputeReconstructionError()

bool ttkMergeTreePrincipalGeodesics::GetComputeReconstructionError ( )
inline

Definition at line 239 of file ttkMergeTreePrincipalGeodesics.h.

◆ GetDeleteMultiPersPairs()

bool ttkMergeTreePrincipalGeodesics::GetDeleteMultiPersPairs ( )
inline

Definition at line 229 of file ttkMergeTreePrincipalGeodesics.h.

◆ GetDeterministic()

bool ttkMergeTreePrincipalGeodesics::GetDeterministic ( )
inline

Definition at line 156 of file ttkMergeTreePrincipalGeodesics.h.

◆ GetEpsilon1UseFarthestSaddle()

bool ttkMergeTreePrincipalGeodesics::GetEpsilon1UseFarthestSaddle ( )
inline

Definition at line 183 of file ttkMergeTreePrincipalGeodesics.h.

◆ GetEpsilon2Tree1()

double ttkMergeTreePrincipalGeodesics::GetEpsilon2Tree1 ( )
inline

Definition at line 202 of file ttkMergeTreePrincipalGeodesics.h.

◆ GetEpsilon3Tree1()

double ttkMergeTreePrincipalGeodesics::GetEpsilon3Tree1 ( )
inline

Definition at line 211 of file ttkMergeTreePrincipalGeodesics.h.

◆ GetEpsilonTree1()

double ttkMergeTreePrincipalGeodesics::GetEpsilonTree1 ( )
inline

Definition at line 193 of file ttkMergeTreePrincipalGeodesics.h.

◆ GetJoinSplitMixtureCoefficient()

double ttkMergeTreePrincipalGeodesics::GetJoinSplitMixtureCoefficient ( )
inline

Definition at line 165 of file ttkMergeTreePrincipalGeodesics.h.

◆ GetKeepState()

bool ttkMergeTreePrincipalGeodesics::GetKeepState ( )
inline

Definition at line 174 of file ttkMergeTreePrincipalGeodesics.h.

◆ GetNormalizedWasserstein()

bool ttkMergeTreePrincipalGeodesics::GetNormalizedWasserstein ( )
inline

Definition at line 111 of file ttkMergeTreePrincipalGeodesics.h.

◆ GetNumberOfGeodesics()

unsigned int ttkMergeTreePrincipalGeodesics::GetNumberOfGeodesics ( )
inline

Definition at line 120 of file ttkMergeTreePrincipalGeodesics.h.

◆ GetNumberOfProjectionIntervals()

unsigned int ttkMergeTreePrincipalGeodesics::GetNumberOfProjectionIntervals ( )
inline

Definition at line 129 of file ttkMergeTreePrincipalGeodesics.h.

◆ GetNumberOfProjectionSteps()

unsigned int ttkMergeTreePrincipalGeodesics::GetNumberOfProjectionSteps ( )
inline

Definition at line 138 of file ttkMergeTreePrincipalGeodesics.h.

◆ GetPersistenceThreshold()

double ttkMergeTreePrincipalGeodesics::GetPersistenceThreshold ( )
inline

Definition at line 220 of file ttkMergeTreePrincipalGeodesics.h.

◆ IsA()

virtual int ttkMergeTreePrincipalGeodesics::IsA ( const char *  type)
virtual

Reimplemented from ttkAlgorithm.

◆ IsTypeOf()

static int ttkMergeTreePrincipalGeodesics::IsTypeOf ( const char *  type)
static

◆ makeBarycenterOutput()

template<class dataType >
void ttkMergeTreePrincipalGeodesics::makeBarycenterOutput ( ttk::ftm::MergeTree< dataType > &  barycenter,
int  blockId,
vtkMultiBlockDataSet *  output_barycenter 
)
protected

Definition at line 193 of file ttkMergeTreePrincipalGeodesics.cpp.

◆ New()

static ttkMergeTreePrincipalGeodesics * ttkMergeTreePrincipalGeodesics::New ( )
static

This static method and the macro below are VTK conventions on how to instantiate VTK objects. You don't have to modify this.

◆ RequestData()

int ttkMergeTreePrincipalGeodesics::RequestData ( vtkInformation *  request,
vtkInformationVector **  inputVector,
vtkInformationVector *  outputVector 
)
overrideprotected

Pass VTK data to the base code and convert base code output to VTK (see cpp file)

Pass VTK data to the base code and convert base code output to VTK

This method is called during the pipeline execution to update the already initialized output data objects based on the given input data objects and filter parameters.

Note: 1) The passed input data objects are validated based on the information provided by the FillInputPortInformation method. 2) The output objects are already initialized based on the information provided by the FillOutputPortInformation method.

Definition at line 96 of file ttkMergeTreePrincipalGeodesics.cpp.

◆ run()

template<class dataType >
int ttkMergeTreePrincipalGeodesics::run ( vtkInformationVector *  outputVector,
std::vector< vtkSmartPointer< vtkMultiBlockDataSet > > &  inputTrees,
std::vector< vtkSmartPointer< vtkMultiBlockDataSet > > &  inputTrees2 
)
protected

Definition at line 135 of file ttkMergeTreePrincipalGeodesics.cpp.

◆ runCompute() [1/2]

template<class dataType >
int ttkMergeTreePrincipalGeodesics::runCompute ( vtkInformationVector *  outputVector,
std::vector< vtkSmartPointer< vtkMultiBlockDataSet > > &  inputTrees,
std::vector< vtkSmartPointer< vtkMultiBlockDataSet > > &  inputTrees2 
)
protected

◆ runCompute() [2/2]

template<class dataType >
int ttkMergeTreePrincipalGeodesics::runCompute ( vtkInformationVector *  ttkNotUsedoutputVector,
std::vector< vtkSmartPointer< vtkMultiBlockDataSet > > &  inputTrees,
std::vector< vtkSmartPointer< vtkMultiBlockDataSet > > &  inputTrees2 
)

Definition at line 146 of file ttkMergeTreePrincipalGeodesics.cpp.

◆ runOutput()

template<class dataType >
int ttkMergeTreePrincipalGeodesics::runOutput ( vtkInformationVector *  outputVector,
std::vector< vtkSmartPointer< vtkMultiBlockDataSet > > &  inputTrees,
std::vector< vtkSmartPointer< vtkMultiBlockDataSet > > &  inputTrees2 
)
protected

Definition at line 232 of file ttkMergeTreePrincipalGeodesics.cpp.

◆ SafeDownCast()

static ttkMergeTreePrincipalGeodesics * ttkMergeTreePrincipalGeodesics::SafeDownCast ( vtkObject *  o)
static

◆ SetBarycenterSizeLimitPercent()

void ttkMergeTreePrincipalGeodesics::SetBarycenterSizeLimitPercent ( double  percent)
inline

Definition at line 142 of file ttkMergeTreePrincipalGeodesics.h.

◆ SetComputeReconstructionError()

void ttkMergeTreePrincipalGeodesics::SetComputeReconstructionError ( bool  b)
inline

Definition at line 234 of file ttkMergeTreePrincipalGeodesics.h.

◆ SetDeleteMultiPersPairs()

void ttkMergeTreePrincipalGeodesics::SetDeleteMultiPersPairs ( bool  delMultiPersPairs)
inline

Definition at line 224 of file ttkMergeTreePrincipalGeodesics.h.

◆ SetDeterministic()

void ttkMergeTreePrincipalGeodesics::SetDeterministic ( bool  deterministic)
inline

Definition at line 151 of file ttkMergeTreePrincipalGeodesics.h.

◆ SetEpsilon1UseFarthestSaddle()

void ttkMergeTreePrincipalGeodesics::SetEpsilon1UseFarthestSaddle ( bool  epsilon1UseFarthestSaddle)
inline

Definition at line 178 of file ttkMergeTreePrincipalGeodesics.h.

◆ SetEpsilon2Tree1()

void ttkMergeTreePrincipalGeodesics::SetEpsilon2Tree1 ( double  epsilon2Tree1)
inline

Definition at line 197 of file ttkMergeTreePrincipalGeodesics.h.

◆ SetEpsilon3Tree1()

void ttkMergeTreePrincipalGeodesics::SetEpsilon3Tree1 ( double  epsilon3Tree1)
inline

Definition at line 206 of file ttkMergeTreePrincipalGeodesics.h.

◆ SetEpsilonTree1()

void ttkMergeTreePrincipalGeodesics::SetEpsilonTree1 ( double  epsilonTree1)
inline

Definition at line 187 of file ttkMergeTreePrincipalGeodesics.h.

◆ SetJoinSplitMixtureCoefficient()

void ttkMergeTreePrincipalGeodesics::SetJoinSplitMixtureCoefficient ( double  joinSplitMixtureCoefficient)
inline

Definition at line 160 of file ttkMergeTreePrincipalGeodesics.h.

◆ SetKeepState()

void ttkMergeTreePrincipalGeodesics::SetKeepState ( bool  keepState)
inline

Definition at line 169 of file ttkMergeTreePrincipalGeodesics.h.

◆ SetNormalizedWasserstein()

void ttkMergeTreePrincipalGeodesics::SetNormalizedWasserstein ( bool  nW)
inline

Automatically generate getters and setters of filter parameters via vtkMacros.

Definition at line 106 of file ttkMergeTreePrincipalGeodesics.h.

◆ SetNumberOfGeodesics()

void ttkMergeTreePrincipalGeodesics::SetNumberOfGeodesics ( unsigned int  numberOfGeodesics)
inline

Definition at line 115 of file ttkMergeTreePrincipalGeodesics.h.

◆ SetNumberOfProjectionIntervals()

void ttkMergeTreePrincipalGeodesics::SetNumberOfProjectionIntervals ( unsigned int  intervals)
inline

Definition at line 124 of file ttkMergeTreePrincipalGeodesics.h.

◆ SetNumberOfProjectionSteps()

void ttkMergeTreePrincipalGeodesics::SetNumberOfProjectionSteps ( unsigned int  steps)
inline

Definition at line 133 of file ttkMergeTreePrincipalGeodesics.h.

◆ SetPersistenceThreshold()

void ttkMergeTreePrincipalGeodesics::SetPersistenceThreshold ( double  persistenceThreshold)
inline

Definition at line 215 of file ttkMergeTreePrincipalGeodesics.h.


The documentation for this class was generated from the following files: