Spectral Imaging Made Easy: A Powerful Python Library
github.com
github.com
Are we living in the dead Internet already where everything is meaningless AI garbage?
Then, this library can be used for instance (their word) - Display images from two cameras. - Co-register cameras and compute the transformation from one camera's space to another. - Select regions in images for training machine learning (ML) models. - Perform image segmentation using a pre-trained ML model. - Convert radiance images to reflectance by utilizing a reference panel. - Display spectral signatures for in-depth analysis.
One of the brilliant ideas hyperspy incorporates is that we consider datasets to have a navigation dimension and a signal dimension (think, you measure a spectrum at each point on an image), and you can easily transpose between them. This means that you can «move around» on the image and see what the spectrum looks like, or transpose and see what the image looks like as a function of the spectrum.
In particular I think the model building, where you can fit components to your dataset, is really useful.
It works best with the Jedi LSP - pyright doesn’t support the way we added lazy loading / extensions to the base hyperspy package.
When I used it I missed two things compared to a similar superpower tool I used when I was working with multidimensional field test data in Matlab.
1. Ability to use "text dimensions", or non-uniformly spaced grid points.
2. Ability to select and filter on arbitrary expressions instead of by slice only.
The need for (2) is harder to grok (what's that going to do for a grid dataset???), but being able to apply a few arbitrary selection expressions is a superpower when analyzing messy 10+ dimensional data.
That, and the ability to add, on the fly, virtual dimensions for arbitrary expressions.
Someday, when I am ready to retire, I will take half a year to build this in python...
Especially as I've said before that Hyperspy shares so many features in common with Xarray that Hyperspy should just use Xarray under the hood.
Link to docs: https://siapy.github.io/siapy-lib/
And a superset package, for the EMIT imaging spectroscopy investigation: https://github.com/emit-sds
The packages, which were affected by breaking changes (numpy, cython, scipy and so on) were patched months ago.