Candidate Class Reference

#include <VisionX/components/pointcloud_processor/EfficientRANSACPrimitiveExtractor/EfficientRANSAC/Candidate.h>

Public Member Functions

 Candidate ()
 
 Candidate (PrimitiveShape *shape, size_t level)
 
void Clone (Candidate *c) const
 
size_t ComputedSubsets () const
 
void ConnectedComponent (const PointCloud &pc, float bitmapEpsilon, float *borderRatio=0)
 
float ExpectedValue () const
 
template<class ScoreVisitorT>
void GlobalScore (ScoreVisitorT &scoreVisitor, const IndexedOctreeType &oct)
 
template<class ScoreVisitorT>
float GlobalWeightedScore (ScoreVisitorT &scoreVisitor, const IndexedOctreeType &oct, const PointCloud &pc, float epsilon, float normalThresh, float bitmapEpsilon)
 
template<class ScoreVisitorT>
bool ImproveBounds (const MiscLib::Vector< ImmediateOctreeType * > &octrees, const PointCloud &pc, ScoreVisitorT &scoreVisitor, size_t currentSize, float bitmapEpsilon, size_t maxSubset, size_t minPoints=500)
 
MiscLib::RefCounted< MiscLib::Vector< size_t > > * Indices ()
 
void Indices (MiscLib::RefCounted< MiscLib::Vector< size_t > > *indices)
 
bool IsEquivalent (const Candidate &c, const PointCloud &pc, float epsilon, float normalThresh) const
 
size_t Level () const
 
float LowerBound () const
 
bool operator< (const Candidate &c) const
 
bool operator<= (const Candidate &c) const
 
bool operator> (const Candidate &c) const
 
bool operator>= (const Candidate &c) const
 
template<class ScoreVisitorT>
void RecomputeBounds (const MiscLib::Vector< ImmediateOctreeType * > &octrees, const PointCloud &pc, ScoreVisitorT &scoreVisitor, size_t currentSize, float epsilon, float normalThresh, float bitmapEpsilon)
 
void Reindex (const MiscLib::Vector< int > &newIndices, int minInvalidIndex, size_t mergedSubsets, const MiscLib::Vector< size_t > &subsetSizes, const PointCloud &pc, size_t currentSize, float epsilon, float normalThresh, float bitmapEpsilon)
 
void Reindex (const MiscLib::Vector< size_t > &reindex)
 
void Reset ()
 
void SetSubset (size_t subset)
 
PrimitiveShape * Shape ()
 
void Shape (PrimitiveShape *shape)
 
size_t Size () const
 
float UpperBound () const
 
float WeightedScore (const PointCloud &pc, float epsilon, float normalThresh) const
 

Constructor & Destructor Documentation

◆ Candidate() [1/2]

Candidate ( )

◆ Candidate() [2/2]

Candidate ( PrimitiveShape * shape,
size_t level )

Member Function Documentation

◆ Clone()

void Clone ( Candidate * c) const
inline

◆ ComputedSubsets()

size_t ComputedSubsets ( ) const
inline

◆ ConnectedComponent()

void ConnectedComponent ( const PointCloud & pc,
float bitmapEpsilon,
float * borderRatio = 0 )

◆ ExpectedValue()

float ExpectedValue ( ) const
inline

◆ GlobalScore()

template<class ScoreVisitorT>
void GlobalScore ( ScoreVisitorT & scoreVisitor,
const IndexedOctreeType & oct )

◆ GlobalWeightedScore()

template<class ScoreVisitorT>
float GlobalWeightedScore ( ScoreVisitorT & scoreVisitor,
const IndexedOctreeType & oct,
const PointCloud & pc,
float epsilon,
float normalThresh,
float bitmapEpsilon )

◆ ImproveBounds()

template<class ScoreVisitorT>
bool ImproveBounds ( const MiscLib::Vector< ImmediateOctreeType * > & octrees,
const PointCloud & pc,
ScoreVisitorT & scoreVisitor,
size_t currentSize,
float bitmapEpsilon,
size_t maxSubset,
size_t minPoints = 500 )

◆ Indices() [1/2]

MiscLib::RefCounted< MiscLib::Vector< size_t > > * Indices ( )
inline

◆ Indices() [2/2]

void Indices ( MiscLib::RefCounted< MiscLib::Vector< size_t > > * indices)
inline

◆ IsEquivalent()

bool IsEquivalent ( const Candidate & c,
const PointCloud & pc,
float epsilon,
float normalThresh ) const

◆ Level()

size_t Level ( ) const
inline

◆ LowerBound()

float LowerBound ( ) const
inline

◆ operator<()

bool operator< ( const Candidate & c) const
inline

◆ operator<=()

bool operator<= ( const Candidate & c) const
inline

◆ operator>()

bool operator> ( const Candidate & c) const
inline

◆ operator>=()

bool operator>= ( const Candidate & c) const
inline

◆ RecomputeBounds()

template<class ScoreVisitorT>
void RecomputeBounds ( const MiscLib::Vector< ImmediateOctreeType * > & octrees,
const PointCloud & pc,
ScoreVisitorT & scoreVisitor,
size_t currentSize,
float epsilon,
float normalThresh,
float bitmapEpsilon )

◆ Reindex() [1/2]

void Reindex ( const MiscLib::Vector< int > & newIndices,
int minInvalidIndex,
size_t mergedSubsets,
const MiscLib::Vector< size_t > & subsetSizes,
const PointCloud & pc,
size_t currentSize,
float epsilon,
float normalThresh,
float bitmapEpsilon )

◆ Reindex() [2/2]

void Reindex ( const MiscLib::Vector< size_t > & reindex)

◆ Reset()

void Reset ( )

◆ SetSubset()

void SetSubset ( size_t subset)
inline

◆ Shape() [1/2]

PrimitiveShape * Shape ( )
inline

◆ Shape() [2/2]

void Shape ( PrimitiveShape * shape)
inline

◆ Size()

size_t Size ( ) const
inline

◆ UpperBound()

float UpperBound ( ) const
inline

◆ WeightedScore()

float WeightedScore ( const PointCloud & pc,
float epsilon,
float normalThresh ) const

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