Ncut 源代码编译问题

来源:互联网 发布:ubuntu挂载windows硬盘 编辑:程序博客网 时间:2024/05/14 07:41

I am using the normalized cuts package from http://www.cis.upenn.edu/~jshi/software/Ncut_9.zip (on Windows 8)

This used to work fine with Matlab2010a. However I have upgraded to Matlab2013b (64bit ) and I now get the following error:


Error using arpackcExpect 2 output argumentsError in eigs_new (line 240)        arpackc( aupdfun, ido, ...Error in ncut (line 83)[vbar,s,convergence] =eigs_new(@mex_w_times_x_symmetric,size(P,1),nbEigenValues,'LA',options,tril(P));Error in ncutW (line 9)[NcutEigenvectors,NcutEigenvalues] =ncut(W,nbcluster);Error in NcutImage (line 18)[NcutDiscrete,NcutEigenvectors,NcutEigenvalues]= ncutW(W,nbSegments);Error in demoNcutImage (line 25)[SegLabel,NcutDiscrete,NcutEigenvectors,NcutEigenvalues,W,imageEdges]=NcutImage(I,nbSegments);

Obviously the new_eigs() function in ncuts is incompatible with the ARPACK version in the latest Matlab


solution:

  1. Use Matlab's eigs() function instead of the eigs_new() provided in the normalized cuts package. I guess eigs_new() was designed to solve some compatibility issue with a previous version of Matlab, and is now itself causing an issue.


0 0
原创粉丝点击