In this chapter, we learned about the algorithms that are used for background modeling and morphological image processing. We discussed naive background subtraction and its limitations. We looked at how to get motion information using frame differencing and how it can be limiting when we want to track different types of objects. This led to our discussion about the Mixture of Gaussians. We discussed the formula and how we can implement it. We then discussed morphological image processing, which can be used for various purposes, and different operations were covered to show the use cases.
In the next chapter, we are going to discuss object tracking and the various techniques that can be used to do it.