Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.

ippiForegroundHistogram

douglaswinfield
Beginner
341 Views
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);


0 Kudos
0 Replies
Reply