Hyperspectral image classification using functional data analysis