36 #ifndef __EXAMPLE_MIXTURE_OF_GAUSSIANS_FRAME_HH__
37 #define __EXAMPLE_MIXTURE_OF_GAUSSIANS_FRAME_HH__
41 #include <wx/toolbar.h>
44 #include <Gui/StringConv.hh>
45 #include <Gui/ImageCanvas.hh>
47 #include <Base/Common/BIASpragmaStart.hh>
48 #include <bias_config.h>
49 #include <Image/Camera.hh>
50 #include <Image/MixtureOfGaussians.hh>
51 #include <Base/Image/ImageIO.hh>
52 #include <Base/Debug/TimeMeasure.hh>
53 #include <Filter/Rescale.hh>
55 #include <VideoSource/VideoSource_Base.hh>
56 #include <Gui/VideoSource_Controller.hh>
58 # include <VideoSource/VideoSource_DCAM.hh>
59 #endif // BIAS_HAVE_DCAM
61 #include <VideoSource/VideoSource_Disk.hh>
62 #include <Utils/Param.hh>
64 #include <Gui/ConsoleRedirectIO.hh>
92 virtual bool OnInit();
106 void InitCamera(std::vector<std::string>* fileNames=NULL);
107 void InitCameraFL(std::vector<std::string>* fileNames=NULL);
120 void OnQuit(wxCommandEvent& event);
121 void OnGrab(wxCommandEvent& event);
132 void OnShowFL(wxCommandEvent& event);
134 void OnTimer(wxTimerEvent& event);
135 void OnKey(wxKeyEvent& event);
183 DECLARE_EVENT_TABLE()
188 #include <Base/Common/BIASpragmaEnd.hh>
190 #endif // __EXAMPLE_MIXTURE_OF_GAUSSIANS_FRAME_HH__
void OnShowImage2(wxCommandEvent &event)
pthread_mutex_t * guardimagemutex
Defines a common interface to different devices.
pthread_barrier_t * barrier
void OnShowImage6(wxCommandEvent &event)
void OnKey(wxKeyEvent &event)
BIAS::VideoSource * CameraFL_
void OnShowImage3(wxCommandEvent &event)
BIAS::VideoSource * Camera_
BIAS::Camera< unsigned char > DifferenceImgCharRGB_
void OnQuit(wxCommandEvent &event)
display image in wx application, provides zoom and investigation functionality
BIAS::Camera< float > CamImgOrgFL_
void OnShowFL(wxCommandEvent &event)
void OnShowController(wxCommandEvent &event)
void OnGrabContinuous(wxCommandEvent &event)
void OnGrab(wxCommandEvent &event)
void OnShowImage4(wxCommandEvent &event)
void OnShowImage5(wxCommandEvent &event)
Helper class to store blob corners.
void OnShowImage7(wxCommandEvent &event)
ExampleMixtureOfGaussiansFrame(const wxString &title, const wxPoint &pos, const wxSize &size)
BIAS::Camera< float > CamImgRescaledFL_
void OnShowImage1(wxCommandEvent &event)
BIAS::Camera< unsigned char > CamImgRescaled_
void GrabImage()
Stores one image from all activated cameras.
BIAS::Camera< unsigned char > DifferenceImgChar_
BIAS::MixtureOfGaussians< unsigned char > * mog_
unsigned int FrameCounter_
BIAS::Camera< unsigned char > WeightImgChar_
BIAS::Camera< unsigned char > CamImg_
void OnShowImage9(wxCommandEvent &event)
BIAS::Camera< float > CamImgNormalized_
BIAS::Camera< unsigned char > * ShowImage_
BIAS::Camera< float > CamImgFL_
void CreateMenu()
Creates the menu of the main window.
BIAS::Camera< unsigned char > CamImgOrg_
void OnTimer(wxTimerEvent &event)
BIAS::Camera< unsigned char > CamImgNormalizedChar_
pthread_mutex_t * guarddiffimagemutex
void OnShowImage8(wxCommandEvent &event)
void InitCameraFL(std::vector< std::string > *fileNames=NULL)
class TimeMeasure contains functions for timing real time and cpu time.
void InitCamera(std::vector< std::string > *fileNames=NULL)
Initialize cameras with param file.
wxMenuItem * pCheckItemFL_
static void * processImages_(void *thisvisu)
virtual ~ExampleMixtureOfGaussiansFrame()
BIAS::Camera< unsigned char > CamImgOrgRGB_
static void * grabImages_(void *thisvisu)
BIAS::MixtureOfGaussians< float > * mogFL_