Questions tagged [spectral-python]

For questions about Spectral Python (SPy) - the open source Python module for hyperspectral image processing. When using this tag also include the more generic [python] tag where possible.

The user guide for Spectral Python is located at http://spectralpython.net

Source code is managed at https://github.com/spectralpython/spectral

28 questions
0
votes
0 answers

Remove background of picture Hyperspectral

I have data data as images taken from the camera hyperspectral. The file will come out in .hdr and .raw format. When opening the image, you must use the envi.open command. The point is that the data_nparr obtained from the raw image has a background…
0
votes
1 answer

Subplots with multiple spectral.imshow() objec

I want to plot multiple hyperspectral images with sp.imshow. I know this returns a R,G,B visualization. I have 13 HSI files (13 .hdr and 13 .img files). I know how to plot and analyze individual files but I want an overview of all my samples in a…
0
votes
1 answer

Spectral Python imshow displaying scrambled image

I am learning Spectral Python and using their own documentation and sample image files to display a multispectral image as RGB. However, for some reason, my image appears scrambled up. I have tested the image file by opening it in MultiSpec and it…
John G.
  • 57
  • 1
  • 7
0
votes
0 answers

Data Calibration

I am trying to do Data calibration of Hyperspectral Image of size e.g.,(400,400,150)i.e.,(rows. columns, bands) with standard references... dark image of size(100,400,150) and white Image of size (200,400,150) using the formula, Calibrated_Data =…
0
votes
0 answers

RGB data limits in imshow()

I am trying to explore hyperspectral images and how to open, read and show them. For that I am using Spectral Python (SPy). When I call imshow() I get RGB data limits. What do these limits represent and how are they related to the intensities in the…
Sal_H
  • 75
  • 1
  • 11
0
votes
1 answer

Unable to perform Spectral Angle Mapper (SAM) for target detection on hyperspectral data in python

I am working on hyperspectral satellite imagery and I am trying to implement SAM algorithm on my dataset.I am trying to use spectral_angle and msam functions which are available in spectral python library. I am using following commands. Dataset…
KHIZER
  • 21
  • 4
0
votes
1 answer

How to orthogonalize time series

I'm working with the MEG signal and to address the problem of spatial leakage I wanted to perform orthogonalization of the time series. To have better understanding I started working with a sine signal. I wrote a code in python and to orthogonalize…
0
votes
0 answers

Problem in importing Spectral Library in Python

I have installed spectral library in Python 3.7 according to the commands given on the documentation site of SPy(spectral python) The commands were : python setup.py install pip install spectral (the website is this:…
0
votes
1 answer

Never ending for loop in Python

I have a code that basically takes two images,big image and small image. the small image is being reduced into one row image and then is being subtracted from each row of the big image. The result should be new big- image with different…
Reut
  • 1,555
  • 4
  • 23
  • 55
0
votes
1 answer

How to install wxversion for Python

I'm experimenting with the "SPy" Spectral Python library, using PyCharm, and I've gotten to the point where it tells me that wxversion was not found. How can I install wxversion? I'm very new to Python in general, so am I doing something else…
NGXII
  • 407
  • 2
  • 9
  • 18
-1
votes
1 answer

Flat-field correction on hyperspectral data

I am working on hyperspectral data set using the spectral python library. I started using python for the first time on Monday, so everything is taking me a long time. My data is in envi format, and i believe I have successfully read it in and…
russj
  • 25
  • 1
  • 6
-1
votes
1 answer

Reading Hyperion Satellite E-01 dataset (.L1R file) in python

I am trying to find a way to read hyperion e-01 satellite data (hyperspectral data) which has .L1R file extension , in python. Kindly suggest any library to read this data in python.
KHIZER
  • 21
  • 4
-1
votes
1 answer

Installation of Spectral Python

I am a novice user of Python. Since 2 days I am trying to install Spectral Python on my computer. I have already installed Python 3.5. But totally lost while adding the package Spectral Python. I have downloaded all versions of Spectral Python,…
1
2