

% of 1 corresponds to the foreground and the value of 0 corresponds to the background

It outputs a binary mask, where the pixel value % The foreground detector is used to segment moving objects from the background. % Create System objects for foreground detection and blob analysis Obj.maskPlayer = vision.VideoPlayer('Position', ) % and one to display the foreground mask Obj.videoPlayer = vision.VideoPlayer('Position', ) % create two video players, one to display the video, Obj.reader = vision.VideoFileReader('768x576.avi') % create a video file reader % initialize Video I/O, create objects for reading a video from a file, drawing the tracked objects in each frame, and playing the video MultiObjectTracking>setupSystemObjects at line 38 column 16 added "pkg load image " at the beginning of main.m and multiObjectTracking.m, in the few test Octave computer vision programs I did this seemed to be necessary, otherwise I would get an error to the effect of "library image has been installed but not loaded"Ĭurrently when I run the program I get the following error: error: 'vision' undefined near line 38 column 18
#GNU OCTAVE RF TOOLBOX CODE#
Since I don't have the 'atrium.avi' file used by MathWorks, I changed the VideoFileReader line in the code to use '768x576.avi', which is included with OpenCV ('768x576.avi' is also uploaded to the GitHub repo linked above) Made a separate main.m file to run multiObjectTracking.m

I made a GitHub repository for what I have so far, which mostly a re-formatted version of the MathWorks link above: I'm trying to get this Matlab example from the MathWorks site to work with Octave 4.0.0:
