PDA

View Full Version : Binning Property



NicoT
March 9, 2011, 16:21:42
Hi,

Does somebody have a sample with Binning ?



Binning = ImagingControl.VCDPropertyItems.FindItem("{4F95A06D-9C15-407B-96AB-CF3FED047BA4}");
BinningMapStrings = (VCDMapStringsProperty)Binning.Elements.FindInterf ace(VCDIDs.VCDElement_Value + ":" + VCDIDs.VCDInterface_MapStrings);
if (null != ItemMapStrings)
{
string[] ListBinning = ItemMapStrings.Strings;
string CurrentValue = ItemMapStrings.String;
}

Here it's ok to access to Binning but when i try to change the property (ex : binning ="2") i have an error !!

Stefan Geissler
March 9, 2011, 16:27:58
You need IC Imaging Control 3.2 in order to use binning. Then the binning is activated by setting the video format e.g.

cGrabber.setVideoFormat("RGB32 (640x188) [Binning 4x]");

There are no other working properties for binning available.

You may also play with the VideoFormatdescription:

void VidioDeviceDescFun()
{
Grabber cGrabber;
cGrabber.showDevicePage();

Grabber::tVidFmtDescListPtr DecriptionList;

DecriptionList = cGrabber.getAvailableVideoFormatDescs();

for( Grabber::tVidFmtDescList::iterator pDescription = DecriptionList->begin(); pDescription != DecriptionList->end(); pDescription++ )
{
SIZE s = (*pDescription)->getStepSize();
if( s.cx > 1 && s.cy > 1 )
{
// The current video capture device allows many video formats with any sizes
// between min and max size.
printf("Description : %s\n", (*pDescription)->toString().c_str());
VideoFormatItem VideoFormat = (*pDescription)->createVideoFormat((*pDescription)->getMaxSize());
printf("Maximum Format : %s", VideoFormat.toString().c_str());
}
else
{
// The current video capture has only some static video formats.
VideoFormatItem VideoFormat = (*pDescription)->createVideoFormat((*pDescription)->getMaxSize());
printf("Video Format : %s", VideoFormat.toString().c_str());
}
printf("\n");
}

zkhan
October 27, 2011, 01:00:26
Is cGrabber.setVideoFormat() a C++ call? Is this property accessible in .NET?

zkhan
October 27, 2011, 01:26:19
Also. we have the 31AF03-Z2, does it support binning? It is greyed out in ICCapture, so I am assuming no?

Stefan Geissler
October 27, 2011, 10:59:54
Is cGrabber.setVideoFormat() a C++ call? Is this property accessible in .NET?
Yes, this is a C++ call on the grabber object of the IC Imaging Control C++ classlibrary. Using .NET, we recommed the IC Imaging Control .NET component. The similar property is "ICImagingControl.VideoFormat". Please refer to http://www.imagingcontrol.com/en_US/support/documentation/dotnet/prop_descICImagingControl_VideoFormat.htm


Also. we have the 31AF03-Z2, does it support binning? It is greyed out in ICCapture, so I am assuming no?
You are right. Only the 72 camera models support binning right now. Therefore, the 31 model has one resolution only.