Python module for hyperspectral image processing
Release date: 2022.10.02
GaussianStats
weren't sorted in descending order, which is inconsistent with PrincipalComponents
.SpyFile.load
was failing on Windows because numpy versions there did not support complex256.unmix
was failing, due to an invalid reference to "np.inv"Release date: 2020.08.01
Continuum computation and removal
spectral_continuum
, remove_continuum
, continuum_points
Support for USGS spectral library (spectral.USGSDatabase
)
SMACC algorithm for endmember extraction (spectral.algorithms.smacc
)
orthogonalize
was broken in release 0.21.Release date: 2020.04.26
As of version 0.21, Spectral Python (SPy) is released uder the MIT License.
Switched most console print
statements to logging statements for finer
control of module output.
Cleaned up a lot of code to put imports at module (file) level.
[Issue #99] matplotlib's "cmap" keyword now works again with spy.imshow
.
[Issue #102] Creating a SpectralLibrary
no longer fails when some
optional band parameters are not provided.
Release date: 2019.10.06
Support for ECOSTRESS spectral library (supercedes ASTER library).
Accept "mask" and "bg" keywords in imshow
and get_rgb
(affects color
scaling).
Denoising methods added to PrincipalComponents
(issue #91) added by
@gemmaellen.
Added "raw" to list of checked ENVI data file extensions.
Increase speed of spectral_angles
computation by ~30x using einsum
.
Eliminate tostring
deprecation warnings by migrating to tobytes
.
Support parsing ENV bbl values as floats (issue #67).
Removed "scale" keyword to handle TransformedImage objects in
envi.save_image
(issue #83).
Rendering functions accept an "ignore" keyword to indicate a bad data value that will be ignored when calculating color histogram stretches.
Added iterator_ij
to iterate over all pixel coordinates for a given
image mask.
Added expand_binary_mask_for_window
to expand an image mask to include
all pixels within a fixed size window around each masked pixel.
Added support for bad band lists (bbl) in ENVI headers and suppress display of bad bands in spectral plots
Added optional support for non-lowercase ENVI header parameter names (issue #63).
principal_components
also accepts a GaussianStats
object, which can
avoid the need to recompute image/class statistics.
Added a SpyException
base class for package-specific exceptions.
Added "raw" to the list of checked ENVI image data file extensions.
Fixed a bug that potentially produced incorrect results in map_class_ids
(issue #53).
Removed unecessary import that cause python3 compatibility error in
aviris.open
(issue #54).
Removed has_key
call breaking python3 compatibility (issue #56).