etomo.operators.linear.wavelet#

Wavelet class from pyWavelet module

class WaveletPywt(wavelet_name, nb_scale=4, undecimated=False, mode='zero', **kwargs)[source]#

Bases: etomo.operators.linear.base.LinearBase

The 3D wavelet transform class from pyWavelets package

get_coeff()[source]#

Return the wavelet coefficients

set_coeff(coeffs)[source]#

Set wavelets decomposition coefficients values

_op(data)[source]#

Define the wavelet operator. This method returns the input data convolved with the wavelet filter.

Parameters

data (numpy.ndarray(m', n') or numpy.ndarray(m', n', p')) – input 2D or 3D data array.

Returns

coeffs – the wavelet coefficients.

Return type

numpy.ndarray

_adj_op(coeffs)[source]#

Define the wavelet adjoint operator. This method returns the reconsructed image.

Parameters

coeffs (numpy.ndarray) – the wavelet coefficients.

Returns

data – the 2D or 3D reconstructed data.

Return type

numpy.ndarray((m, n)) or numpy.ndarray((m, n, p))