mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 22:44:02 +08:00
Fix anchor for small symmetrical column filters.
In the unoptimized version of small symmetrical column filters, when we try to detect if the kernel, ky, is equal to [1;2;1] or [1;-2;1] we should take into consideration that the anchor points in the middle element.
This commit is contained in:
parent
ba9bc2d72f
commit
a7757b0eb6
@ -2613,8 +2613,8 @@ struct SymmColumnSmallFilter : public SymmColumnFilter<CastOp, VecOp>
|
||||
const ST* ky = this->kernel.template ptr<ST>() + ksize2;
|
||||
int i;
|
||||
bool symmetrical = (this->symmetryType & KERNEL_SYMMETRICAL) != 0;
|
||||
bool is_1_2_1 = ky[0] == 1 && ky[1] == 2;
|
||||
bool is_1_m2_1 = ky[0] == 1 && ky[1] == -2;
|
||||
bool is_1_2_1 = ky[0] == 2 && ky[1] == 1;
|
||||
bool is_1_m2_1 = ky[0] == -2 && ky[1] == 1;
|
||||
bool is_m1_0_1 = ky[1] == 1 || ky[1] == -1;
|
||||
ST f0 = ky[0], f1 = ky[1];
|
||||
ST _delta = this->delta;
|
||||
|
Loading…
Reference in New Issue
Block a user