// Open DUO camera sensor bool DUOStereoSensorDriver::openCamera() { if (camera_open) return true; if(!OpenDUOCamera(frameSize.width, frameSize.height, 30)) { camera_open = false; return false; } camera_open = true; // Set exposure and LED brightness SetGain(duoProperties->gain); SetExposure(duoProperties->exposure); SetLed(duoProperties->led); // Un-flip frames SetVFlip(true); // Enable retrieval of undistorted (rectified) frames SetUndistort(true); return true; }
bool PS3::ResetCamParam() { // TODO return false //! Set the parameters value to default SetHFlip( false ); SetVFlip( false ); SetAutoGain( true ); SetGainValue( 0 ); SetAutoExposure( true ); SetExposure( 0 ); SetAutoWhiteBalance( true ); SetWhiteBalanceRed( 0 ); SetWhiteBalanceGreen( 0 ); SetWhiteBalanceBlue( 0 ); return true; }