-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add morlet filters #2152
base: main
Are you sure you want to change the base?
Add morlet filters #2152
Conversation
|
||
plt.suptitle('Morlet (different scales and orientations)') | ||
|
||
plt.show() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add new line
@siraferradans Thanks for your contribution. I left you a few comments and one question. |
Thanks for the comments! |
Hello, |
im_filtered = np.abs(ndi.convolve(image, gabor, mode='wrap')) | ||
print('[Gabor] energy:',im_filtered.sum()) | ||
im_filtered100 = np.abs(ndi.convolve(image+100, gabor, mode='wrap')) | ||
print('[Gabor] energy (im+100):',im_filtered100.sum()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may want to plot these also.
And they should probably go before the plt.show
Current coverage is 90.53% (diff: 100%)@@ master #2152 diff @@
==========================================
Files 304 297 -7
Lines 21425 21289 -136
Methods 0 0
Messages 0 0
Branches 1844 1955 +111
==========================================
- Hits 19411 19274 -137
- Misses 1661 1665 +4
+ Partials 353 350 -3
|
Dear all, |
you should probably post this as a separate issue, since it is not related On Thu, Jun 16, 2016 at 6:16 PM, Sira Ferradans notifications@github.com
|
@siraferradans, @eickenberg |
@grlee77 thanks for the link. I completely agree that those wavelets are interesting for both pywt and sci-kit image. It will definetely be necessary to review this code when pywt gets integrated in scikit image. |
@grlee77 Thanks for the heads-up! This looks like an interesting addition to pywavelets. Once it is merged, it may call for a refactoring of the whole gabor module. |
@siraferradans pywt is now integrated to scikit-image ;) |
3c66fa4
to
c5ff4d5
Compare
We just added the option to the Gabor filter of taking out the DC. This is equivalent to the Morlet filter. In the code we uploaded, we just put the option
no_DC_offset=True
for generating the Morlet filter (False
for Gabor). We were wondering if this is a good option or if you prefer to write a stand-alone function called Morlet that directly calls the Gabor function.We also added a small example that shows the difference between Morlet and Gabor, and a test to validate that the sum of the filter is zero, when the Morlet option is active. By the way, when executing the tests we get an error that doesnt seem to be related to our test:
Please let us know what you think about the code/options.
CC @eickenberg