Download CheckSight user manual
Transcript
CheckSight user manual Camera features and their control LvHDevice hDev; // open the device to get the handle // select the "white balance" LUT mode LvSetEnum (hDev, LvDevice_LvLUTMode, LvLUTMode_BalanceWhite); // adjust white balance: // increase red, decrease blue, leave green channel intact LvSetEnum (hDev, LvDevice_BalanceRatioSelector, LvBalanceRatioSelector_Red); LvSetFloat (hDev, LvDevice_BalanceRatio, 1.2); LvSetEnum (hDev, LvDevice_BalanceRatioSelector, LvBalanceRatioSelector_Green); LvSetFloat (hDev, LvDevice_BalanceRatio, 1.0); LvSetEnum (hDev, LvDevice_BalanceRatioSelector, LvBalanceRatioSelector_Blue); LvSetFloat (hDev, LvDevice_BalanceRatio, 0.8); select the "white balance" LUT mode write_enum (LvLUTMode, BalanceWhite) write_enum (BalanceRatioSelector, Red) write_float (BalanceRatio, 1.2) write_enum (BalanceRatioSelector, Green) write_float (BalanceRatio, 1.0) write_enum (BalanceRatioSelector, Blue) write_float (BalanceRatio, 0.8) Besides the “manual” setting of the white balancing ratios, the camera might compute them automatically based on an actually acquired image. To instruct the camera to compute the new ratios, switch the Automatic White Balance feature to Once (the default value of this enumeration is Off). As soon as switched to Once, the camera will automatically evaluate the acquired image and compute new white balancing factor — considering, that the acquired image is color neutral, i.e. suitable for white balance calibration. When computed, the Automatic White Balance will switch back to Off and the newly computed values will be available through Balance Ratio Selector/Balance Ratio. Of course, the new values will immediately become effective. When required, the process should be repeated again. LvHDevice hDev; // open the device to get the handle // select the "white balance" LUT mode LvSetEnum (hDev, LvDevice_LvLUTMode, LvLUTMode_BalanceWhite); // trigger computation of new white balance factors LvSetEnum (hDev, LvDevice_BalanceWhiteAuto, LvBalanceWhiteAuto_Once); // when finished, it switches back to LvBalanceWhiteAuto_Off // and new balance ratios are immediately applied select the "white balance" LUT mode write_enum (LvLUTMode, BalanceWhite) // trigger computation of new white balance factors write_enum (BalanceWhiteAuto, Once) // when finished, it switches back to LvBalanceWhiteAuto_Off // and new balance ratios are immediately applied Copyright © Leutron Vision 143 Leutron Vision