4.2

4.2 | 5 ratings Rate this file 69 Downloads (last 30 days) File Size: 1.17 MB File ID: #25435
image thumbnail

A Ball Tracking Application

by Fuat Cogun

 

29 Sep 2009

The tracker implements the Covariance Tracking method to track the ball in a football match

| Watch this File

File Information
Description

The application uses the approach introduced in paper "Covariance Tracking using Model Update Based on Means on Riemannian Manifolds", F.Porikli, O.Tuzel, P.Meer.

The tracking is based on:
1) initializing the target region
2) constructing the Feature Vectors for each pixel in the target region (first frame)
3) forming the Covariance Matrix using feature vectors generated in step 1
4) determining the candidate regions for the following frames and constructing the covariance matrices of these regions
5) finding the minimum covariance-distanced region from these candidate region
6) assign this region as the estimated region

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (13)
05 Jan 2010 Ronak

hey i tried your code. But it showed an error,
??? Error using ==> aviread at 76
Unable to locate decompressor to decompress video stream
for the command:
mov = aviread(videoFile, 1:maxFrame);
but i got a solution for it, using mmreader....

readerobj = mmreader('tv cam-9.avi');
vidFrames = read(readerobj);
for k = 1 : maxFrame
    mov(k).cdata = vidFrames(:,:,:,k);
    mov(k).colormap = [];
end

05 Jan 2010 Ronak

With the above comment I meant that the error was coming in the trackball.m file, with line47:

mov = aviread(videoFile, 1:maxFrame);

And I solved it by replacing it with following lines:

readerobj = mmreader('tv cam-9.avi');
vidFrames = read(readerobj);
for k = 1 : maxFrame
    mov(k).cdata = vidFrames(:,:,:,k);
    mov(k).colormap = [];
end

And the modified code works just fine.

12 Mar 2010 Sisir Kanti

Not working! Same errors.

@Ronak:
Your functin vidFrames not found!

Some can help please reply here!

17 May 2010 praneeth botta

can you please help,
i cannot understand CovarianceMatrix , eig and temp ...
can someone help me understanding ..

06 Sep 2010 Badri Subudhi

i am also getting same problem

14 Sep 2010 A. Bhargav Anand

Guys It works for me, but the thing is it displays all frames as images.
What if we want to track the ball in real time ????

14 Sep 2010 SUDHAKAR B  
17 Dec 2010 abhijith bailur

how to run this file i am finding diffcult please help me out

01 Feb 2011 Michael

I have used findCovarianceMatrix.m,
and it works fine, although it is not efficiently implemented e.g. it is not using the integral image method. However I do not see any function to deal with the computation of a minimum covariance-distance.

11 Jul 2011 bhargav m

I have a problem in understanding the initial position of the object, How is it calculated?
what does position offset mean?

08 Aug 2011 Ehsan

Sorry, the last bit in my previous comment (I had only one question!) was added by mistake!

08 Aug 2011 Ehsan

?

08 Aug 2011 Ehsan

For some reason, my comment was deleted! don't know why, sorry!

this was my comment which is apparently deleted!

Thanks Fuat for the code, very helpful! I just wanted to ask if you implemented the update mechanism which is based on Riemannian manifold. I guess it's not included in the code! Am i right?

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
covariance tracking Fuat Cogun 29 Sep 2009 13:27:26
ball detection Fuat Cogun 29 Sep 2009 13:27:26
video processing Fuat Cogun 29 Sep 2009 13:27:26
tracker Fuat Cogun 29 Sep 2009 13:27:26
ball tracker Fuat Cogun 29 Sep 2009 13:27:26
football Fuat Cogun 29 Sep 2009 13:27:26
ball Fuat Cogun 29 Sep 2009 13:27:26
detection Fuat Cogun 29 Sep 2009 13:27:26
covariance Fuat Cogun 29 Sep 2009 13:27:26
tracking Fuat Cogun 29 Sep 2009 13:27:26
object tracking Fuat Cogun 29 Sep 2009 13:27:26
covariance matrix Fuat Cogun 29 Sep 2009 13:29:34
feature vector Fuat Cogun 29 Sep 2009 13:29:54
target Fuat Cogun 29 Sep 2009 13:30:38
estimation Fuat Cogun 29 Sep 2009 13:31:10
ball as aa 04 Nov 2010 05:10:23
covariance matrix Michael 01 Feb 2011 05:32:07
minimum covariance distance Michael 01 Feb 2011 05:37:23
football siddhant 23 Nov 2011 14:08:49
ball mensun lakheamru 11 Jan 2012 10:57:35

Contact us at files@mathworks.com