dwtCuda Module

This contains forward and reverse 1D and 2D transforms.

dwtCuda.dwt(signal, wav='haar', levels=-1, mode='zpd')

Performs a dwt on a given signal.

This function performs a dwt on signal using CUDA GPU.

Parameters:
  • signal (list, numpy array) – signal
  • wav (string) – Wavelet to use while performing dwt. Full list of available wavelets can be found ...
  • levels (int) – Number of levels of dwt to perform. If levels=-1, full decomposition is done, equivalent to levels = floor(log(len(signal), 2))
  • mode (string) – Padding mode to use to deal with boundary conditions. Full list of available padding modes can be found ...
Returns:

transformed signal

Return type:

list of arrays

dwtCuda.dwt2(image, wav='haar', mode='zpd')

Performs a 2-dimensional dwt on an image.

This function performs a 2-dimensional dwt on an image using CUDA GPU.

Parameters:
  • image (list of lists, 2-d numpy array) – image
  • wav (string) – Wavelet to use while performing 2-dimensional dwt. Full list of available wavelets can be found ...
  • mode (string) – Padding mode to use to deal with boundary conditions. Full list of available padding modes can be found ...
Returns:

transformed image

Return type:

2-tuple containing (cA, (cH, cV, cD))

dwtCuda.idwt(transformed, wav='haar', levels=-1, mode='zpd')

Performs an inverse dwt on a given transformed signal.

This function performs an inverse dwt on a transformed signal using CUDA GPU.

Parameters:
  • transformed (list, numpy array) – transformed signal
  • wav (string) – Wavelet to use while performing inverse dwt. Full list of available wavelets can be found ...
  • levels (int) – Number of levels of inverse dwt to perform. If levels=-1, full decomposition is done, equivalent to levels = floor(log(len(signal), 2))
  • mode (string) – Padding mode to use to deal with boundary conditions. Full list of available padding modes can be found ...
Returns:

inverted signal

Return type:

numpy array

dwtCuda.idwt2(transformed, wav='haar', mode='zpd')

Performs a 2-dimensional inverse dwt on a transformed image.

This function performs a 2-dimensional inverse dwt on a transformed image using CUDA GPU.

Parameters:
  • transformed (list of lists, 2-d numpy array) – transformed image
  • wav (string) – Wavelet to use while performing inverse 2-dimensional dwt. Full list of available wavelets can be found ...
  • mode (string) – Padding mode to use to deal with boundary conditions. Full list of available padding modes can be found ...
Returns:

inverted image

Return type:

2-d numpy array

Previous topic

dwt Module

Next topic

dwtFilters Module

This Page