ippiForegroundHistogram

ippiForegroundHistogram

I'm having trouble with ippiForegroundHistogram. I'm not getting the background -- the foreground seems to be working. I thought the first call to ippiForegroundHistogramUpdate initialized botht he foreground and background. What happens is the background image is blank. Any suggestions? THANKS

IppFGHistogramModel pModel;
IppFGHistogramState_8u_C1R *pState;
IppFGHistogramState_8u_C1R **ppState;

status = ippiForegroundHistogramInitAlloc_8u_C1R(imgIPP, width, ROI, &pModel, &pState);
statusString = ippGetStatusString( status );

status = ippiForegroundHistogram_8u_C1R(imgIPP, width, foreground, width, ROI, pState);
statusString = ippGetStatusString( status );

status = ippiForegroundHistogramUpdate_8u_C1R(imgIPP, width, foreground, width, background, width, ROI, pState);
statusString = ippGetStatusString( status );

do
{
//code to get next frame ////
status = ippiForegroundHistogram_8u_C1R(imgIPP, width, foreground, width, ROI, pState);
statusString = ippGetStatusString( status );

status = ippiForegroundHistogramUpdate_8u_C1R(imgIPP, width, foreground, width, background, width, ROI, pState);
statusString = ippGetStatusString( status );
} while (endread == false);

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.