TTK
|
TTK VTK-filter that computes a Rips complex. More...
#include <RipsComplex.h>
Public Member Functions | |
RipsComplex () | |
int | execute (std::vector< SimplexId > &connectivity, std::vector< double > &diameters, std::array< double *const, 3 > diamStats, const std::vector< std::vector< double > > &distanceMatrix, double *const density=nullptr) const |
Main entry point. | |
![]() | |
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) |
![]() | |
BaseClass () | |
virtual | ~BaseClass ()=default |
int | getThreadNumber () const |
virtual int | setThreadNumber (const int threadNumber) |
Protected Member Functions | |
int | computeDiameterStats (const SimplexId nPoints, std::array< double *const, 3 > diamStats, const std::vector< SimplexId > &connectivity, const std::vector< double > &cellDiameters) const |
Compute diameter statistics on points. | |
int | computeGaussianDensity (double *const density, const std::vector< std::vector< double > > &distanceMatrix) const |
Compute Gaussian density on points. | |
![]() | |
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 | |
int | OutputDimension {2} |
double | Epsilon {1.0} |
double | StdDev {1.0} |
bool | ComputeGaussianDensity {false} |
![]() | |
int | debugLevel_ |
std::string | debugMsgPrefix_ |
std::string | debugMsgNamePrefix_ |
![]() | |
bool | lastObject_ |
int | threadNumber_ |
Wrapper * | wrapper_ |
Additional Inherited Members | |
![]() | |
static COMMON_EXPORTS debug::LineMode | lastLineMode = ttk::debug::LineMode::NEW |
TTK VTK-filter that computes a Rips complex.
Input | Input table (vtkTable) |
Output | Triangulation (vtkUnstructuredGrid) |
TTK VTK-filter that takes a matrix (vtkTable) as input and computes a Rips complex from it to generate an explicit triangulation.
Online examples:
Definition at line 34 of file RipsComplex.h.
ttk::RipsComplex::RipsComplex | ( | ) |
Definition at line 5 of file RipsComplex.cpp.
|
protected |
Compute diameter statistics on points.
[in] | nPoints | Number of input points |
[out] | diamStats | Min, mean and max cell diameters around point |
[in] | connectivity | Cell connectivity array (pre-filled) |
[in] | cellDiameters | Cell diameters |
Definition at line 213 of file RipsComplex.cpp.
|
protected |
Compute Gaussian density on points.
[out] | density | Gaussian density array on points |
[in] | distanceMatrix | Distance matrix between points |
Definition at line 190 of file RipsComplex.cpp.
int ttk::RipsComplex::execute | ( | std::vector< SimplexId > & | connectivity, |
std::vector< double > & | diameters, | ||
std::array< double *const, 3 > | diamStats, | ||
const std::vector< std::vector< double > > & | distanceMatrix, | ||
double *const | density = nullptr |
||
) | const |
Main entry point.
[out] | connectivity | Cell connectivity array (VTK format) |
[out] | diameters | Cell diameters |
[out] | diamStats | Min, mean and max cell diameters around point |
[in] | distanceMatrix | Input distance matrix |
[out] | density | Gaussian density array on points |
Definition at line 262 of file RipsComplex.cpp.
|
protected |
Compute the Gaussian density from the distance matrix
Definition at line 84 of file RipsComplex.h.
|
protected |
Distance threshold
Definition at line 80 of file RipsComplex.h.
|
protected |
Dimension of the generated complex
Definition at line 78 of file RipsComplex.h.
|
protected |
Standard Deviation for Gaussian density
Definition at line 82 of file RipsComplex.h.