Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Bayer

hello everybody,
i'd like to dye my acquired pictures (for example with red color).
the bayer-example works well with my equipment. but when i changed the LLring-example
i had the problem that WIN shuts down.
the row that is responsible for this errors was found, but i don't know exactly what is wrong.
has anybody an idea?

best regards,
malte


//*****************************************************

[...] //other stuff...LUT calculation etc. - works well


inside the thread...

DWORD ImaqThread(LPDWORD lpdwParam)   
{

  [...]

  // Copy the last valid buffer from on-board memory to system memory
  errChk(imgSessionCopyBuffer (Sid, currBufNum, (uInt8 *)CopyBuffer, FALSE));


  //here is something going wrong - WIN shuts down!
  errChk(imgBayerColorDecode(RGBBuffer,(void *)CopyBuffer, AcqWinHeight, AcqWinWidth,
                           AcqWinWidth, AcqWinWidth, redLUT, greenLUT, blueLUT, IMG_BAYER_PATTERN_GBGB_RGRG, bPP, 0));
  errChk(imgPlot ((GUIHNDL)ImaqSmplHwnd, (void *)RGBBuffer, 0, 0, AcqWinWidth, AcqWinHeight,
         CanvasLeft, CanvasTop, plotFlag));
           
       
  lastBufNum = currBufNum;

  [...]

}
0 Kudos
Message 1 of 2
(3,191 Views)
Hi!
 
Do you have the newest IMAQ driver version?
 
 
regards,
Thomas Sandrisser
 
0 Kudos
Message 2 of 2
(3,155 Views)