- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm still having issues with IppFGHistogramModel....
The code below seems to "basically" work in extracting moving objects. However, I'm not using **ppState as the manual indicates -- so I get a compiler warning "unreferenced local variable". I've been also changing some of the parameters such as pModel.updBGRef and the results don't seem to change. As I posted earlier (and got no replies
), the background image in after calling ippiForegroundHistogramUpdate several times is nothing.
I'm sure I'm doing something wrong. Any ideas? Any sample code? Am I the only one trying to use this function?
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 );
//
//Get another image --> imgIPP2
//
status = ippiForegroundHistogram_8u_C1R(imgIPP2, width, foreground, width, ROI, pState);
statusString = ippGetStatusString( status );
status = ippiForegroundHistogramUpdate_8u_C1R(imgIPP2, width, foreground, width, background, width, ROI, pState);
statusString = ippGetStatusString( status );
/////////////////////////////////////////////////////////////////////
The code below seems to "basically" work in extracting moving objects. However, I'm not using **ppState as the manual indicates -- so I get a compiler warning "unreferenced local variable". I've been also changing some of the parameters such as pModel.updBGRef and the results don't seem to change. As I posted earlier (and got no replies
![Sad smiley [:(]](/isn/Community/en-US/emoticons/emotion-9.gif)
I'm sure I'm doing something wrong. Any ideas? Any sample code? Am I the only one trying to use this function?
THANKS
![smiley [:-)]](/isn/Community/en-US/emoticons/emotion-1.gif)
//////////////////////////////////////////////////////////////////////////////////
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 );
//
//Get another image --> imgIPP2
//
status = ippiForegroundHistogram_8u_C1R(imgIPP2, width, foreground, width, ROI, pState);
statusString = ippGetStatusString( status );
status = ippiForegroundHistogramUpdate_8u_C1R(imgIPP2, width, foreground, width, background, width, ROI, pState);
statusString = ippGetStatusString( status );
/////////////////////////////////////////////////////////////////////
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm doing something similar and I am having just as much difficulty. The parameters don't seem to influence the results properly, and the model doesn't seem to update correctly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I know what you mean. I'm wondering if any of the developers have run an example?
I know what you mean. I'm wondering if any of the developers have run an example?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Alexander,
Thanks for the example - it's works well.
I've used the OpenCV version of bgfg detection but found it to be slow. This runs much faster.
Cheers :)
Thanks for the example - it's works well.
I've used the OpenCV version of bgfg detection but found it to be slow. This runs much faster.
Cheers :)

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page