When I try and run it with the sample video I get the error "??? Error using ==> run at 5. Initialization failed. (No combination of intermediate filters could be found to make the connection)." and with other video another problem is an error ''disp (toplen)" it is not tracking though it taking input video...as in the loop its not taking the value of toplen....and also help me if this code can be used for real time object tracking......
I have this problem while doing the mex file (linux 64-bits version):
mex gcut.cpp -largeArrayDims
Warning: You are using gcc version "4.6.3-1ubuntu5)". The version
currently supported with MEX is "4.3.4".
For a list of currently supported compilers see:
http://www.mathworks.com/support/compilers/current_release/
gcut.cpp: In function ‘void matlabParse(int, const mxArray**, long int*, long int*, node**, arc**, long int**, node**, node**, long int*)’:
gcut.cpp:144:25: error: cannot convert ‘mwIndex* {aka long unsigned int*}’ to ‘int*’ in assignment
gcut.cpp:145:25: error: cannot convert ‘mwIndex* {aka long unsigned int*}’ to ‘int*’ in assignment
mex: compile of ' "gcut.cpp"' failed.
Comment only
04 May 2011
Foreground segmentation
Uses graph cuts to segment foreground objects from a static background in video.
Comment only