Open ZainZh opened 1 year ago
Hi @ZainZh,
The function uses the bands specified in the header file and three bands are necessary to create a pseudo-rgb image.
We could potentially modify the code to return a grayscale image when only one band is provided. In the meantime, you could try commenting out the default bands
line in your header file.
Describe the bug When using function
readimage()
function to read the raw and hdr images captured from the unispectral camera. Some bugs happen because of the size of the parameterdefault_bands
in your source codehyperspectral/read_data.py
, function_maek_pseudo_rgb
, thedefault_bands
is ['713'] got from the raw file. However, this function needs three data from the default_bands list, which is incompatible. Btw, if is reasonable to choose the default_band in axis 2 of the array_dataTo Reproduce Steps to reproduce the behavior (including sample data and code really help):
envi
modeExpected behavior please fix it ,thanks Or need a PR?
Local environment (please complete the following information):
Additional context Add any other context about the problem here.