First time here? Check out the FAQ!

Ask Your Question
1

Extract point for calcOpticalFlowPyrLK and cluster

asked Jan 29 '14

nkint gravatar image

updated Oct 10 '0

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

Preview: (hide)

Comments

Probably obvious, but are you trying to track blobs from MoG?

Nghia gravatar imageNghia (Jan 29 '14)edit

yes but sometimes the objects merge in one big blob and I'd to split them via clustering and optical flow

nkint gravatar imagenkint (Jan 31 '14)edit

1 answer

Sort by » oldest newest most voted
1

answered Feb 1 '14

Nghia gravatar image

In my experience you can get away most of the time with just tracking the binary blobs with a Kalman filter. If blobs merge together to form a big one, you tell the Kalman filter to not track the big blob and switch to prediction. If the blobs separated as predicted then you lock onto them again.

Preview: (hide)

Question Tools

Stats

Asked: Jan 29 '14

Seen: 563 times

Last updated: Jan 29 '14