Пример #1
0
        public CameraPreviewForm()
        {
            InitializeComponent();

            camCont.GetCameraByNum(0).OnCaptured += ShowFrame;
            camCont.GetCameraByNum(1).OnCaptured += ShowFrame;
            camCont.GetStereopair().OnModeChanged += RefreshModeButton;

            RefreshUI();
        }
Пример #2
0
 private void StartCalib(object sender, EventArgs e)
 {
     if (camCont.GetCameraByNum(0).CameraMatrix.Rows != 0 && camCont.GetCameraByNum(1).CameraMatrix.Rows != 0)
     {
         camCont.GetStereopair().PointsBuffer = Int32.Parse(PointsBuffTB.Text);
         camCont.GetStereopair().Mode         = SPMode.Calibration;
     }
     else
     {
         MessageBox.Show("Cameras Intrisics not loaded! Please, load it before calibration...", "Attention!", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
     }
 }
Пример #3
0
 private Scene3D()
 {
     InitializeComponent();
     camCont    = CamContainer.GetReference();
     _view      = new _3DView(openGLControl1, camCont.GetStereopair());
     _view.find = NeedPointsFinded;
 }