TTK
Loading...
Searching...
No Matches
ttk::DepthImageBasedGeometryApproximation Class Reference

This module approximates the depicted geometry of a depth image. More...

#include <DepthImageBasedGeometryApproximation.h>

Inheritance diagram for ttk::DepthImageBasedGeometryApproximation:
ttk::Debug ttk::BaseClass ttkDepthImageBasedGeometryApproximation

Public Member Functions

 DepthImageBasedGeometryApproximation ()
 ~DepthImageBasedGeometryApproximation () override=default
template<class dataType, class idType>
int execute (float *pointCoordinates, double *triangleDistortions, idType *connectivityList, idType *offsetArray, const dataType *depthValues, const double *camPos, const double *camDir, const double *camUp, const double *camNearFar, const double *camHeight, const double *resolution) 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

This module approximates the depicted geometry of a depth image.

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

This module approximates the depicted geometry of a depth image solely based on the depth values and the corresponding camera parameter.

Related publication: 'VOIDGA: A View-Approximation Oriented Image Database Generation Approach' Jonas Lukasczyk, Eric Kinner, James Ahrens, Heike Leitte, and Christoph Garth. IEEE 8th Symposium on Large Data Analysis and Visualization (LDAV), 2018.

Online examples:

Definition at line 33 of file DepthImageBasedGeometryApproximation.h.

Constructor & Destructor Documentation

◆ DepthImageBasedGeometryApproximation()

ttk::DepthImageBasedGeometryApproximation::DepthImageBasedGeometryApproximation ( )
inline

Definition at line 36 of file DepthImageBasedGeometryApproximation.h.

◆ ~DepthImageBasedGeometryApproximation()

ttk::DepthImageBasedGeometryApproximation::~DepthImageBasedGeometryApproximation ( )
overridedefault

Member Function Documentation

◆ execute()

template<class dataType, class idType>
int ttk::DepthImageBasedGeometryApproximation::execute ( float * pointCoordinates,
double * triangleDistortions,
idType * connectivityList,
idType * offsetArray,
const dataType * depthValues,
const double * camPos,
const double * camDir,
const double * camUp,
const double * camNearFar,
const double * camHeight,
const double * resolution ) const

This function computes for an input depth image and its corresponding camera parameters the original 3D position of each pixel and then connects neighbouring pixels via triangles. The function also returns a scalar array (triangleDistortions) that records the distortion of each triangle that can later be used to filter the resulting geometry.

Definition at line 68 of file DepthImageBasedGeometryApproximation.h.


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