Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
BIAS::clfTrimmedICP Class Reference

#include <OpenCLFramework/Algorithm/clfTrimmedICP.hh>

+ Inheritance diagram for BIAS::clfTrimmedICP:
+ Collaboration diagram for BIAS::clfTrimmedICP:

Public Member Functions

void AddDebugLevel (const long int lv)
 
void AddDebugLevel (const std::string &name)
 
 clfTrimmedICP (int w=640, int h=480)
 
int Compute (float nearestDistance, unsigned int numberOfPoints)
 
bool DebugLevelIsSet (const long int lv) const
 
bool DebugLevelIsSet (const std::string &name) const
 
int Fuse (float nearestDistance)
 
BIAS::glfVertexBufferGetData ()
 
int GetDebugLevel () const
 
std::ostream & GetDebugStream () const
 
void GetDebugStream (std::ostream &os) const
 
BIAS::glfVertexBufferGetModel ()
 
BIAS::ProjectionParametersBaseGetParams ()
 
long int Name2DebugLevel (const std::string &name) const
 looks up a debuglevel in the internal map, returns 0 if not found More...
 
long int NewDebugLevel (const std::string &name)
 creates a new debuglevel More...
 
void PrintDebugLevel (std::ostream &os=std::cout) const
 
void RemoveDebugLevel (const long int lv)
 
void RemoveDebugLevel (const std::string &name)
 
unsigned int SetDataFromDepthMap (const BIAS::Camera< float > depthMap, const BIAS::Camera< unsigned char > ampImage)
 
void SetDebugLevel (const long int lv)
 
void SetDebugLevel (const std::string &name)
 
void SetDebugStream (const std::ostream &os)
 
void SetMaxIterations (unsigned int maxiterations)
 
unsigned int SetModelFromDepthMap (const BIAS::Camera< float > depthMap, const BIAS::Camera< unsigned char > ampImage)
 
void ShowDebugLevel (std::ostream &os=std::cout) const
 prints all internally known debuglevels More...
 
 ~clfTrimmedICP ()
 

Static Public Member Functions

static bool comparePairByDistance (icppair a, icppair b)
 
static bool compareVectorByValue (icpvecandval a, icpvecandval b)
 
static long int GetGlobalDebugLevel ()
 
static void SetGlobalDebugLevel (long int lev)
 

Protected Member Functions

int ComputeNearestPoints_ (float nearestDistance, unsigned int numberOfPoints, float &res)
 
int ComputeOptimalMotion_ (BIAS::Vector3< double > &c, BIAS::RMatrix &R)
 
long ConsumeNextFreeDebuglevel_ ()
 returns the next available debuglevel More...
 
unsigned int setFromDepthMap_ (BIAS::glfVertexBuffer &buffer, const BIAS::Camera< float > depthMap, const BIAS::Camera< unsigned char > ampImage, bool keep=false, bool padData=false)
 

Protected Attributes

long int _liDebugLevel
 
long int _liNextDebugLevel
 new concept, debuglevel are managed here in the debug class More...
 
std::map< std::string, long int > _String2Debuglevel
 
BIAS::Vector3< double > centerA_
 
BIAS::Vector3< double > centerB_
 
clfContext context_
 
clfBufferdataBuffer_
 
BIAS::ProjectionParametersBasedataParams_
 
unsigned int datapointcnt_
 
BIAS::glfVertexBuffer dataPoints_
 
float * distToSort_
 
int h_
 
BIAS::Camera< float > inDepth_
 
BIAS::Camera< unsigned char > inTex_
 
unsigned int iterationCounter_
 
float lasterror_
 
int maxComputeUnits_
 
unsigned int maxIterations_
 
clfBuffermodelBuffer_
 
BIAS::ProjectionParametersBasemodelParams_
 
unsigned int modelpointcnt_
 
BIAS::glfVertexBuffer modelPoints_
 
unsigned int numberOfPoints_
 
clfBufferoutBuffer_
 
