Sunday, June 6, 2010

Camshift Tracking algorithm


Camshift stands for "Continuously Adaptive Mean Shift."
It has the basic Mean shift algorithm with the difference of a window that changes in size.

Pro: This method is fast and appears on initial testing to be moderately accurate. It may be possible to improve accuracy by using a different color representation.

Con: There are quite a few parameters: the number of histogram bins, the minimum saturation, minimum and maximum intensity, and the width-to-height ratio for regions. There's also a parameter for enlarging the region while doing Mean Shift to increase the chances of finding the maximum for probability density.



using original code from (Isaac Gerg, Adam Ickes, Jamie McCulloch) "http://www.gergltd.com/cse486/project5/" with some minor changes/refactoring done by me.

7 comments:

  1. can you please provide me with the running code?? that process the live feed..and not a saved avi file.

    thnx.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Warning: Divide by zero.
    > In meanshift at 43
    In camshift at 136
    Warning: Divide by zero.
    > In meanshift at 47
    In camshift at 136
    ??? Attempted to access probmap(NaN,NaN); index must be a positive integer or logical.

    Error in ==> meanshift at 28
    M00 = M00 + probmap(r, c);

    Error in ==> camshift at 136
    [rowcenter colcenter M00]=meanshift(I, rmin, rmax, cmin,cmax,probmap);

    ReplyDelete
  4. can u plz provide that camshift code for me....my mail id is gani.india@gmail.com

    ReplyDelete
  5. can u plz provide that camshift code for me my mail id is nagaraju.sunku49@gmail.com

    ReplyDelete
  6. Can you please provide me the camshift code? It would be a great help! Thankyou!
    My email id g.sanjanarao@gmail.com

    ReplyDelete