Public Member Functions | Public Attributes | Static Public Attributes | List of all members
ISM::VotingSpace Class Reference

#include <VotingSpace.hpp>

Inheritance diagram for ISM::VotingSpace:
Inheritance graph
[legend]

Public Member Functions

void calcResult (int i, VotingResultCalculatorPtr &calculator)
 
TypeToInnerMap collectVotesInSphere (PointPtr &centerPtr, bool &voteFromReferenceObjectExists)
 
int discretizeToBins (double x)
 
VotingResultPtrs fillAndEvalVotingSpace (VotedPosePtrs &votes, bool enabledSelfVoteCheck)
 
VotingBinPtr getBin (double x, double y, double z)
 
 VotingSpace (double binSize, double maxProjectionAngleDeviation, int raterType=0)
 

Public Attributes

double binSize
 
int curThread
 
const double halfBinSize
 
double maxProjectionAngleDeviation
 
const int mRaterType
 
int nThreads
 
const double offsetOfSphere
 
std::vector< std::vector< VotingResultPtr > > resultsPerThread
 
const double squaredRadius
 
std::vector< boost::shared_ptr< boost::thread > > threads
 
XIndexToYIndex voteGrid
 
std::vector< std::vector< VotingBinPtr > > votingBinsPerThread
 

Static Public Attributes

static constexpr double epsilon = 1e-6
 

Detailed Description

Definition at line 34 of file VotingSpace.hpp.

Constructor & Destructor Documentation

ISM::VotingSpace::VotingSpace ( double  binSize,
double  maxProjectionAngleDeviation,
int  raterType = 0 
)
inline

Definition at line 39 of file VotingSpace.hpp.

Member Function Documentation

void ISM::VotingSpace::calcResult ( int  i,
VotingResultCalculatorPtr calculator 
)

Definition at line 83 of file VotingSpace.cpp.

TypeToInnerMap ISM::VotingSpace::collectVotesInSphere ( PointPtr centerPtr,
bool &  voteFromReferenceObjectExists 
)

Definition at line 122 of file VotingSpace.cpp.

int ISM::VotingSpace::discretizeToBins ( double  x)

Definition at line 222 of file VotingSpace.cpp.

VotingResultPtrs ISM::VotingSpace::fillAndEvalVotingSpace ( VotedPosePtrs votes,
bool  enabledSelfVoteCheck 
)

Definition at line 40 of file VotingSpace.cpp.

VotingBinPtr ISM::VotingSpace::getBin ( double  x,
double  y,
double  z 
)

Definition at line 95 of file VotingSpace.cpp.

Member Data Documentation

double ISM::VotingSpace::binSize

Definition at line 68 of file VotingSpace.hpp.

int ISM::VotingSpace::curThread

Definition at line 89 of file VotingSpace.hpp.

constexpr double ISM::VotingSpace::epsilon = 1e-6
static

Definition at line 76 of file VotingSpace.hpp.

const double ISM::VotingSpace::halfBinSize

Definition at line 75 of file VotingSpace.hpp.

double ISM::VotingSpace::maxProjectionAngleDeviation

Definition at line 69 of file VotingSpace.hpp.

const int ISM::VotingSpace::mRaterType

Definition at line 72 of file VotingSpace.hpp.

int ISM::VotingSpace::nThreads

Definition at line 85 of file VotingSpace.hpp.

const double ISM::VotingSpace::offsetOfSphere

Definition at line 82 of file VotingSpace.hpp.

std::vector<std::vector<VotingResultPtr> > ISM::VotingSpace::resultsPerThread

Definition at line 88 of file VotingSpace.hpp.

const double ISM::VotingSpace::squaredRadius

Definition at line 80 of file VotingSpace.hpp.

std::vector<boost::shared_ptr<boost::thread> > ISM::VotingSpace::threads

Definition at line 86 of file VotingSpace.hpp.

XIndexToYIndex ISM::VotingSpace::voteGrid

Definition at line 65 of file VotingSpace.hpp.

std::vector<std::vector<VotingBinPtr> > ISM::VotingSpace::votingBinsPerThread

Definition at line 87 of file VotingSpace.hpp.


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


asr_lib_ism
Author(s): Hanselmann Fabian, Heller Florian, Heizmann Heinrich, Kübler Marcel, Mehlhaus Jonas, Meißner Pascal, Qattan Mohamad, Reckling Reno, Stroh Daniel
autogenerated on Wed Jan 8 2020 04:02:41