2.1.6.1.13. sf_tools.signal.wavelet module

WAVELET MODULE

This module contains methods for performing wavelet transformations using iSAP

Author:Samuel Farrens <samuel.farrens@gmail.com>
Version:1.2
Date:20/10/2017
sf_tools.signal.wavelet.call_mr_transform(data, opt=None, path='./', remove_files=True)[source]

Call mr_transform

This method calls the iSAP module mr_transform

Parameters:
  • data (np.ndarray) – Input data, 2D array
  • opt (list, optional) – List of additonal mr_transform options
  • path (str, optional) – Path for output files (default is ‘./’)
  • remove_files (bool, optional) – Option to remove output files (default is ‘True’)
Returns:

Return type:

np.ndarray results of transform

sf_tools.signal.wavelet.get_mr_filters(data_shape, opt=None, coarse=False)[source]

Get mr_transform filters

This method obtains wavelet filters by calling mr_transform

Parameters:
  • data_shape (tuple) – 2D data shape
  • opt (list, optional) – List of additonal mr_transform options
  • coarse (bool, optional) – Option to keep coarse scale (default is ‘False’)
Returns:

Return type:

np.ndarray 3D array of wavelet filters

sf_tools.signal.wavelet.filter_convolve(data, filters, filter_rot=False)[source]

Filter convolve

This method convolves the input image with the wavelet filters

Parameters:
  • data (np.ndarray) – Input data, 2D array
  • filters (np.ndarray) – Wavelet filters, 3D array
  • filter_rot (bool, optional) – Option to rotate wavelet filters (default is ‘False’)
Returns:

Return type:

np.ndarray convolved data

sf_tools.signal.wavelet.filter_convolve_stack(data, filters, filter_rot=False)[source]

Filter convolve

This method convolves the a stack of input images with the wavelet filters

Parameters:
  • data (np.ndarray) – Input data, 3D array
  • filters (np.ndarray) – Wavelet filters, 3D array
  • filter_rot (bool, optional) – Option to rotate wavelet filters (default is ‘False’)
Returns:

Return type:

np.ndarray convolved data