diff --git a/modules/imgproc/src/filter.cpp b/modules/imgproc/src/filter.cpp index 14b55af9ec..bb2040bf8b 100644 --- a/modules/imgproc/src/filter.cpp +++ b/modules/imgproc/src/filter.cpp @@ -2299,7 +2299,7 @@ template struct SymmRowSmallFilter : void operator()(const uchar* src, uchar* dst, int width, int cn) { int ksize2 = this->ksize/2, ksize2n = ksize2*cn; - const DT* kx = this->kernel.ptr
() + ksize2; + const DT* kx = this->kernel.template ptr
() + ksize2; bool symmetrical = (this->symmetryType & KERNEL_SYMMETRICAL) != 0; DT* D = (DT*)dst; int i = this->vecOp(src, dst, width, cn), j, k; @@ -2437,7 +2437,7 @@ template struct ColumnFilter : public BaseColumnFilte void operator()(const uchar** src, uchar* dst, int dststep, int count, int width) { - const ST* ky = kernel.ptr(); + const ST* ky = kernel.template ptr(); ST _delta = delta; int _ksize = ksize; int i, k; @@ -2501,7 +2501,7 @@ template struct SymmColumnFilter : public ColumnFilte void operator()(const uchar** src, uchar* dst, int dststep, int count, int width) { int ksize2 = this->ksize/2; - const ST* ky = this->kernel.ptr() + ksize2; + const ST* ky = this->kernel.template ptr() + ksize2; int i, k; bool symmetrical = (symmetryType & KERNEL_SYMMETRICAL) != 0; ST _delta = this->delta; @@ -2607,7 +2607,7 @@ struct SymmColumnSmallFilter : public SymmColumnFilter void operator()(const uchar** src, uchar* dst, int dststep, int count, int width) { int ksize2 = this->ksize/2; - const ST* ky = this->kernel.ptr() + ksize2; + const ST* ky = this->kernel.template ptr() + ksize2; int i; bool symmetrical = (this->symmetryType & KERNEL_SYMMETRICAL) != 0; bool is_1_2_1 = ky[0] == 1 && ky[1] == 2; diff --git a/modules/imgproc/src/imgwarp.cpp b/modules/imgproc/src/imgwarp.cpp index 4b57247741..83da00f7e4 100644 --- a/modules/imgproc/src/imgwarp.cpp +++ b/modules/imgproc/src/imgwarp.cpp @@ -1265,7 +1265,7 @@ public: } if( k1 == ksize ) k0 = std::min(k0, k); // remember the first row that needs to be computed - srows[k] = src.ptr(sy); + srows[k] = src.template ptr(sy); prev_sy[k] = sy; } @@ -1608,10 +1608,10 @@ public: continue; } - dx = vop(src.ptr(sy0), D, w); + dx = vop(src.template ptr(sy0), D, w); for( ; dx < w; dx++ ) { - const T* S = src.ptr(sy0) + xofs[dx]; + const T* S = src.template ptr(sy0) + xofs[dx]; WT sum = 0; k = 0; #if CV_ENABLE_UNROLLED @@ -1635,7 +1635,7 @@ public: { if( sy0 + sy >= ssize.height ) break; - const T* S = src.ptr(sy0 + sy) + sx0; + const T* S = src.template ptr(sy0 + sy) + sx0; for( int sx = 0; sx < scale_x*cn; sx += cn ) { if( sx0 + sx >= ssize.width ) @@ -1713,7 +1713,7 @@ public: int sy = ytab[j].si; { - const T* S = src->ptr(sy); + const T* S = src->template ptr(sy); for( dx = 0; dx < dsize.width; dx++ ) buf[dx] = (WT)0; @@ -1775,7 +1775,7 @@ public: if( dy != prev_dy ) { - T* D = dst->ptr(prev_dy); + T* D = dst->template ptr(prev_dy); for( dx = 0; dx < dsize.width; dx++ ) { @@ -1792,7 +1792,7 @@ public: } { - T* D = dst->ptr(prev_dy); + T* D = dst->template ptr(prev_dy); for( dx = 0; dx < dsize.width; dx++ ) D[dx] = saturate_cast(sum[dx]); }