TTK
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
ttk::TrackingFromPersistenceDiagrams Class Reference

#include <TrackingFromPersistenceDiagrams.h>

Inheritance diagram for ttk::TrackingFromPersistenceDiagrams:
ttk::Debug ttk::BaseClass ttkTrackingFromPersistenceDiagrams

Public Member Functions

 TrackingFromPersistenceDiagrams ()
 
int execute ()
 
int performSingleMatching (int i, std::vector< ttk::DiagramType > &inputPersistenceDiagrams, std::vector< std::vector< MatchingType > > &outputMatchings, const std::string &algorithm, const std::string &wasserstein, double tolerance, double px, double py, double pz, double ps, double pe)
 
int performMatchings (int numInputs, std::vector< ttk::DiagramType > &inputPersistenceDiagrams, std::vector< std::vector< MatchingType > > &outputMatchings, const std::string &algorithm, const std::string &wasserstein, double tolerance, double px, double py, double pz, double ps, double pe)
 
int performTracking (std::vector< ttk::DiagramType > &allDiagrams, std::vector< std::vector< MatchingType > > &allMatchings, std::vector< trackingTuple > &trackings)
 
int performPostProcess (const std::vector< ttk::DiagramType > &allDiagrams, const std::vector< trackingTuple > &trackings, std::vector< std::set< int > > &trackingTupleToMerged, const double postProcThresh)
 
int setInputDataPointer (int idx, void *data)
 
void setNumberOfInputs (int numberOfInputs)
 
- 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)
 

Protected Attributes

int numberOfInputs_ {}
 
void ** inputData_ {}
 
- 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_
 

Additional Inherited Members

- 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)
 
- Static Protected Attributes inherited from ttk::Debug
static COMMON_EXPORTS debug::LineMode lastLineMode = ttk::debug::LineMode::NEW
 

Detailed Description

Author
Maxime Soler soler.nosp@m..max.nosp@m.ime@t.nosp@m.otal.nosp@m..com
Date
August 2018.

Online examples:

Author
Maxime Soler soler.nosp@m..max.nosp@m.ime@t.nosp@m.otal.nosp@m..com
Date
August 2018.

Definition at line 16 of file TrackingFromPersistenceDiagrams.h.

Constructor & Destructor Documentation

◆ TrackingFromPersistenceDiagrams()

ttk::TrackingFromPersistenceDiagrams::TrackingFromPersistenceDiagrams ( )

Definition at line 3 of file TrackingFromPersistenceDiagrams.cpp.

Member Function Documentation

◆ execute()

int ttk::TrackingFromPersistenceDiagrams::execute ( )

Execute the package.

Returns
Returns 0 upon success, negative values otherwise.

Definition at line 7 of file TrackingFromPersistenceDiagrams.cpp.

◆ performMatchings()

int ttk::TrackingFromPersistenceDiagrams::performMatchings ( int  numInputs,
std::vector< ttk::DiagramType > &  inputPersistenceDiagrams,
std::vector< std::vector< MatchingType > > &  outputMatchings,
const std::string &  algorithm,
const std::string &  wasserstein,
double  tolerance,
double  px,
double  py,
double  pz,
double  ps,
double  pe 
)

Definition at line 58 of file TrackingFromPersistenceDiagrams.cpp.

◆ performPostProcess()

int ttk::TrackingFromPersistenceDiagrams::performPostProcess ( const std::vector< ttk::DiagramType > &  allDiagrams,
const std::vector< trackingTuple > &  trackings,
std::vector< std::set< int > > &  trackingTupleToMerged,
const double  postProcThresh 
)

Check proximity.

Merge!

Definition at line 176 of file TrackingFromPersistenceDiagrams.cpp.

◆ performSingleMatching()

int ttk::TrackingFromPersistenceDiagrams::performSingleMatching ( int  i,
std::vector< ttk::DiagramType > &  inputPersistenceDiagrams,
std::vector< std::vector< MatchingType > > &  outputMatchings,
const std::string &  algorithm,
const std::string &  wasserstein,
double  tolerance,
double  px,
double  py,
double  pz,
double  ps,
double  pe 
)

Definition at line 28 of file TrackingFromPersistenceDiagrams.cpp.

◆ performTracking()

int ttk::TrackingFromPersistenceDiagrams::performTracking ( std::vector< ttk::DiagramType > &  allDiagrams,
std::vector< std::vector< MatchingType > > &  allMatchings,
std::vector< trackingTuple > &  trackings 
)

Definition at line 87 of file TrackingFromPersistenceDiagrams.cpp.

◆ setInputDataPointer()

int ttk::TrackingFromPersistenceDiagrams::setInputDataPointer ( int  idx,
void *  data 
)
inline

Pass a pointer to an input array representing a scalarfield. The array is expected to be correctly allocated. idx in [0,numberOfInputs_[

Parameters
idxIndex of the input scalar field.
dataPointer to the data array.
Returns
Returns 0 upon success, negative values otherwise.
See also
setNumberOfInputs() and setVertexNumber().

Definition at line 65 of file TrackingFromPersistenceDiagrams.h.

◆ setNumberOfInputs()

void ttk::TrackingFromPersistenceDiagrams::setNumberOfInputs ( int  numberOfInputs)
inline

Set the number of input scalar fields

Parameters
numberOfInputsNumber of input scalar fields.

Definition at line 75 of file TrackingFromPersistenceDiagrams.h.

Member Data Documentation

◆ inputData_

void** ttk::TrackingFromPersistenceDiagrams::inputData_ {}
protected

Definition at line 81 of file TrackingFromPersistenceDiagrams.h.

◆ numberOfInputs_

int ttk::TrackingFromPersistenceDiagrams::numberOfInputs_ {}
protected

Definition at line 80 of file TrackingFromPersistenceDiagrams.h.


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