This file is indexed.

/usr/lib/scilab-sivp/demos/bgfg.sce is in scilab-sivp 0.5.3+svn287-2.1ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
// ====================================================================
function demo_bgfg()
  filename =  fullpath(getSIVPpath() + '/images/video.avi');
  n = aviopen(filename);
  im = avireadframe(n);
  fgim = uint8(zeros( size(im,1), size(im,2), 3)) ;
  fg = detectforeground(im, 'LI');//create background model
  while ~isempty(im),
    fg = detectforeground(im); //get the foreground mask 
    fgim(:,:,1) = fg;
    fgim(:,:,2) = fg;
    fgim(:,:,3) = fg;
    imshow([im; fgim]);   
    im = avireadframe(n);
  end
  aviclose(n);
endfunction
// ====================================================================
demo_bgfg();
clear demo_bgfg;
// ====================================================================