PedestrainCounting
Classes | Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
MultiSampler Class Reference

Classes

class  const_iterator
 

Public Member Functions

 MultiSampler (const Options &opts)
 
void Sample (const std::vector< int > &matchDets, const Pool< Rect > &detections, const Size &imgSize)
 
const_iterator begin (int target) const
 
const_iterator end () const
 

Protected Attributes

int capacity
 
std::vector< Rectsamples
 
bool * mask
 
std::normal_distribution< float > gaussianWidth
 
std::normal_distribution< float > gaussianHeight
 

Static Protected Attributes

static std::default_random_engine generator
 

Member Function Documentation

void MultiSampler::Sample ( const std::vector< int > &  matchDets,
const Pool< Rect > &  detections,
const Size imgSize 
)

Draw samples around the targets and detection pair.

Parameters
matchDetsMatched pairs.
detectionsDetections.

Member Data Documentation

std::vector<Rect> MultiSampler::samples
protected

Samples vector. 1D array: (Capacity + 1) * MULTI_SAMPLER_SAMPLES [0, capacity * MULTI_SAMPLER_SAMPLES - 1] : samples around targets. [capacity * MULTI_SAMPLER_SAMPLES, (capacity + 1) * MULTI_SAMPLER_SAMPLES] : samples for background.


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