21 #include <boost/enable_shared_from_this.hpp> 22 #include <boost/thread/thread.hpp> 34 class VotingSpace :
public boost::enable_shared_from_this<VotingSpace>
40 enable_shared_from_this(),
42 maxProjectionAngleDeviation(maxProjectionAngleDeviation),
47 nThreads(boost::thread::hardware_concurrency()),
86 std::vector<boost::shared_ptr<boost::thread>>
threads;
VotingBinPtr getBin(double x, double y, double z)
std::vector< std::vector< VotingResultPtr > > resultsPerThread
boost::shared_ptr< VotingBin > VotingBinPtr
void calcResult(int i, VotingResultCalculatorPtr &calculator)
VotingResultPtrs fillAndEvalVotingSpace(VotedPosePtrs &votes, bool enabledSelfVoteCheck)
boost::shared_ptr< Point > PointPtr
std::map< int, YIndexToZIndex > XIndexToYIndex
int discretizeToBins(double x)
const double squaredRadius
std::vector< VotedPosePtr > VotedPosePtrs
double maxProjectionAngleDeviation
std::map< std::string, IdToVoteMap > TypeToInnerMap
VotingSpace(double binSize, double maxProjectionAngleDeviation, int raterType=0)
std::vector< boost::shared_ptr< boost::thread > > threads
const double offsetOfSphere
boost::shared_ptr< VotingResultCalculator > VotingResultCalculatorPtr
std::vector< std::vector< VotingBinPtr > > votingBinsPerThread
std::vector< VotingResultPtr > VotingResultPtrs
static constexpr double epsilon
this namespace contains all generally usable classes.
TypeToInnerMap collectVotesInSphere(PointPtr ¢erPtr, bool &voteFromReferenceObjectExists)