Hello everyone. I am currently trying to classify an hyperspectral Image (HYMAP) using a spectral angle mapper classifier. Im having trouble on this and need urgent help.
I have an Hymap image called: HYMAP_SCENE
>> size(HYMAP_SCENE)
ans =
200 200 126
In this image, I define training sites for ten classes (1 to 10). I take the training pixels (100 per class) out of (HYMAP_SCENE) and put them into a training data matrix hym_t:
>> size(hym_t)
ans =
1000 126
furthermore I have a training label vectot train_l (size 1000,1) with the class labels.
from this, Im building a dataset, to train the spectral angle mapper:
>> hym_dv = dataset(hym_t,train_l)
>> A = samc(hym_dv)
First question: is this the right way to do it? And furthermore: What do I have to to, to get a spectral angle classification of the whole scene (that means of: HYMAP_SCENE)? I need a classification result of the size (200x200x1) which contains the class labels (1 to ten).
Please help me, I need this classification for my diploma thesis and I have got one week left :-)
