Skip to content

Commit 73ba435

Browse files
committed
Merge pull request opencv#3435 from oresths:filter_anchor_fix
2 parents 15952d7 + a7757b0 commit 73ba435

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/imgproc/src/filter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2613,8 +2613,8 @@ struct SymmColumnSmallFilter : public SymmColumnFilter<CastOp, VecOp>
26132613
const ST* ky = this->kernel.template ptr<ST>() + ksize2;
26142614
int i;
26152615
bool symmetrical = (this->symmetryType & KERNEL_SYMMETRICAL) != 0;
2616-
bool is_1_2_1 = ky[0] == 1 && ky[1] == 2;
2617-
bool is_1_m2_1 = ky[0] == 1 && ky[1] == -2;
2616+
bool is_1_2_1 = ky[0] == 2 && ky[1] == 1;
2617+
bool is_1_m2_1 = ky[0] == -2 && ky[1] == 1;
26182618
bool is_m1_0_1 = ky[1] == 1 || ky[1] == -1;
26192619
ST f0 = ky[0], f1 = ky[1];
26202620
ST _delta = this->delta;

0 commit comments

Comments
 (0)