I have been using the runnning segmentation method and subsequently dilating and eroding the difference images before detecting blobs in the image. My aim is to detect moving blobs in videos but the process does not work well with certain videos with a lot of flicker.
I am hoping that someone can suggest modification to my method , maybe using edges or something better so that I can work with such flickering videos which produce lot of grains in the difference images apart from the moving blobs.