Oct 3, 2009

GBVS - Graph-Based Visual Saliency - How to Run ?

Graph-Based Visual Saliency (GBVS) or the standard Itti, Koch, Niebur PAMI 1998 saliency map has source code on http://www.klab.caltech.edu/~harel/share/gbvs.php

However, i run it on linux ubuntu and windows vista. I need to edit some files. It's a great tool for saliency...

ERROR 1: gbvs_compile.m

??? Error using ==> cd
Cannot CD to util (Name is nonexistent or not a directory).

Error in ==> gbvs_compile at 4
cd util

SOLUTION 1: Edit gbvs_compile.m. Edit the line
cd util
to
cd %PATH_TO_UTIL/util

And you'll be successful in compiling.


ERROR 2: While running simplest_demonstration command, you'll get
??? Error using ==> load
Unable to read file mypath: No such file or directory.

Error in ==> getFeatureMaps at 7
load mypath;

Error in ==> gbvs at 55
[rawfeatmaps motionInfo] = getFeatureMaps( img , param , prevMotionInfo );

Error in ==> simplest_demonstration at 4
out = gbvs('samplepics/4.jpg' );

SOLUTION 2: Edit getFeatureMaps.m
line : load mypath;
to
%load mypath;

ERROR 3: While running simplest_demonstration command, you'll get
??? Undefined function or variable 'pathroot'.

Error in ==> getFeatureMaps at 65
channel_files = dir( [pathroot '/util/featureChannels/*.m'] );

Error in ==> gbvs at 55
[rawfeatmaps motionInfo] = getFeatureMaps( img , param , prevMotionInfo );

Error in ==> simplest_demonstration at 4
out = gbvs('samplepics/4.jpg' );

SOLUTION 3: Edit getFeatureMaps.m
line:
channel_files = dir( [pathroot '/util/featureChannels/*.m'] );
to
channel_files = dir( ['PATH_TO_GBVS/util/featureChannels/*.m'] );


Then you'll get the result. Enjoy ;)



1 comment:

  1. Hi, on matlab2015a on windows, when I write map=gbvs(img); show me these errors:
    ndefined function 'fieldnames' for input arguments of type 'cell'.

    Error in gbvs (line 60)
    mapnames = fieldnames(rawfeatmaps);

    could u please guide me?
    thanks

    ReplyDelete

Visual Studio Keyboard Shortcuts

Playing with keyboard shortcuts is very interesting and reduce the headache of using the mouse again and again while programming with visu...