Spectral transformation and wavelength selection in near-infrared spectra classification