4.83333

4.8 | 6 ratings Rate this file 365 downloads (last 30 days) File Size: 12.64 MB File ID: #17960

Particle Filter Color Tracker

by Sebastien Paris

 

11 Dec 2007 (Updated 27 Jul 2009)

Code covered by BSD License  

Tracking an object in a video with a Color Particle Filter

Download Now | Watch this File

File Information
Description

A simple example showing how to track an object with particle filter. Likelihood is based on Bhattacharya distance of color histogram.

Please run mexme_pf_color_tracker to recompile mex-files on your own plateform.

MATLAB release MATLAB 7.5 (R2007b)
Other requirements A C Compiler
Zip File Content  
Other Files
ellipse.c,
ellipse.dll,
license.txt,
mexme_pf_color_tracker.m,
part_moment.c,
part_moment.dll,
particle_resampling.c,
particle_resampling.dll,
pdfcolor_ellipserand.c,
pdfcolor_ellipserand.dll,
rgb2hsv_mex.c,
rgb2hsv_mex.dll,
SECOND.AVI,
test_pf_colortracker.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (26)
11 Dec 2007 Tom Pinkiewicz

The C files compiled okay but I get an error that function part_moment is undefined. Are you missing a file with this function?

12 Dec 2007 Sebastien PARIS

You are right. I have just update with the missing file. Thx you....

12 Dec 2007 Tom Pinkiewicz

It works now and it looks excellent. Well done!

02 Mar 2008 loi yii tien

How to recompile each mex files?

02 Mar 2008 loi yii tien

How to recompile each mex files? and i got error...

??? Invalid MEX-file 'C:\Program Files\MATLAB71\work\pf_colortracker\rgb2hsv_mex.dll': The specified procedure could not be found.

.

Error in ==> test_pf_colortracker at 202
im = rgb2hsv_mex(Z);

hope to hear u soon!

02 Mar 2008 loi yii tien

Actually i am doing the object tracking in video using neural network. Can you send me an example of it if you can do it. Thanks!

02 Mar 2008 Sébastien Paris

Please recompile with the following command :

mex -output rgb2hsv_mex.dll rgb2hsv_mex.c

03 Mar 2008 ophelka flowerfairy

to recompile simply use
mex filename.c

15 Apr 2008 li jackey

how to recompile mex files?when the file is compiled in VC platform,the problem is always that mex.h can't be found,how to deal with it ,please tell me quickly,thank you

05 May 2008 prabhakar raj

i want the code for tracking faces in an image sequence using particle filter,can u help me in this

28 Jun 2008 nauha jam

Thanks for program.I would ask about the LAB model of color image in matlab

09 Sep 2008 min hu

thanks for program.it is very good.

21 Oct 2008 XU FENGLIANG

thanks for you sharing

27 Oct 2008 David Norville

I'm having some trouble recompiling with the part_moment.c file. It says there is an undefinded reference to '_max'. Can you help me please.

29 Oct 2008 David Norville

Got it to work. Thanks

25 Nov 2008 Ravi Prakash

For all those laymen like me who couldn't get it to work in the first attempt. Type inside the MATLAB command window

> mex ellipse.c
> mex rgb2hsv_mex.c
> mex pdfcolor_ellipserand.c

In both files part_moment.c and particle_resampling.c at the top add the line
#define max(a,b) ( (a) >= (b) ? (a) : (b) )

Then
> mex part_moment.c
> mex particle_resampling.c

Finally to run
> test_pf_colortracker

Thanks Sebastien. FIGHT ON!!

26 Nov 2008 Sebastien Paris

Ok, I'll update with a mexmefirt.m file for mexfilers beginners

Thx all for comments/ratings

28 Nov 2008 Tedo Biresaw

Wow! what really a nice work.
I get it work.

08 Mar 2009 M

I get the following error on Windows Vista (64-bit) and MATLAB R2008b. Can anyone assist?

??? Error using ==> aviread at 76
Unable to locate decompressor to decompress video stream

Error in ==> test_pf_colortracker at 196
mov = aviread(video , offset_frame + 1);
 

PS: I tried installing CINEPAK, but it didnt work! :(

09 Mar 2009 Sebastien Paris

Ok, you can replace the aviread function with the new one 'mmreader' to read avi files.

17 Jun 2009 yasong guo

i have solve it now!thank you for your codes .wonderful!thank you!!!

18 Jul 2009 Fang-I Chu

can i ask if i want to track a moving object under grayscale, what is it different from color tracking?

 

19 Aug 2009 Janayna

did you use any paper to implement the particle filter?
Thank you

30 Aug 2009 Yong Zhao

thanks for you sharing, I'll study and discuss with all of you.

03 Sep 2009 Hong 4

I found a paper relates to this subject:
K Nummiaro, E Koller-Meier, L Van Gool, An adaptive color-based particle filter, Image and Vision Computing, 2003 - Elsevier

03 Sep 2009 Hong 4

I found a paper relates to this subject:
K Nummiaro, E Koller-Meier, L Van Gool, An adaptive color-based particle filter, Image and Vision Computing, 2003 - Elsevier

Please login to add a comment or rating.
Updates
12 Dec 2007

Add missing file

27 Jul 2009

-Minor changes

Tag Activity for this File
Tag Applied By Date/Time
tutorial Sebastien Paris 22 Oct 2008 09:38:43
example Sebastien Paris 22 Oct 2008 09:38:43
particle filter bhattacharya distance Sebastien Paris 22 Oct 2008 09:38:43
object Sebastien Paris 22 Oct 2008 09:38:43
particle filter Sebastien Paris 22 Oct 2008 09:38:43
video Sebastien Paris 22 Oct 2008 09:38:43
example BAI 17 Mar 2009 03:54:44
tutorial BAI 17 Mar 2009 03:54:50
particle filter sethu bhattiprolu 16 Oct 2009 07:39:28
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com