ACT-CV - Machine Vision for Cognitive Modeling
Classes | Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
BGMatchers Class Reference

class for running many matchers in many threads More...

#include <Matcher.h>

Inheritance diagram for BGMatchers:
Inheritance graph
Collaboration diagram for BGMatchers:
Collaboration graph

Classes

struct  ThreadData
 work packet for a thread More...
 

Public Member Functions

void Match (const IplImage *src)
 
void SetUpMatchers ()
 

Static Private Member Functions

static void Func (void *p)
 

Private Attributes

std::vector< GCPointer
< MatchImage > > 
matchers [NUM_THREADS]
 
HANDLE threadIds [NUM_THREADS]
 
ThreadData threadData [NUM_THREADS]
 
const IplImage * curImg
 

Additional Inherited Members

- Public Attributes inherited from std::vector< T >
elements
 STL member. More...
 

Detailed Description

class for running many matchers in many threads

Todo:
move to std::thread!

Definition at line 201 of file Matcher.h.

Member Function Documentation

static void BGMatchers::Func ( void *  p)
staticprivate

Definition at line 214 of file Matcher.h.

References curImg, BGMatchers::ThreadData::matchers, and BGMatchers::ThreadData::owner.

Referenced by Match().

void BGMatchers::Match ( const IplImage *  src)

Definition at line 226 of file Matcher.h.

References curImg, Func(), NUM_THREADS, threadData, and threadIds.

void BGMatchers::SetUpMatchers ( )

Member Data Documentation

const IplImage* BGMatchers::curImg
private

Definition at line 224 of file Matcher.h.

Referenced by Func(), and Match().

std::vector<GCPointer<MatchImage> > BGMatchers::matchers[NUM_THREADS]
private

Definition at line 210 of file Matcher.h.

Referenced by SetUpMatchers().

ThreadData BGMatchers::threadData[NUM_THREADS]
private

Definition at line 212 of file Matcher.h.

Referenced by Match(), and SetUpMatchers().

HANDLE BGMatchers::threadIds[NUM_THREADS]
private

Definition at line 211 of file Matcher.h.

Referenced by Match().


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


ACT-CV - Machine Vision for Cognitive Modeling
© 2015 Marc Halbruegge (actcvlibrary@googlemail.com)