-
-
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
Gabor aspect ratio #2049
base: main
Are you sure you want to change the base?
Gabor aspect ratio #2049
Conversation
This parameter is the spatial aspect ratio, and specifies the ellipticity of the support of the Gabor function.
This parameter is the spatial aspect ratio, and specifies the ellipticity of the support of the Gabor function.
This parameter is the spatial aspect ratio, and specifies the ellipticity of the support of the Gabor function. And add a example at ./doc/examples/filters
This parameter is the spatial aspect ratio, and specifies the ellipticity of the support of the Gabor function. And add an example at ./doc/examples/filters
Aspect ratio is the spatial aspect ratio, and specifies the ellipticity of the support of the Gabor function.
skimage/filters/_gabor.py
Outdated
@@ -14,7 +14,7 @@ def _sigma_prefactor(bandwidth): | |||
|
|||
|
|||
def gabor_kernel(frequency, theta=0, bandwidth=1, sigma_x=None, sigma_y=None, | |||
n_stds=3, offset=0): | |||
n_stds=3, offset=0, aspectratio=1): |
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.
Please rename to aspect_ratio
Thanks for your contribution. This needs a unit test with an aspect ratio of != 1 |
@wwjd228 Did you have a chance to look at it? The modifications required are minor :) |
Rename the parameter "aspectratio" to "aspect_ratio".
Sorry, I don't know how to create a unit test with an aspect ratio of != 1. |
Current coverage is 90.71% (diff: 100%)
|
Description
[Tell us about your new feature, improvement, or fix! If relevant, please supplement the PR with images.]
I add a new parameter about aspect ratio in function gabor_kernel.
Checklist
[It's fine to submit PRs which are a work in progress! But before they are merged, all PRs should provide:]
./doc/examples
(new features only)[For detailed information on these and other aspects see scikit-image contribution guidelines]
References
[If this is a bug-fix or enhancement, it closes issue # ]
[If this is a new feature, it implements the following paper: ]