We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4516a1c commit 9892c87Copy full SHA for 9892c87
Python3Source/filter_based_on_gradient_analysis.py
@@ -96,12 +96,12 @@ def _smooth_channel(src, k_size, grads=None, modules=None, angles=None, dst=None
96
if grads is None:
97
grads = np.zeros((src.shape[0], src.shape[1], 2))
98
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)
+ if modules is None:
+ modules = np.zeros((src.shape[0], src.shape[1]))
+ compute_modules_channel(src.astype(np.float64), modules, grads)
+ if angles is None:
+ angles = np.zeros((src.shape[0], src.shape[1]))
+ compute_angles_channel(src.astype(np.float64), angles, grads)
105
106
for i in range(src.shape[0]):
107
for j in range(src.shape[1]):
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments