spectralpython / spectral

Python module for hyperspectral image processing
MIT License
573 stars 139 forks source link

Add asarray method to ImageArray and SpyFile #34

Closed donm closed 9 years ago

donm commented 9 years ago

Sometimes, for both ImageArray and SpyFile, you need a way to bypass the SPy-style indexing and get to a numpy object. Rather than having functions test the type of a the data, the asarray methods in this commit return an analogous interface for both classes.