Skip to main content

wavelet_step_f32

Function wavelet_step_f32 

Source
pub fn wavelet_step_f32(data: &mut [f32], m: usize, h: &[f32]) -> Status
Expand description

Performs one level of a fast wavelet transform step on the first m elements of data, using wavelet filter h (low-pass) and its derived high-pass filter. Writes the low-pass (“scaling”) coefficients to data[0..m/2] and the high-pass (“wavelet”) coefficients to data[m/2..m]; the underlying convolution wraps around cyclically at the block boundary.

m must be a power of 2; h.len() must be even and <= m.