上传者: 35324389
|
上传时间: 2021-03-14 21:29:41
|
文件大小: 107.98MB
|
文件类型: RAR
图像矩阵[122 68 117
151 115 141
123 153 87]
x方向算子[-1 0 +1
-2 0 +2
-1 0 +1]
y方向算子[+1 +2 +1
0 0 0
-1 -2 -1]
Gx_temp1 = 117 + 141*2 + 87 = 486
Gx_temp2 = 122 + 151*2 + 123 = 547
Gx_data = 547-486 = 61
Gy_temp1 = 122 + 68*2 + 117 = 375
Gy_temp2 = 123 + 153*2 + 87 = 516
Gy_data = 516-375 = 141
Gxy_square = 61 * 61 + 141*141 = 23602
Dim = sqrt(23602) = 153
153 > 30,输出1