1
notes for OpenCV WinRT implementation:
4
implements the image processing and OpenCV app control
5
it is running on a background thread, started by XAML
7
in the Application project
9
class VideoCapture_WinRT:
10
implements the IVideoCapture interface from OpenCV
11
video is initialized and frames are grabbed on the UI thread
12
see files cap_winrt.hpp/cpp
14
class HighguiBridge, a singleton
15
implements the OpenCV Highgui functions for XAML (limited at this time),
16
and also bridges to the UI thread functions for XAML and video operations.
17
see files cap_winrt_highgui.hpp/cpp
19
class Video, a singleton
20
encapsulates the Media Foundation interface needed for video initialization and grabbing.
21
called through Highgui and XAML, only on the UI thread
22
see files cap_winrt_video.hpp/cpp
25
requests from the OpenCV bg thread to the Video/XAML UI thread
26
are made through HighguiBridge::requestForUIthreadAsync(), which uses
27
the "progress reporter" method provided by the WinRT class
28
IAsyncActionWithProgress. Also the bg thread is started by create_async().
29
see file MainPage.xaml.cpp
30
in the Application project