fixed slow down in getRectSubPix (original patch by Markus JR Mueller); removed some unused variables and functions

This commit is contained in:
Vadim Pisarevsky
2014-04-08 17:54:08 +04:00
parent a6ef45aa13
commit 1b339eb0d4
6 changed files with 3 additions and 35 deletions

View File

@@ -448,11 +448,13 @@ template<typename T> struct OpNot
T operator()( T a, T ) const { return ~a; }
};
#if (ARITHM_USE_IPP == 1)
static inline void fixSteps(Size sz, size_t elemSize, size_t& step1, size_t& step2, size_t& step)
{
if( sz.height == 1 )
step1 = step2 = step = sz.width*elemSize;
}
#endif
static void add8u( const uchar* src1, size_t step1,
const uchar* src2, size_t step2,