Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked Jan 29 '14

nkint gravatar image

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:

  1. Use some lattice points, dividing blob regions in grid
  2. Use goodFeatureToTrack
  3. 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

click to hide/show revision 2
retagged

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:

  1. Use some lattice points, dividing blob regions in grid
  2. Use goodFeatureToTrack
  3. 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