PDA

View Full Version : ColorEnhancement



NicoT
March 8, 2011, 11:18:11
Hi,

I have some problem to acces to the "ColorEnhancement" feature with DFK 72AUC02 camera :

How can i active this feature ?
- VCDProp.Automation[VCDIDs.VCDID_ColorEnhancement] = true;

How can i read the curent value ?


Programm in C# with Visual studio 2008.

Best Regards.

NicoT

Michael Kirmse
March 8, 2011, 12:15:58
Hi NicoT,

the usage of the ColorEnhancement is similar to the WhiteBalanceGreen (http://www.theimagingsourceforums.com/showthread.php?t=323720):


//defining the variables
private TIS.Imaging.VCDPropertyItem ColorEnhancement = null;
private TIS.Imaging.VCDSwitchProperty ColorEnhancementSwitch = null;

//getting the property
ColorEnhancement = icImagingControl1.VCDPropertyItems.FindItem(TIS.Im aging.VCDIDs.VCDID_ColorEnhancement);
ColorEnhancementSwitch = (TIS.Imaging.VCDSwitchProperty)ColorEnhancement.El ements.FindInterface(TIS.Imaging.VCDIDs.VCDElement _Value + ":" + TIS.Imaging.VCDIDs.VCDInterface_Switch);

Now you can easily switch the ColorEnhancement on and off by using some code like this:

if (ColorEnhancementSwitch != null)
{
if (ColorEnhancementSwitch.Switch)
{
ColorEnhancementSwitch.Switch = false;
}
else
{
ColorEnhancementSwitch.Switch = true;
}
}
I used a button for this.

NicoT
March 9, 2011, 15:32:04
Thank's, it's OK