/usr/share/octave/site/m/vlfeat/toolbox/demo/vl_demo_quickshift.m is in octave-vlfeat 0.9.17+dfsg0-6build1.
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 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | % VL_DEMO_QUICKSHIFT Demo: Quick shift: basic functionality
pfx = fullfile(vl_root,'figures','demo') ;
randn('state',0) ;
rand('state',0) ;
figure(1) ; clf ;
% --------------------------------------------------------------------
% Load a figure
% --------------------------------------------------------------------
I = imread(fullfile(vl_root,'data','roofs1.jpg')) ;
image(I) ;
axis equal off tight ;
vl_demo_print('quickshift_image') ;
% --------------------------------------------------------------------
% Create a quickshift segmentation
% --------------------------------------------------------------------
ratio = 0.5;
kernelsize = 2;
maxdist = 10;
Iseg = vl_quickseg(I, ratio, kernelsize, maxdist);
image(Iseg);
axis equal off tight;
vl_demo_print('quickshift_qseg_1') ;
kernelsize = 2;
maxdist = 20;
Iseg = vl_quickseg(I, ratio, kernelsize, maxdist);
image(Iseg);
axis equal off tight;
vl_demo_print('quickshift_qseg_2') ;
maxdist = 50;
ndists = 10;
Iedge = vl_quickvis(I, ratio, kernelsize, maxdist, ndists);
imagesc(Iedge);
axis equal off tight;
colormap gray;
vl_demo_print('quickshift_qvis') ;
|