mexican hat wavelet transform on images using python

891 views
Skip to first unread message

Nachiket Patki

unread,
Jun 11, 2018, 10:15:12 AM6/11/18
to PyWavelets
Hello community,
I am working on a project where I have to use Mexican hat wavelet on images (python). When I tried using "pywt.wavedec2(imArray, 'mexh', level=level)" I am getting an error saying  " invalid wavelet name". 
I think its a continuous wavelet transform so my question is how to apply mexican hat on images? (means decomposing and reconstruction using cwt).
awaiting for reply

Gregory Lee

unread,
Jun 11, 2018, 5:52:22 PM6/11/18
to pywav...@googlegroups.com
Hi Nachiket,

Unfortunately, only 1D transforms have been implemented for the continuous wavelet transform in PyWavelets. Unlike for the discrete wavelet transforms implemented in PyWavelets, the 2D CWT with the mexican hat is not a product of separable 1D transforms.  The 2D CWT could be implemented using 2D Fourier transforms to perform the non-separable filtering in the Fourier domain.  

I have never used it, but an example of this approach is available in an older branch of PyCWT:

- Greg



--
You received this message because you are subscribed to the Google Groups "PyWavelets" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pywavelets+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nachiket Patki

unread,
Jun 26, 2018, 1:44:26 AM6/26/18
to pywav...@googlegroups.com
Thank you Greg for the wonderful reply. 
I will definitely go through this.


To unsubscribe from this group and stop receiving emails from it, send an email to pywavelets+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "PyWavelets" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pywavelets+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages