Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vlfeat matlab error Attempt to execute SCRIPT vl_imsmooth as a function:

I am trying to use the VLFEAT function vl_imsmooth but matlab gives me an error: 'Attempt to execute SCRIPT vl_imsmooth as a function:'

Why this happens?

Might it be because of some mex files? Should I recompile the c++ code for vl_feat?

like image 921
user570593 Avatar asked Jul 27 '12 09:07

user570593


2 Answers

The problem shuold be fixed by copying correct mexw32 or mexw64 file folder from ..\vlfeat\toolbox\mex to ..\vlfeat. In my case my operating system is 64 bit My folder looks like ..\vlfeat\mexw64

like image 51
Halis Yılboğa Avatar answered Nov 13 '22 04:11

Halis Yılboğa


You are getting this error because your path ".../vlfeat-0.9.16/toolbox/imop/vl_imsmooth.m" has a higher precedence than " ...../vlfeat-0.9.16/toolbox/mex/mexa64/vl_imsmooth.mexa64" so you can simply run

pathtool

and then navigate the mexa64 path above the imop and you are done !!

like image 8
tayyab Avatar answered Nov 13 '22 06:11

tayyab