PDA

View Full Version : Color enhancement



roberts
January 11, 2010, 17:07:51
Hello,
I'm using DFx21AUC03 camera and MS Visual Studio 2005. I successfully
integrate all camera supported properties as: white balance, gain and exposure into my command line application. From an example gui application (VCD Simple Property_vc8.exe and others) I noticed that camera supports also "Color Enhancement" property (enable/disable checkbox). I was unable to figure out how to access this property so any help would be welcome, thanks.

Stefan Geissler
January 11, 2010, 17:58:57
Hi

Please see this sample (for IC 3.1):



int AC IC_SetColorEnhancement(HGRABBER hGrabber, int OnOff)
{
CGrabberHandle* hTmp = (CGrabberHandle*)hGrabber;
int iSucceeded = 0;
if( hTmp )
{
if( hTmp->pGrabber->isDevValid())
{
tIVCDSwitchPropertyPtr pItf = NULL;
tIVCDPropertyItemsPtr pItems = hTmp->pGrabber->getAvailableVCDProperties();
iSucceeded = IC_NOT_AVAILABLE;
if( pItems != 0 )
{
// Retrieve the absolute value interface for exposure
pItems->findInterfacePtr( VCDID_ColorEnhancement, VCDElement_Value, pItf );

if( pItf != 0 )
{
pItf->setSwitch( OnOff==0?false:true) ;
iSucceeded = IC_SUCCESS;
}
}
}
else
{
iSucceeded = IC_NO_DEVICE;
}
}
return iSucceeded;
}