Skip to content
Snippets Groups Projects
Commit cc483c60 authored by Lieven Govaerts's avatar Lieven Govaerts Committed by Andrews Sobral
Browse files

Fix a crash in the IndependentMultimodal algorithm during setup. The … (#108)

* Fix a crash in the IndependentMultimodal algorithm during setup. The nframes member
    variable is not initialized, which means that occasionally the initialize() function
    is not called when the first frame is processed.

    * package_bgs/IMBS/IMBS.cpp
      (BackgroundSubtractorIMBS): Initialize nframes to 0.

* Fix a crash when initializingn not using and the destroying the IndependentMultimodal algorithm.

* package_bgs/IMBS/IMBS.cpp
  (BackgroundSubtractorIMBS): initialize bgBins, bgModel and persistenceMap pointers to NULL.
parent 145fbe7e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment