Пример #1
0
        public Calibration()
        {
            InitializeComponent();
            camCont = CamContainer.GetReference();

            StartB.Click += StartCalib;
        }
Пример #2
0
        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);
        }
Пример #3
0
 private Scene3D()
 {
     InitializeComponent();
     camCont    = CamContainer.GetReference();
     _view      = new _3DView(openGLControl1, camCont.GetStereopair());
     _view.find = NeedPointsFinded;
 }