How to get the regions (rectangles with coordinates) by dense optical flow?

asked 2016-06-05 21:01:00 -0600

Hi everyone:

     I am studying something about dense optical flow in opencv, but got some problems.
     If I want to get the regions (rectangles with coordinates) of moving objects by dense optical flow, how should I do? I have gotten the dense optical flow between frames, but do not know how to get the rectangles for moving objects.
     By the way, if I use GMM, how should I get the regions ?
     Can anyone help me?

     Thanks a lot!
edit retag flag offensive close merge delete