void CPGRStereoControlDialog::OnRadioStereoalg2camhorz() { // set the pan register to 1 (narrow) TriclopsError error = ::triclopsSetCameraConfiguration( *m_pTriclopsContext, TriCfg_2CAM_HORIZONTAL_NARROW ); _VERIFY_TRICLOPS_ERROR; error = ::triclopsSetResolution( *m_pTriclopsContext, m_iHeight, m_iWidth ); _VERIFY_TRICLOPS_ERROR; // // See if we should adjust the pan register. Not needed for saved images. // if( m_pFlycaptureContext ) { flycaptureSetCameraProperty( *m_pFlycaptureContext, FLYCAPTURE_PAN, 1, 0, FALSE); } m_checkBackForth.EnableWindow( TRUE ); updateDisparitySliders(true); UpdateData(FALSE); }
void ofxffmv::setCameraFeature(CAMERA_BASE_FEATURE featureCode,int firstValue,int secondValue,bool isAuto,bool isEnabled) { FlyCaptureProperty deviceProperty = (FlyCaptureProperty)0xFFFFFFFF; switch (featureCode) { case BASE_BRIGHTNESS: deviceProperty = FLYCAPTURE_BRIGHTNESS; break; case BASE_EXPOSURE: deviceProperty = FLYCAPTURE_AUTO_EXPOSURE; break; case BASE_SATURATION: deviceProperty = FLYCAPTURE_SATURATION; break; case BASE_GAMMA: deviceProperty = FLYCAPTURE_GAMMA; break; case BASE_SHUTTER: deviceProperty = FLYCAPTURE_SHUTTER; break; case BASE_GAIN: deviceProperty = FLYCAPTURE_GAIN; break; case BASE_FRAMERATE: deviceProperty = FLYCAPTURE_FRAME_RATE; break; case BASE_PAN: deviceProperty = FLYCAPTURE_PAN; break; } if ((deviceProperty!=0xFFFFFFFF) && (isInitialized)) flycaptureSetCameraProperty(context,deviceProperty,firstValue,secondValue,isAuto); }
void CPGRStereoControlDialog::SetWideConfig() { // set the pan register to 0 (wide) TriclopsError error = ::triclopsSetCameraConfiguration( *m_pTriclopsContext, TriCfg_2CAM_HORIZONTAL_WIDE ); _VERIFY_TRICLOPS_ERROR; error = ::triclopsSetResolution( *m_pTriclopsContext, m_iHeight, m_iWidth ); _VERIFY_TRICLOPS_ERROR; // // See if we should adjust the pan register. Not needed for saved images. // if( m_pFlycaptureContext ) { flycaptureSetCameraProperty( *m_pFlycaptureContext, FLYCAPTURE_PAN, 0, 0, FALSE); } }