Getting this error in hyperspectral toolbox "Expected Gain values in input header file to be an array with number of elements equal to 301"
Afficher commentaires plus anciens
I am getting this error when I want to see the hypercube of the data by hyperspectral camera
Error using hypercube
Expected Gain values in input header file to be an array with number of elements equal to
301.
Error in hypercube>fieldValidator (line 1369)
validateattributes(info.(field{No}), type, attr,'hypercube',fieldName);
Error in hypercube>validateMetadata (line 1343)
fieldValidator(info, fields, type, attrs);
Error in hypercube (line 305)
validateMetadata(obj.Metadata);
Error in untitled2 (line 4)
hcube = hypercube('Cropped_Cancer.dat');
The code which I used was
clc
clear
info = enviinfo('Cropped_Cancer.hdr');
hcube = hypercube('Cropped_Cancer.dat');
1 commentaire
Walter Roberson
le 15 Août 2022
Try using enviinfo() to examine the header information.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Hyperspectral Image Processing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!