Skip to content

Commit 1d9667f

Browse files
authored
Update ED.cpp
closes CihanTopal#36
1 parent 7d10121 commit 1d9667f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ED.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ void ED::ComputeGradient()
334334
case SCHARR_OPERATOR:
335335
gx = abs(3 * (com1 + com2) + 10 * (smoothImg[i*width + j + 1] - smoothImg[i*width + j - 1]));
336336
gy = abs(3 * (com1 - com2) + 10 * (smoothImg[(i + 1)*width + j] - smoothImg[(i - 1)*width + j]));
337+
break;
337338
case LSD_OPERATOR:
338339
// com1 and com2 differs from previous operators, because LSD has 2x2 kernel
339340
int com1 = smoothImg[(i + 1)*width + j + 1] - smoothImg[i*width + j];

0 commit comments

Comments
 (0)