You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Discrete wavelet transforms are popular tools for denoising digital images and (other types of signals). Implementation of a few image filtering functions would be great, perhaps by letting pywavelets do the heavily lifting of the forward & inverse wavelet transformations.
I never used wavelet but I'm interested in it. Do you have references? (pseudo-code or implementation in other languages is also appreciated). Scipy has several functions about wavelets, something is missing in it?
@stefanv : Since your code is under GPL, it is not compatible with skimage's license. So, I need to officially ask you the permission to re-use here :-)
I have not read yet the references you used but it looks like a nice starting point as you said.
Sorry for raising the question then disappearing! I have a bit of free time now, so I can start working on this as well. I don't know if @stefanv has pull requested anything yet, but I've written quite a bit of python code for wavelet filtering while I was in grad school.
@thearn I copy paste the email I sent to the mailing list few days ago. Thanks for your help.
Dear skimagers,
With Ralf, we initiated a "friendly" fork of pywavelet for a future
inclusion in scipy and David joined us in this work. We improved the
doc, removed old-fashioned codes and we are trying now to add tests.
We started this because I was considering this ticket: #602
Indeed, I believe wavelets may be useful for scikit-image. Instead of
requiring a new dependency, I thought it is much more valuable to
integrate the code in scipy and this is now in the workplan for scipy1.0.
If some of you used pywavelet before, we would be grateful to you if you
can check your code against the fork. It must be fully compatible with
pywavelets.
Thanks!
Cheers.
François.
-------- Message original --------
Sujet: large PyWavelets update, please test
Date : Tue, 1 Oct 2013 17:56:36 +0200
Hi all,
nigma/pywt#7 contains a large refactoring of
PyWavelets, with contributions from Francois Boulogne, David Menendez
Hurtado and myself. Main feature is support for Python 3 (single code
base). Other changes are:
Changes to source tree layout, build setup, Numpy interfaces and C and
Cython templating to more standard styles.
This set of changes is supposed to be fully backwards compatible. They
were quite invasive though (~150 commits), so there's a decent chance
that some things not covered by the test suite were broken in the
process. To catch those now, it would be very helpful if people could
test their own code against either use the PR or the master branch of https://github.com/rgommers/pywt.
@stefanv the integration is not a whole project, more like a few days of work. I'm just lacking the bandwidth at the moment. The main part of the GSoC would be adding new features, and things like a more complete tutorial maybe. The whole refactoring is done, so the code is in OK shape to be integrated now.
@stefanv I'm working on an integration in scikit-image we can keep until an version of scipy integrating this feature is well spread on major OS/distrubutions. Thanks for the ping.
@stefanv : thanks, I limited my search to scipy-dev list.
@rgommers : I am yet to go through your major refactor PR(nigma/pywt#7) for pywt, but I guess after the integration of pywt with your refactor into scipy.signal, @thearn's PR(#760) can be merged in skimage without many changes?
@ankit-maverick I didn't review that PR but I think so. Besides the minor issue that scikit-image should work with older scipy versions, so it should ship a private copy of what goes into scipy for a few releases. My PR should fix the Python 3.x issue and not have broken backwards compat (so far). We may rethink some API decisions before merging into scipy though.
Activity
sciunto commentedon Jul 7, 2013
Hi @thearn,
I never used wavelet but I'm interested in it. Do you have references? (pseudo-code or implementation in other languages is also appreciated). Scipy has several functions about wavelets, something is missing in it?
I need more insights but maybe I can help.
stefanv commentedon Jul 8, 2013
Here's an example of how to use pywavelets to do such filtering:
https://github.com/stefanv/supreme/blob/master/supreme/noise/wavelet.py
Perhaps that can serve as a starting point.
sciunto commentedon Jul 8, 2013
I also found
https://blancosilva.wordpress.com/teaching/mathematical-imaging/denoising-wavelet-thresholding/
and
https://www.ceremade.dauphine.fr/~peyre/numerical-tour/tours/denoisingwav_1_wavelet_1d/
(or more generally https://www.ceremade.dauphine.fr/~peyre/numerical-tour/tours/)
sciunto commentedon Aug 22, 2013
@stefanv : Since your code is under GPL, it is not compatible with skimage's license. So, I need to officially ask you the permission to re-use here :-)
I have not read yet the references you used but it looks like a nice starting point as you said.
stefanv commentedon Aug 23, 2013
Ah, before I saw the light. This is now fixed:
https://github.com/stefanv/supreme/blob/master/doc/LICENSE.txt
thearn commentedon Oct 6, 2013
Sorry for raising the question then disappearing! I have a bit of free time now, so I can start working on this as well. I don't know if @stefanv has pull requested anything yet, but I've written quite a bit of python code for wavelet filtering while I was in grad school.
sciunto commentedon Oct 6, 2013
@thearn I copy paste the email I sent to the mailing list few days ago. Thanks for your help.
Dear skimagers,
With Ralf, we initiated a "friendly" fork of pywavelet for a future
inclusion in scipy and David joined us in this work. We improved the
doc, removed old-fashioned codes and we are trying now to add tests.
We started this because I was considering this ticket:
#602
Indeed, I believe wavelets may be useful for scikit-image. Instead of
requiring a new dependency, I thought it is much more valuable to
integrate the code in scipy and this is now in the workplan for scipy1.0.
If some of you used pywavelet before, we would be grateful to you if you
can check your code against the fork. It must be fully compatible with
pywavelets.
Thanks!
Cheers.
François.
-------- Message original --------
Sujet: large PyWavelets update, please test
Date : Tue, 1 Oct 2013 17:56:36 +0200
Hi all,
nigma/pywt#7 contains a large refactoring of
PyWavelets, with contributions from Francois Boulogne, David Menendez
Hurtado and myself. Main feature is support for Python 3 (single code
base). Other changes are:
https://coveralls.io/r/rgommers/pywt)
Cython templating to more standard styles.
This set of changes is supposed to be fully backwards compatible. They
were quite invasive though (~150 commits), so there's a decent chance
that some things not covered by the test suite were broken in the
process. To catch those now, it would be very helpful if people could
test their own code against either use the PR or the master branch of
https://github.com/rgommers/pywt.
While we've kept full backwards compatibility so far, we've also
compiled a list of things that could be improved in the current API:
https://github.com/rgommers/pywt/issues/38. Please add suggestions there
if you have them.
Cheers,
Ralf
stefanv commentedon Feb 6, 2014
@rgommers @sciunto Is there any news on the integration of pywt in scipy?
stefanv commentedon Feb 6, 2014
@rgommers Sorry, just saw the thread about this as a potential project for GSoC on the scipy mailing list.
rgommers commentedon Feb 7, 2014
@stefanv the integration is not a whole project, more like a few days of work. I'm just lacking the bandwidth at the moment. The main part of the GSoC would be adding new features, and things like a more complete tutorial maybe. The whole refactoring is done, so the code is in OK shape to be integrated now.
sciunto commentedon Feb 7, 2014
@stefanv I'm working on an integration in scikit-image we can keep until an version of scipy integrating this feature is well spread on major OS/distrubutions. Thanks for the ping.
ankit-maverick commentedon Mar 10, 2014
@stefanv : Is this the thread you are referring to in your last comment(http://thread.gmane.org/gmane.comp.python.scientific.devel/18202/focus=18255)?
stefanv commentedon Mar 10, 2014
http://numpy-discussion.10968.n7.nabble.com/Suggestions-for-GSoC-Projects-tp36208p36247.html
ankit-maverick commentedon Mar 10, 2014
@stefanv : thanks, I limited my search to scipy-dev list.
@rgommers : I am yet to go through your major refactor PR(nigma/pywt#7) for pywt, but I guess after the integration of pywt with your refactor into scipy.signal, @thearn's PR(#760) can be merged in skimage without many changes?
rgommers commentedon Mar 10, 2014
@ankit-maverick I didn't review that PR but I think so. Besides the minor issue that scikit-image should work with older scipy versions, so it should ship a private copy of what goes into scipy for a few releases. My PR should fix the Python 3.x issue and not have broken backwards compat (so far). We may rethink some API decisions before merging into scipy though.
sciunto commentedon Mar 10, 2014
There is also a possible issue about scipy.integrate.cumtrapz/ (see https://github.com/rgommers/pywt/issues/7) we should look at. The main problem I had was with travis :/ I do not remember the details.
soupault commentedon Aug 5, 2016
Closed via #1833. More PRs to come occasionally.