davidkun / HyperSpectralToolbox

HyperSpectral Matlab Toolbox forked from Sourceforge
GNU General Public License v3.0
104 stars 48 forks source link

hypermnf #5

Closed Alessandroocc closed 3 years ago

Alessandroocc commented 7 years ago

how can i implement hypermnf in demo? I have done: %% Resample AVIRIS image [h, w, p] = size(M); M2d = hyperConvert2d(M); M = hyperMnf(M2d, h, w); ....... but returns error : Error using eig Input to EIG must not contain NaN or Inf.

Error in eigs/fullEig (line 1086) [V,D] = eig(eigInputs{:});

Error in eigs (line 102) fullEig(nargout);

Error in hyperMnf (line 48) [A, mu] = eigs(tmp, p);

Error in hyperDemo2 (line 54) M = hyperMnf(M2d, h, w);

davidkun commented 7 years ago

There's probably something wrong with your input data (in your case, variable M). As suggested in the README.md, download the Cuprite, Nevada hyperspectral image (HSI) from http://aviris.jpl.nasa.gov/data/free_data.html, and try again.