hytools.transform package
Submodules
hytools.transform.mnf module
hytools.transform.resampling module
HyTools: Hyperspectral image processing library Copyright (C) 2021 University of Wisconsin
Authors: Adam Chlus, Zhiwei Ye, Philip Townsend.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
Spectral resampling functions.
- hytools.transform.resampling.apply_resampler(hy_obj, data)[source]
Apply SCSS correction to a slice of the data
- Parameters
hy_obj (TYPE) – DESCRIPTION.
band (TYPE) – DESCRIPTION.
index (TYPE) – DESCRIPTION.
- Returns
DESCRIPTION.
- Return type
band (TYPE)
- hytools.transform.resampling.calc_resample_coeffs(in_wave, in_fwhm, out_wave, out_fwhm, spacing=1)[source]
Given a set of source and destination wavelengths and FWHMs this function caculates the relative contribution or each input wavelength to the output wavelength. It assumes that both input and output response functions follow a gaussian distribution.
All inputs shoud be provide in nanometers.
- Parameters
in_wave (list) – Input wavelength centers.
in_fwhm (list) – Input full width half maxes.
out_wave (list) – Output wavelength centers.
out_fwhm (list) – Output full width half maxes.
spacing (int, optional) – Resolution at which to model the spectral response functions. Defaults to 1.
- Returns
Transform coeffiecients.
- Return type
numpy.ndarray
Module contents
HyTools: Hyperspectral image processing library Copyright (C) 2021 University of Wisconsin
Authors: Adam Chlus, Zhiwei Ye, Philip Townsend.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
Transform functions