public AddCam(globals global_variables) { this.global_variables = global_variables; InitializeComponent(); short i; Filter f; //what cameras are available? Populate the combo box cboCamaras.Items.Clear(); for (i = 0; i < global_variables.WDM_filters.VideoInputDevices.Count; i++) { f = global_variables.WDM_filters.VideoInputDevices[i]; cboCamaras.Items.Add(f.Name); } }
public frmMain() { Random rnd = new Random(); global_variables = new globals(); InitializeComponent(); initialise(); // load calibration data stereo.loadCalibrationData(global_variables.calibration_filename); //what cameras are available? Populate the list box lstCameraDevices.Items.Clear(); for (short i = 0; i < global_variables.WDM_filters.VideoInputDevices.Count; i++) { Filter f = global_variables.WDM_filters.VideoInputDevices[i]; if (!f.Name.ToLower().Contains("(vfw)")) // don't show VFW drivers lstCameraDevices.Items.Add(f.Name); } }
public frmMain() { global_variables = new globals(); InitializeComponent(); }