Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 268d113

Browse files
committed
Python implementation: error fixed
another typo!
1 parent 544b9e1 commit 268d113

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Python3Source/Source.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def filter_channel(src, dst, modules, angles, ksize):
8181
weight = .0
8282
if (k != i and l != j):
8383
angle = 2.* (angles[k][l] - angles[i][j])
84-
weight = (cos(angle) + 1) / modules[i][j]
84+
weight = (cos(angle) + 1) / modules[k][l]
8585
else:
8686
#weight of central pixel
8787
weight = 1.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /