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)
 
PrimitiveShapeShape ()
 
void Shape (PrimitiveShape *shape)
 
size_t Size () const
 
float UpperBound () const
 
float WeightedScore (const PointCloud &pc, float epsilon, float normalThresh) const
 

Detailed Description

Definition at line 18 of file Candidate.h.

Constructor & Destructor Documentation

◆ Candidate() [1/2]

Candidate ( )

Definition at line 3 of file Candidate.cpp.

◆ Candidate() [2/2]

Candidate ( PrimitiveShape shape,
size_t  level 
)

Definition at line 11 of file Candidate.cpp.

Member Function Documentation

◆ Clone()

void Clone ( Candidate c) const
inline

Definition at line 145 of file Candidate.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ComputedSubsets()

size_t ComputedSubsets ( ) const
inline

Definition at line 47 of file Candidate.h.

◆ ConnectedComponent()

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

Definition at line 93 of file Candidate.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ExpectedValue()

float ExpectedValue ( ) const
inline

Definition at line 51 of file Candidate.h.

+ Here is the caller graph for this function:

◆ GlobalScore()

void GlobalScore ( ScoreVisitorT &  scoreVisitor,
const IndexedOctreeType oct 
)

Definition at line 329 of file Candidate.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GlobalWeightedScore()

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

Definition at line 340 of file Candidate.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ImproveBounds()

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

Definition at line 188 of file Candidate.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Indices() [1/2]

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

Definition at line 39 of file Candidate.h.

+ Here is the caller graph for this function:

◆ Indices() [2/2]

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

Definition at line 43 of file Candidate.h.

+ Here is the call graph for this function:

◆ IsEquivalent()

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

Definition at line 101 of file Candidate.cpp.

+ Here is the call graph for this function:

◆ Level()

size_t Level ( ) const
inline

Definition at line 59 of file Candidate.h.

◆ LowerBound()

float LowerBound ( ) const
inline

Definition at line 31 of file Candidate.h.

◆ operator<()

bool operator< ( const Candidate c) const
inline

Definition at line 125 of file Candidate.h.

+ Here is the call graph for this function:

◆ operator<=()

bool operator<= ( const Candidate c) const
inline

Definition at line 135 of file Candidate.h.

+ Here is the call graph for this function:

◆ operator>()

bool operator> ( const Candidate c) const
inline

Definition at line 130 of file Candidate.h.

+ Here is the call graph for this function:

◆ operator>=()

bool operator>= ( const Candidate c) const
inline

Definition at line 140 of file Candidate.h.

+ Here is the call graph for this function:

◆ RecomputeBounds()

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

Definition at line 255 of file Candidate.h.

+ Here is the call graph for this function:

◆ 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 
)

Definition at line 30 of file Candidate.cpp.

+ Here is the call graph for this function:

◆ Reindex() [2/2]

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

Definition at line 71 of file Candidate.cpp.

+ Here is the call graph for this function:

◆ Reset()

void Reset ( )

Definition at line 20 of file Candidate.cpp.

+ Here is the call graph for this function:

◆ SetSubset()

void SetSubset ( size_t  subset)
inline

Definition at line 55 of file Candidate.h.

◆ Shape() [1/2]

PrimitiveShape* Shape ( )
inline

Definition at line 23 of file Candidate.h.

+ Here is the caller graph for this function:

◆ Shape() [2/2]

void Shape ( PrimitiveShape shape)
inline

Definition at line 27 of file Candidate.h.

◆ Size()

size_t Size ( ) const
inline

Definition at line 95 of file Candidate.h.

+ Here is the caller graph for this function:

◆ UpperBound()

float UpperBound ( ) const
inline

Definition at line 35 of file Candidate.h.

◆ WeightedScore()

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

Definition at line 81 of file Candidate.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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