BackgroundSubtractorMOG2 no getBackgroundImage method

asked 2014-06-17 07:18:03 -0500

Maxim Galushka gravatar image

updated 2014-06-17 07:32:45 -0500

berak gravatar image

Hi,

I cannot find getBackgroundImage() method for BackgroundSubtractorMOG2 in java library. Am I mising something?

May be there is alternative way how to get background in java?

Thanks.

edit retag flag offensive close merge delete

Comments

true, it's not wrapped.

anyway, what do you need it for ?

berak gravatar imageberak ( 2014-06-17 07:31:10 -0500 )edit

just for debugging purposes of ny algorithm. I can assume I need to rebuild whole opencv to have this method?

Maxim Galushka gravatar imageMaxim Galushka ( 2014-06-17 15:00:41 -0500 )edit
1

yep. try: CV_WRAP virtual void getBackgroundImage(OutputArray backgroundImage) const; and rebuild

berak gravatar imageberak ( 2014-06-17 16:32:42 -0500 )edit

Thanks a lot, this helps, please, post as answer, probably will be useful for somebody else.

Maxim Galushka gravatar imageMaxim Galushka ( 2014-06-18 12:33:50 -0500 )edit