Example for using the videosource controller to steer shutter, gain, ...
, VideoSource_Controller
- Author
- MIP
#include <bias_config.h>
#include <Base/Common/BIASpragma.hh>
#include <Base/Image/Image.hh>
#include <Base/Image/ImageIO.hh>
#include <Base/Common/W32Compat.hh>
#include <Image/Camera.hh>
#include <wx/wx.h>
#ifdef BIAS_HAVE_UEYE
# include <VideoSource/VideoSource_uEye.hh>
#endif
#ifdef BIAS_HAVE_DCAM
# include <VideoSource/VideoSource_DCAM.hh>
#endif
#ifdef BIAS_HAVE_V4L
# include <VideoSource/VideoSource_V4L.hh>
#endif
#include <VideoSource/VideoSource_Base.hh>
#include <Gui/VideoSource_Controller.hh>
using namespace std;
using namespace BIAS;
class MyApp : public wxApp
{
public:
virtual bool OnInit();
};
bool MyApp::OnInit()
{
#ifdef BIAS_HAVE_DCAM
int i=0;
while(i++<100){
grabimage.
Display(
true,10,DEFAULT_32to8_scale);
}
#endif
return TRUE;
}
IMPLEMENT_APP(MyApp)