2.9. empix.resample
- resample(input_signal, optional_params=None)[source]
Resample a given input 2D
hyperspysignal via interpolation.This Python function copies a given input 2D
hyperspysignal and resamples the copy along the axes in signal space by interpolating the original input signal using bivariate spines. Effectively,empix.resample()resamples the input signal.- Parameters:
- input_signal
hyperspy._signals.signal2d.Signal2D|hyperspy._signals.complex_signal2d.ComplexSignal2D The input
hyperspysignal.- optional_params
empix.OptionalResamplingParams| None, optional The set of optional parameters. See the documentation for the class
empix.OptionalResamplingParamsfor details. Ifoptional_paramsis set toNone, rather than an instance ofempix.OptionalResamplingParams, then the default values of the optional parameters are chosen.
- input_signal
- Returns:
- output_signal
hyperspy._signals.signal2d.Signal2D|hyperspy._signals.complex_signal2d.ComplexSignal2D The output
hyperspysignal that results from the resampling. Note that the metadata of the input signal is copied over to the output signal, with the title being overwritten.
- output_signal