Extract point for calcOpticalFlowPyrLK and cluster
Hi!
I want to use calcOpticalFlowPyrLK to calculate optical flow inside some blob detected with Mog background subtractor. Due to the fact that LK optical flow is a sparse optical flow I have to give some points in input.
Reading on the net I have 3 possibility:
- Use some lattice points, dividing blob regions in grid
- Use goodFeatureToTrack
- detect cornerns with cornerHarris
Which method is preferred? Are there some benchmark or comparison?
and then cluster them., wit - for example - kmeans. On what to cluster? Position of the point and optical flow intensity? Or what else?
Thanks in advance
Probably obvious, but are you trying to track blobs from MoG?
yes but sometimes the objects merge in one big blob and I'd to split them via clustering and optical flow