Watch this Author's files
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!!
Contact us at files@mathworks.com