public static void InitCameras() { Camera[] cam; CamContainer camCont; DsDevice[] systemCameras = DsDevice.GetDevicesOfCat(FilterCategory.VideoInputDevice); if (systemCameras != null) { camCont = CamContainer.GetReference(); cam = new Camera[systemCameras.Length]; } else { MessageBox.Show("Video Inputs not found.", "Warning!", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } for (int i = 0; i < systemCameras.Length; i++) { switch (systemCameras[i].Name) { case "Logitech BRIO": cam[i] = new Brio(i); break; default: cam[i] = new UndefinedCamera(i, systemCameras[i].Name); break; } } camCont.Contain(cam); }
public Calibration() { InitializeComponent(); camCont = CamContainer.GetReference(); StartB.Click += StartCalib; }
private Scene3D() { InitializeComponent(); camCont = CamContainer.GetReference(); _view = new _3DView(openGLControl1, camCont.GetStereopair()); _view.find = NeedPointsFinded; }
public static CamContainer GetReference() { if (_instance == null) { _instance = new CamContainer(); } return(_instance); }