Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hyperspectral
#1
Hello everyone,

I would like to build a hyperspectral cube from a matrix of infrared spectrum and number of pixels on x and y axes.
For exemple, I have 100 spectra with 500 wavelengths and I would like to turn this matrix into a 10 * 10 image with each pixels corresponding to a spectrum...
How can I compute it with python ?

Thank you !

Nicolas
Reply
#2
(Nov-06-2018, 07:35 PM)colapili Wrote: How can I compute it with python ?
How would you compute it without python?
Reply
#3
I don't know in reality...

This is the exemple show in the documentation of package Hyperspy.

my_np_array = np.random.random((10,20,100))
s = hs.signals.Signal1D(my_np_array)
s

<Signal1D, title: , dimensions: (20, 10|100)>

But in my case I have only a matrix of 100 spectra and the information of image weight (10*10 pixels)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to process the hyperspectral image vokoyo 2 2,332 Sep-18-2019, 02:11 PM
Last Post: vokoyo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020