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 9892c87

Browse files
committed
Checks fixed
1 parent 4516a1c commit 9892c87

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎Python3Source/filter_based_on_gradient_analysis.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ def _smooth_channel(src, k_size, grads=None, modules=None, angles=None, dst=None
9696
if grads is None:
9797
grads = np.zeros((src.shape[0], src.shape[1], 2))
9898
compute_grads_channel(src.astype(np.float64), grads)
99-
if modules is None:
100-
modules = np.zeros((src.shape[0], src.shape[1]))
101-
compute_modules_channel(src.astype(np.float64), modules, grads)
102-
if angles is None:
103-
angles = np.zeros((src.shape[0], src.shape[1]))
104-
compute_angles_channel(src.astype(np.float64), angles, grads)
99+
if modules is None:
100+
modules = np.zeros((src.shape[0], src.shape[1]))
101+
compute_modules_channel(src.astype(np.float64), modules, grads)
102+
if angles is None:
103+
angles = np.zeros((src.shape[0], src.shape[1]))
104+
compute_angles_channel(src.astype(np.float64), angles, grads)
105105

106106
for i in range(src.shape[0]):
107107
for j in range(src.shape[1]):

0 commit comments

Comments
(0)

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