std::vector< icppairpairs_
 
clfProgramprogramCL_
 
clfRadixSort radixsort_
 
unsigned int sizeofvertex_
 
unsigned int * sortedidx_
 
BIAS::glfVertexFormat vertexFormat_
 
int w_
 

Static Protected Attributes

static std::ostream _zDebugStream
 
static long int GlobalDebugLevel = 0
 

Detailed Description

Definition at line 52 of file clfTrimmedICP.hh.

Constructor & Destructor Documentation

clfTrimmedICP::clfTrimmedICP ( int  w = 640,
int  h = 480 
)
clfTrimmedICP::~clfTrimmedICP ( )

Definition at line 62 of file clfTrimmedICP.cpp.

Member Function Documentation

void BIAS::Debug::AddDebugLevel ( const long int  lv)
inlineinherited
void BIAS::Debug::AddDebugLevel ( const std::string &  name)
inlineinherited

Definition at line 362 of file Debug.hh.

static bool BIAS::clfTrimmedICP::comparePairByDistance ( icppair  a,
icppair  b 
)
inlinestatic

Definition at line 79 of file clfTrimmedICP.hh.

References BIAS::icppair::distance.

Referenced by ComputeNearestPoints_().

static bool BIAS::clfTrimmedICP::compareVectorByValue ( icpvecandval  a,
icpvecandval  b 
)
inlinestatic

Definition at line 83 of file clfTrimmedICP.hh.

References BIAS::icpvecandval::value.

Referenced by ComputeOptimalMotion_().

int clfTrimmedICP::Compute ( float  nearestDistance,
unsigned int  numberOfPoints 
)
int clfTrimmedICP::ComputeNearestPoints_ ( float  nearestDistance,
unsigned int  numberOfPoints,
float &  res 
)
protected
int clfTrimmedICP::ComputeOptimalMotion_ ( BIAS::Vector3< double > &  c,
BIAS::RMatrix R 
)
protected
long BIAS::Debug::ConsumeNextFreeDebuglevel_ ( )
inlineprotectedinherited

returns the next available debuglevel

Author
woelk 09/2006

Definition at line 521 of file Debug.hh.

bool BIAS::Debug::DebugLevelIsSet ( const long int  lv) const
inlineinherited
bool BIAS::Debug::DebugLevelIsSet ( const std::string &  name) const
inlineinherited

Definition at line 350 of file Debug.hh.

int clfTrimmedICP::Fuse ( float  nearestDistance)

Definition at line 197 of file clfTrimmedICP.cpp.

BIAS::glfVertexBuffer* BIAS::clfTrimmedICP::GetData ( )
inline

Definition at line 64 of file clfTrimmedICP.hh.

int BIAS::Debug::GetDebugLevel ( ) const
inlineinherited
std::ostream& BIAS::Debug::GetDebugStream ( ) const
inlineinherited

Definition at line 405 of file Debug.hh.

void BIAS::Debug::GetDebugStream ( std::ostream &  os) const
inlineinherited

Definition at line 414 of file Debug.hh.

static long int BIAS::Debug::GetGlobalDebugLevel ( )
inlinestaticinherited

Definition at line 431 of file Debug.hh.

BIAS::glfVertexBuffer* BIAS::clfTrimmedICP::GetModel ( )
inline

Definition at line 67 of file clfTrimmedICP.hh.

BIAS::ProjectionParametersBase* BIAS::clfTrimmedICP::GetParams ( )
inline

Definition at line 71 of file clfTrimmedICP.hh.

long int BIAS::Debug::Name2DebugLevel ( const std::string &  name) const
inlineinherited

looks up a debuglevel in the internal map, returns 0 if not found

Author
woelk 09/2006

Definition at line 454 of file Debug.hh.

long int BIAS::Debug::NewDebugLevel ( const std::string &  name)
inlineinherited
void BIAS::Debug::PrintDebugLevel ( std::ostream &  os = std::cout) const
inlineinherited

Definition at line 383 of file Debug.hh.

void BIAS::Debug::RemoveDebugLevel ( const long int  lv)
inlineinherited

Definition at line 369 of file Debug.hh.

void BIAS::Debug::RemoveDebugLevel ( const std::string &  name)
inlineinherited

Definition at line 376 of file Debug.hh.

unsigned int clfTrimmedICP::SetDataFromDepthMap ( const BIAS::Camera< float >  depthMap,
const BIAS::Camera< unsigned char >  ampImage 
)
void BIAS::Debug::SetDebugLevel ( const long int  lv)
inlineinherited
void BIAS::Debug::SetDebugLevel ( const std::string &  name)
inlineinherited

Definition at line 325 of file Debug.hh.

void BIAS::Debug::SetDebugStream ( const std::ostream &  os)
inlineinherited

Definition at line 398 of file Debug.hh.

unsigned int clfTrimmedICP::setFromDepthMap_ ( BIAS::glfVertexBuffer buffer,
const BIAS::Camera< float >  depthMap,
const BIAS::Camera< unsigned char >  ampImage,
bool  keep = false,
bool  padData = false 
)
protected
static void BIAS::Debug::SetGlobalDebugLevel ( long int  lev)
inlinestaticinherited

Definition at line 424 of file Debug.hh.

void BIAS::clfTrimmedICP::SetMaxIterations ( unsigned int  maxiterations)
inline

Definition at line 75 of file clfTrimmedICP.hh.

unsigned int clfTrimmedICP::SetModelFromDepthMap ( const BIAS::Camera< float >  depthMap,
const BIAS::Camera< unsigned char >  ampImage 
)
void BIAS::Debug::ShowDebugLevel ( std::ostream &  os = std::cout) const
inlineinherited

prints all internally known debuglevels

Author
woelk 09/2006

Definition at line 496 of file Debug.hh.

Member Data Documentation

long int BIAS::Debug::_liDebugLevel
protectedinherited

Definition at line 510 of file Debug.hh.

Referenced by BIAS::Debug::operator=(), and BIAS::ImageBase::operator=().

long int BIAS::Debug::_liNextDebugLevel
protectedinherited

new concept, debuglevel are managed here in the debug class

Definition at line 516 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

std::map<std::string, long int> BIAS::Debug::_String2Debuglevel
protectedinherited

Definition at line 517 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

std::ostream BIAS::Debug::_zDebugStream
staticprotectedinherited

Definition at line 511 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

BIAS::Vector3<double> BIAS::clfTrimmedICP::centerA_
protected

Definition at line 103 of file clfTrimmedICP.hh.

Referenced by Compute(), and ComputeOptimalMotion_().

BIAS::Vector3<double> BIAS::clfTrimmedICP::centerB_
protected

Definition at line 103 of file clfTrimmedICP.hh.

Referenced by Compute(), and ComputeOptimalMotion_().

clfContext BIAS::clfTrimmedICP::context_
protected
clfBuffer* BIAS::clfTrimmedICP::dataBuffer_
protected
BIAS::ProjectionParametersBase* BIAS::clfTrimmedICP::dataParams_
protected

Definition at line 99 of file clfTrimmedICP.hh.

Referenced by Compute(), and SetDataFromDepthMap().

unsigned int BIAS::clfTrimmedICP::datapointcnt_
protected
BIAS::glfVertexBuffer BIAS::clfTrimmedICP::dataPoints_
protected

Definition at line 93 of file clfTrimmedICP.hh.

Referenced by clfTrimmedICP(), and SetDataFromDepthMap().

float* BIAS::clfTrimmedICP::distToSort_
protected

Definition at line 121 of file clfTrimmedICP.hh.

Referenced by clfTrimmedICP(), and ComputeNearestPoints_().

long int BIAS::Debug::GlobalDebugLevel = 0
staticprotectedinherited

Definition at line 513 of file Debug.hh.

int BIAS::clfTrimmedICP::h_
protected

Definition at line 108 of file clfTrimmedICP.hh.

Referenced by clfTrimmedICP(), ComputeNearestPoints_(), and setFromDepthMap_().

BIAS::Camera<float> BIAS::clfTrimmedICP::inDepth_
protected

Definition at line 101 of file clfTrimmedICP.hh.

Referenced by setFromDepthMap_().

BIAS::Camera<unsigned char> BIAS::clfTrimmedICP::inTex_
protected

Definition at line 102 of file clfTrimmedICP.hh.

Referenced by setFromDepthMap_().

unsigned int BIAS::clfTrimmedICP::iterationCounter_
protected

Definition at line 105 of file clfTrimmedICP.hh.

Referenced by clfTrimmedICP(), and Compute().

float BIAS::clfTrimmedICP::lasterror_
protected

Definition at line 107 of file clfTrimmedICP.hh.

Referenced by clfTrimmedICP(), Compute(), and setFromDepthMap_().

int BIAS::clfTrimmedICP::maxComputeUnits_
protected
unsigned int BIAS::clfTrimmedICP::maxIterations_
protected

Definition at line 105 of file clfTrimmedICP.hh.

Referenced by clfTrimmedICP(), and Compute().

clfBuffer* BIAS::clfTrimmedICP::modelBuffer_
protected

Definition at line 114 of file clfTrimmedICP.hh.

Referenced by clfTrimmedICP(), ComputeNearestPoints_(), and SetModelFromDepthMap().

BIAS::ProjectionParametersBase * BIAS::clfTrimmedICP::modelParams_
protected

Definition at line 99 of file clfTrimmedICP.hh.

Referenced by SetModelFromDepthMap().

unsigned int BIAS::clfTrimmedICP::modelpointcnt_
protected

Definition at line 96 of file clfTrimmedICP.hh.

Referenced by SetModelFromDepthMap().

BIAS::glfVertexBuffer BIAS::clfTrimmedICP::modelPoints_
protected

Definition at line 94 of file clfTrimmedICP.hh.

Referenced by clfTrimmedICP(), and SetModelFromDepthMap().

unsigned int BIAS::clfTrimmedICP::numberOfPoints_
protected

Definition at line 118 of file clfTrimmedICP.hh.

Referenced by ComputeNearestPoints_(), and ComputeOptimalMotion_().

clfBuffer* BIAS::clfTrimmedICP::outBuffer_
protected

Definition at line 116 of file clfTrimmedICP.hh.

Referenced by clfTrimmedICP(), ComputeNearestPoints_(), and ComputeOptimalMotion_().

std::vector<icppair> BIAS::clfTrimmedICP::pairs_
protected

Definition at line 100 of file clfTrimmedICP.hh.

Referenced by clfTrimmedICP(), ComputeNearestPoints_(), and ComputeOptimalMotion_().

clfProgram* BIAS::clfTrimmedICP::programCL_
protected
clfRadixSort BIAS::clfTrimmedICP::radixsort_
protected

Definition at line 123 of file clfTrimmedICP.hh.

Referenced by ComputeNearestPoints_().

unsigned int BIAS::clfTrimmedICP::sizeofvertex_
protected

Definition at line 105 of file clfTrimmedICP.hh.

Referenced by clfTrimmedICP().

unsigned int* BIAS::clfTrimmedICP::sortedidx_
protected

Definition at line 120 of file clfTrimmedICP.hh.

Referenced by clfTrimmedICP(), ComputeNearestPoints_(), and ComputeOptimalMotion_().

BIAS::glfVertexFormat BIAS::clfTrimmedICP::vertexFormat_
protected

Definition at line 95 of file clfTrimmedICP.hh.

Referenced by clfTrimmedICP().

int BIAS::clfTrimmedICP::w_
protected

Definition at line 108 of file clfTrimmedICP.hh.

Referenced by clfTrimmedICP(), ComputeNearestPoints_(), and setFromDepthMap_().


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