Move the sources to trunk
[opencv] / apps / HMMDemo / Threads.h
1 #ifndef __THREADS_H__
2 #define __THREADS_H__
3
4 //#include "stdafx.h"
5 #include "FaceBase.h"
6 #include "HMMDemoDoc.h"
7 #include "MainFrm.h"
8
9 //#ifndef _WINDOWS_
10     //#include <windows.h>
11 //#endif
12
13 struct StartTrainParams {
14     CHMMDemoDoc* doc;
15     int flag;
16     CMainFrame* frame;
17 };
18
19 extern HANDLE g_hevtWakeUpControlThread;
20 extern CRITICAL_SECTION g_critSect;
21
22 extern DWORD dwCtrlTrainThread;
23 extern HANDLE hCtrlTrainThread;
24
25 bool startTrain( CHMMDemoDoc* doc, CMainFrame* frame, int flag );
26 DWORD ctrlTrainThreadFunc( LPVOID param );
27
28 bool recognizeThread(CImage& image, CRect rect, /*HWND hwnd,*/
29                             CFaceBase& base, CImageBaseView* baseview);
30
31 #endif // if !defined __THREADS_H__