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 7d10121 commit 1d9667fCopy full SHA for 1d9667f
ED.cpp
@@ -334,6 +334,7 @@ void ED::ComputeGradient()
334
case SCHARR_OPERATOR:
335
gx = abs(3 * (com1 + com2) + 10 * (smoothImg[i*width + j + 1] - smoothImg[i*width + j - 1]));
336
gy = abs(3 * (com1 - com2) + 10 * (smoothImg[(i + 1)*width + j] - smoothImg[(i - 1)*width + j]));
337
+ break;
338
case LSD_OPERATOR:
339
// com1 and com2 differs from previous operators, because LSD has 2x2 kernel
340
int com1 = smoothImg[(i + 1)*width + j + 1] - smoothImg[i*width + j];
0 commit comments