Remove defined(HAVE_IPP)
This commit is contained in:
parent
f23134ce01
commit
9828cd6086
@ -53,7 +53,7 @@ namespace cv
|
|||||||
# pragma warning(disable: 4748)
|
# pragma warning(disable: 4748)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined HAVE_IPP && IPP_VERSION_X100 >= 701
|
#if IPP_VERSION_X100 >= 701
|
||||||
#define USE_IPP_DFT 1
|
#define USE_IPP_DFT 1
|
||||||
#else
|
#else
|
||||||
#undef USE_IPP_DFT
|
#undef USE_IPP_DFT
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
Base Image Filter
|
Base Image Filter
|
||||||
\****************************************************************************************/
|
\****************************************************************************************/
|
||||||
|
|
||||||
#if defined HAVE_IPP && IPP_VERSION_X100 >= 701
|
#if IPP_VERSION_X100 >= 701
|
||||||
#define USE_IPP_SEP_FILTERS 1
|
#define USE_IPP_SEP_FILTERS 1
|
||||||
#else
|
#else
|
||||||
#undef USE_IPP_SEP_FILTERS
|
#undef USE_IPP_SEP_FILTERS
|
||||||
|
@ -55,7 +55,7 @@ static IppStatus sts = ippInit();
|
|||||||
|
|
||||||
namespace cv
|
namespace cv
|
||||||
{
|
{
|
||||||
#if defined (HAVE_IPP) && (IPP_VERSION_X100 >= 701)
|
#if IPP_VERSION_X100 >= 701
|
||||||
typedef IppStatus (CV_STDCALL* ippiResizeFunc)(const void*, int, const void*, int, IppiPoint, IppiSize, IppiBorderType, void*, void*, Ipp8u*);
|
typedef IppStatus (CV_STDCALL* ippiResizeFunc)(const void*, int, const void*, int, IppiPoint, IppiSize, IppiBorderType, void*, void*, Ipp8u*);
|
||||||
typedef IppStatus (CV_STDCALL* ippiResizeGetBufferSize)(void*, IppiSize, Ipp32u, int*);
|
typedef IppStatus (CV_STDCALL* ippiResizeGetBufferSize)(void*, IppiSize, Ipp32u, int*);
|
||||||
typedef IppStatus (CV_STDCALL* ippiResizeGetSrcOffset)(void*, IppiPoint, IppiPoint*);
|
typedef IppStatus (CV_STDCALL* ippiResizeGetSrcOffset)(void*, IppiPoint, IppiPoint*);
|
||||||
@ -1912,7 +1912,7 @@ static int computeResizeAreaTab( int ssize, int dsize, int cn, double scale, Dec
|
|||||||
getBufferSizeFunc = (ippiResizeGetBufferSize)ippiResizeGetBufferSize_##TYPE;\
|
getBufferSizeFunc = (ippiResizeGetBufferSize)ippiResizeGetBufferSize_##TYPE;\
|
||||||
getSrcOffsetFunc = (ippiResizeGetSrcOffset)ippiResizeGetSrcOffset_##TYPE;
|
getSrcOffsetFunc = (ippiResizeGetSrcOffset)ippiResizeGetSrcOffset_##TYPE;
|
||||||
|
|
||||||
#if defined (HAVE_IPP) && (IPP_VERSION_X100 >= 701)
|
#if IPP_VERSION_X100 >= 701
|
||||||
class IPPresizeInvoker :
|
class IPPresizeInvoker :
|
||||||
public ParallelLoopBody
|
public ParallelLoopBody
|
||||||
{
|
{
|
||||||
@ -2384,7 +2384,7 @@ void cv::resize( InputArray _src, OutputArray _dst, Size dsize,
|
|||||||
double scale_x = 1./inv_scale_x, scale_y = 1./inv_scale_y;
|
double scale_x = 1./inv_scale_x, scale_y = 1./inv_scale_y;
|
||||||
int k, sx, sy, dx, dy;
|
int k, sx, sy, dx, dy;
|
||||||
|
|
||||||
#if defined (HAVE_IPP) && (IPP_VERSION_X100 >= 701)
|
#if IPP_VERSION_X100 >= 701
|
||||||
#define IPP_RESIZE_EPS 1.e-10
|
#define IPP_RESIZE_EPS 1.e-10
|
||||||
|
|
||||||
double ex = fabs((double)dsize.width/src.cols - inv_scale_x)/inv_scale_x;
|
double ex = fabs((double)dsize.width/src.cols - inv_scale_x)/inv_scale_x;
|
||||||
|
@ -1136,7 +1136,7 @@ private:
|
|||||||
Scalar borderValue;
|
Scalar borderValue;
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined (HAVE_IPP) && (IPP_VERSION_X100 >= 801)
|
#if IPP_VERSION_X100 >= 801
|
||||||
static bool IPPMorphReplicate(int op, const Mat &src, Mat &dst, const Mat &kernel,
|
static bool IPPMorphReplicate(int op, const Mat &src, Mat &dst, const Mat &kernel,
|
||||||
const Size& ksize, const Point &anchor, bool rectKernel)
|
const Size& ksize, const Point &anchor, bool rectKernel)
|
||||||
{
|
{
|
||||||
@ -1459,7 +1459,7 @@ static void morphOp( int op, InputArray _src, OutputArray _dst,
|
|||||||
Size ksize = kernel.data ? kernel.size() : Size(3,3);
|
Size ksize = kernel.data ? kernel.size() : Size(3,3);
|
||||||
anchor = normalizeAnchor(anchor, ksize);
|
anchor = normalizeAnchor(anchor, ksize);
|
||||||
|
|
||||||
#if defined (HAVE_IPP) && (IPP_VERSION_X100 >= 801)
|
#if IPP_VERSION_X100 >= 801
|
||||||
if( IPPMorphOp(op, _src, _dst, kernel, anchor, iterations, borderType, borderValue) )
|
if( IPPMorphOp(op, _src, _dst, kernel, anchor, iterations, borderType, borderValue) )
|
||||||
return;
|
return;
|
||||||
#endif
|
#endif
|
||||||
|
@ -1109,7 +1109,7 @@ void cv::GaussianBlur( InputArray _src, OutputArray _dst, Size ksize,
|
|||||||
return;
|
return;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined (HAVE_IPP) && (IPP_VERSION_X100 >= 801)
|
#if IPP_VERSION_X100 >= 801
|
||||||
if( type == CV_32FC1 && sigma1 == sigma2 && ksize.width == ksize.height && sigma1 != 0.0 )
|
if( type == CV_32FC1 && sigma1 == sigma2 && ksize.width == ksize.height && sigma1 != 0.0 )
|
||||||
{
|
{
|
||||||
Mat src = _src.getMat(), dst = _dst.getMat();
|
Mat src = _src.getMat(), dst = _dst.getMat();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user