Skip to content
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

which part is gaussian smoothing? #7

Closed
angelleng opened this issue Apr 20, 2017 · 3 comments
Closed

which part is gaussian smoothing? #7

angelleng opened this issue Apr 20, 2017 · 3 comments

Comments

@angelleng
Copy link

Not quite an issue but a question I have on the code: where is the gaussian smoothing implemented? My guess is the Phi filter, but that doesn't look like a gaussian filter. What am I missing?

@edouardoyallon
Copy link
Owner

Hi, did you plot the Phi filter? why isn't it a gaussian filter

@angelleng
Copy link
Author

yes:

phi_signal = filters_bank.gabor_2d(8, 8, 0.8 * 2**(2-1), 0, 0, offset=0) 
plt.imshow(np.real(phi_signal))
plt.colorbar()

https://screencast.com/t/kVWrh2eof

I think I'm confused because I'm not familiar with signal processing. I was expecting the filters to have the size of 2 to the power of scale, and look like a 2d wavelet/gaussian distribution, but here it is the size of the input data, and they have lower values in the middle and higher on the corners. I assume you are not applying the filters through convolution? What is the method you are using then?

@edouardoyallon
Copy link
Owner

All our convolutions are implemented via Fourier.

There is a convention in signal processing (and FFT libraries): 0 frequency should be at the (0,0) position. I used the same convention in the real domain, which is quite arbitrary. Also, it permits avoiding an extra non-necessary phase. You can use fftshift to get rid of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants