cv::magnitude

This commit is contained in:
Ilya Lavrenov
2014-04-04 14:18:53 +04:00
parent bf860dbb31
commit ed1ca00bf6
2 changed files with 13 additions and 0 deletions

View File

@@ -238,6 +238,12 @@ float cubeRoot( float value )
static void Magnitude_32f(const float* x, const float* y, float* mag, int len)
{
#ifdef HAVE_IPP
IppStatus status = ippsMagnitude_32f(x, y, mag, len);
if (status == ippStsNoErr)
return;
#endif
int i = 0;
#if CV_SSE
@@ -264,6 +270,12 @@ static void Magnitude_32f(const float* x, const float* y, float* mag, int len)
static void Magnitude_64f(const double* x, const double* y, double* mag, int len)
{
#ifdef HAVE_IPP
IppStatus status = ippsMagnitude_64f(x, y, mag, len);
if (status == ippStsNoErr)
return;
#endif
int i = 0;
#if CV_SSE2