I'm trying to make some moving object detection (segmentation of foreground moving object from background) with slow illumination changes (= background change). Sometimes osme parts of the object are of the same size of the background, so the blob detection is not robust or accurate.
I think I can get better results combining Background subtraction (color and gradient) and Optical flow. From opencv examples I've tried the code of both and it easy to understand but I don't know how I can combine them.
Any hints or advice are welcome!