How can I get the training data from a Landsat Image?

2 次查看(过去 30 天)
I need to do classification using the knnclassify command but I am confused with creating the training matrix. I have the following information.
nchannels=12; nx=949; ny=220; Data = lanread('flc1.lan',nchannels,nx,ny);
This creates a matrix of 949x220x12 matrix. How can I create a training matrix to use knnclassify. I must do this without any clustering. Looking forward for a reply.

回答(0 个)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by