mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-06 02:13:15 +08:00
Use compiled black as the pre-commit formatter (#11247)
* Use compiled black as the pre-commit formatter * ruff-format * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Keep GitHub Actions up to date with Dependabot --------- Co-authored-by: Christian Clauss <cclauss@me.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@ -48,9 +48,9 @@ def gabor_filter_kernel(
|
||||
_y = -sin_theta * px + cos_theta * py
|
||||
|
||||
# fill kernel
|
||||
gabor[y, x] = np.exp(
|
||||
-(_x**2 + gamma**2 * _y**2) / (2 * sigma**2)
|
||||
) * np.cos(2 * np.pi * _x / lambd + psi)
|
||||
gabor[y, x] = np.exp(-(_x**2 + gamma**2 * _y**2) / (2 * sigma**2)) * np.cos(
|
||||
2 * np.pi * _x / lambd + psi
|
||||
)
|
||||
|
||||
return gabor
|
||||
|
||||
|
Reference in New Issue
Block a user