TTK
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
ttk::TrackingFromOverlap Class Reference

TTK trackingFromOverlap processing package that tracks labeled point sets. More...

#include <TrackingFromOverlap.h>

Inheritance diagram for ttk::TrackingFromOverlap:
ttk::Debug ttk::BaseClass ttkTrackingFromOverlap

Classes

struct  CoordinateComparator
 
struct  Node
 

Public Types

using Edges = std::vector< idType >
 
using Nodes = std::vector< Node >
 

Public Member Functions

 TrackingFromOverlap ()
 
 ~TrackingFromOverlap () override=default
 
int sortCoordinates (const float *pointCoordinates, const size_t nPoints, std::vector< size_t > &sortedIndices) const
 
int computeBranches (std::vector< Edges > &timeEdgesMap, std::vector< Nodes > &timeNodesMap) const
 
template<typename labelType >
int computeLabelIndexMap (const labelType *pointLabels, const size_t nPoints, std::map< labelType, size_t > &labelIndexMap) const
 
template<typename labelType >
int computeNodes (const float *pointCoordinates, const labelType *pointLabels, const size_t nPoints, Nodes &nodes) const
 
template<typename labelType >
int computeOverlap (const float *pointCoordinates0, const float *pointCoordinates1, const labelType *pointLabels0, const labelType *pointLabels1, const size_t nPoints0, const size_t nPoints1, Edges &edges) const
 
- 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)
 

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

Detailed Description

TTK trackingFromOverlap processing package that tracks labeled point sets.

Author
Jonas Lukasczyk jl@jl.nosp@m.uk.d.nosp@m.e
Date
01.09.2018

TrackingFromOverlap is a TTK processing package that provides algorithms to track labeled point sets across time (and optionally levels) based on spatial overlap, where two points overlap iff their corresponding coordinates are equal.

Related publication:
'Nested Tracking Graphs' Jonas Lukasczyk, Gunther Weber, Ross Maciejewski, Christoph Garth, and Heike Leitte. Computer Graphics Forum (Special Issue, Proceedings Eurographics / IEEE Symposium on Visualization). Vol. 36. No. 3. 2017.

Online examples:

Definition at line 53 of file TrackingFromOverlap.h.

Member Typedef Documentation

◆ Edges

Definition at line 74 of file TrackingFromOverlap.h.

◆ Nodes

using ttk::TrackingFromOverlap::Nodes = std::vector<Node>

Definition at line 75 of file TrackingFromOverlap.h.

Constructor & Destructor Documentation

◆ TrackingFromOverlap()

ttk::TrackingFromOverlap::TrackingFromOverlap ( )
inline

Definition at line 55 of file TrackingFromOverlap.h.

◆ ~TrackingFromOverlap()

ttk::TrackingFromOverlap::~TrackingFromOverlap ( )
overridedefault

Member Function Documentation

◆ computeBranches()

int ttk::TrackingFromOverlap::computeBranches ( std::vector< Edges > &  timeEdgesMap,
std::vector< Nodes > &  timeNodesMap 
) const
inline

Definition at line 114 of file TrackingFromOverlap.h.

◆ computeLabelIndexMap()

template<typename labelType >
int ttk::TrackingFromOverlap::computeLabelIndexMap ( const labelType *  pointLabels,
const size_t  nPoints,
std::map< labelType, size_t > &  labelIndexMap 
) const

Definition at line 245 of file TrackingFromOverlap.h.

◆ computeNodes()

template<typename labelType >
int ttk::TrackingFromOverlap::computeNodes ( const float *  pointCoordinates,
const labelType *  pointLabels,
const size_t  nPoints,
Nodes nodes 
) const

Definition at line 261 of file TrackingFromOverlap.h.

◆ computeOverlap()

template<typename labelType >
int ttk::TrackingFromOverlap::computeOverlap ( const float *  pointCoordinates0,
const float *  pointCoordinates1,
const labelType *  pointLabels0,
const labelType *  pointLabels1,
const size_t  nPoints0,
const size_t  nPoints1,
Edges edges 
) const

Definition at line 307 of file TrackingFromOverlap.h.

◆ sortCoordinates()

int ttk::TrackingFromOverlap::sortCoordinates ( const float *  pointCoordinates,
const size_t  nPoints,
std::vector< size_t > &  sortedIndices 
) const
inline

Definition at line 95 of file TrackingFromOverlap.h.


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