PDA

View Full Version : Black Image



ruicosta
July 19, 2006, 21:38:27
Hello Stefan,

I知 using the "IC Imaging Control 2.1" with "DFx 21BF04" and I use external trigger.
The trigger is fired 48 times per minute and the problem is that sometimes one of the images that I get from buffer is all black. Why this happen ? I知 doing something wrong?

I知 using the following program:


Code:
__________________________________________________ ____
//Configuration

pGrabber->setSinkType(( DShowLib::FrameGrabberSink( DShowLib::FrameGrabberSink::tFrameGrabberMode::eGR AB, eRGB24) ));

pMemBuffColl = pGrabber->newMemBufferCollection(5);

pGrabber->setActiveMemBufferCollection( pMemBuffColl );
....
pGrabber->setExternalTrigger(TRUE);
pGrabber->startLive(FALSE);

//Processing
While(1) {

Frame1 = dlgw->Camera1->pGrabber->getFrameCount();

if (Frame1 != NFrames) { //new trigger fired has occured
NFrames = Frame1;

pBuffer1 = pGrabber->getActiveMemBuffer();

pbImgData = (RGB24Pixel*) pBuffer1->getPtr();

//Image processing

//Show Image

}

}

Best regards
Rui Costa

Stefan Geissler
July 20, 2006, 09:12:20
Hello Rui,

First of all: All automatics (exposure, gain and brightness) must be disabled if you use the external trigger. If they are enabled, you can get very strange results such as completely black or white images.

Also this is a known problem of the 2753 firmware of the camera. You may send a request to support@imagingcontrol.com so i can send you the newest firmware for your camera.

ruicosta
July 20, 2006, 10:24:02
Thanks Stefan,

All automatics (exposure, gain and brightness) are disabled in my program.
I will send a request to support@imagingcontrol.com to get the newest firmware for the camera, as suggest.

Thanks again,

Best regards
Rui costa

Stefan Geissler
July 20, 2006, 11:55:00
Rui,

Got your request and will answer it today.