Fix errors
authorvbystricky <user@user-pc.(none)>
Thu, 3 Apr 2014 13:40:46 +0000 (17:40 +0400)
committervbystricky <user@user-pc.(none)>
Mon, 7 Apr 2014 10:31:31 +0000 (14:31 +0400)
modules/imgproc/src/imgwarp.cpp
modules/imgproc/src/sumpixels.cpp

index fdb8302..e6cea8f 100644 (file)
@@ -1929,7 +1929,6 @@ public:
         dstSize.width  = dst.cols;
         dstSize.height = dst.rows;
 
-<<<<<<< HEAD
         switch (type)
         {
             case CV_8UC1:  SET_IPP_RESIZE_PTR(8u,C1);  break;
@@ -1981,38 +1980,6 @@ public:
         if( func( pSrc, (int)src.step[0], pDst, (int)dst.step[0], dstOffset, dstSize, ippBorderRepl, 0, pSpec, bufptr ) < 0 )
             *ok = false;
     }
-
-=======
-    ~IPPresizeInvoker()
-    {
-    }
-
-    virtual void operator() (const Range& range) const
-    {
-        if (*ok == false) return;
-
-        int cn = src.channels();
-        int dsty = min(cvRound(range.start * inv_scale_y), dst.rows);
-        int dstwidth  = min(cvRound(src.cols * inv_scale_x), dst.cols);
-        int dstheight = min(cvRound(range.end * inv_scale_y), dst.rows);
-
-        IppiPoint dstOffset = { 0, dsty }, srcOffset = {0, 0};
-        IppiSize  dstSize   = { dstwidth, dstheight - dsty };
-        int bufsize = 0, itemSize = (int)src.elemSize1();
-
-        CHECK_IPP_STATUS(getBufferSizeFunc(pSpec, dstSize, cn, &bufsize));
-        CHECK_IPP_STATUS(getSrcOffsetFunc(pSpec, dstOffset, &srcOffset));
-
-        Ipp8u* pSrc = (Ipp8u*)src.data + (int)src.step[0] * srcOffset.y + srcOffset.x * cn * itemSize;
-        Ipp8u* pDst = (Ipp8u*)dst.data + (int)dst.step[0] * dstOffset.y + dstOffset.x * cn * itemSize;
-
-        AutoBuffer<uchar> buf(bufsize + 64);
-        uchar* bufptr = alignPtr((uchar*)buf, 32);
-
-        if( func( pSrc, (int)src.step[0], pDst, (int)dst.step[0], dstOffset, dstSize, ippBorderRepl, 0, pSpec, bufptr ) < 0 )
-            *ok = false;
-    }
->>>>>>> Prepare codes for ippicv library
 private:
     const Mat & src;
     Mat & dst;
index f7749d4..649eeb6 100644 (file)
@@ -362,7 +362,7 @@ void cv::integral( InputArray _src, OutputArray _sum, OutputArray _sqsum, Output
         sqsum = _sqsum.getMat();
     };
 
-#if defined (HAVE_IPP) && (IPP_VERSION_MAJOR >= 7) && 0
+#if defined (HAVE_IPP) && (IPP_VERSION_MAJOR >= 7)
     if( ( depth == CV_8U ) && ( sdepth == CV_32F || sdepth == CV_32S ) && ( !_tilted.needed() ) && ( !_sqsum.needed() || sqdepth == CV_64F ) && ( cn == 1 ) )
     {
         IppStatus status = ippStsErr;