View Full Version : Image Processing
February 26, 2008, 01:51:01
I bought two DMK21BF04 models. I want to know how to get the image buffers. Is there image processing sample source? I use vc8 and IC 3.0.
February 27, 2008, 11:33:28
Yes, there is sample code. Please have a look into the "samples" directory of your IC Imaging Control installation path.
Also the documentation shows how to access the image buffers.
The online documentation shows this too at:
February 28, 2008, 10:16:44
Thanks for your answer.
But I want to perform continuous image processing.
I think my question is same as thisCLICK HERE (http://www.theimagingsourceforums.com/showthread.php?t=317441&highlight=buffer), however this sample code doesn't work in my environment(VC8).
February 28, 2008, 11:03:19
you can download from http://www.imagingcontrol.com/downloads/servicepacks/ the Service Pack 2 for IC Imaging Control. This installs the IC wizards for VS 2005. With this you can create a VC 8 application, that performs continuous image processing.
Inherit an own class from GrabberListener. Call it e.g. "CListener"
Add this class to your grabber object.
Set the sink's snapmode to false: pSink->setSnapMode( false );
Now the frameReady() method of the CListener will be called automatically if a new frame is delivered and the previous call of frameReady() has returned.
Using the GrabberListener inherit class is shown here:
If the snapmode has been set to "false", then you do not need to call "snapImages", because the "GrabberListener::frameReady()" is called automatically.
The link you refer to in your post is for IC Imaging Control 1.41 or 2.1. In 3.0 there are some changes in the frame handler sink.
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.