Skip to content

Commit 75e4c0a

Browse files
author
Spencer.Luo
committed
Add comment
1 parent e9f2b28 commit 75e4c0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

application/ImageProcessing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def preProcessing(self, img):
7272
from abc import ABCMeta, abstractmethod
7373
# 引入ABCMeta和abstractmethod来定义抽象类和抽象方法
7474
import numpy as np
75-
# 引入numpy模块
75+
# 引入numpy模块进行矩阵的计算
7676

7777
class DifferentialDerivative(metaclass=ABCMeta):
7878
"""微分求导算法"""
@@ -166,6 +166,7 @@ def differentialDerivative():
166166
imgX = derivativeX.imgProcessing(img, width, height)
167167
derivativeY = DifferentialDerivativeY()
168168
imgY = derivativeY.imgProcessing(img, width, height)
169+
# 实现Sobel微分算子
169170
imgScobel = cv2.addWeighted(imgX, 0.5, imgY, 0.5, 0)
170171

171172
cv2.imshow("First order differential X", imgX)

0 commit comments

Comments
 (0)