Initialize background model in background subtraction KNN.
The method does cvCheckPixelBackgroundNP (which reads bgmodel) before it is ever updated (in cvUpdatePixelBackgroundNP). This initialization is thus needed to avoid reads of unitialized values.
Showing
Please
register
or
sign in
to comment