Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

problem ippiMulC_32f_AC4IR

syingyos
Beginner
355 Views

I use ippiMean_StdDevand keep variable in Ipp64f pStdDev,pMean. So when i call function ippiMulC_32f_AC4IR thier have error. can u help me?

Ipp64f pMean[3]={0};

Ipp64f pStdDev[3]={0};

for ( int coi = 1; coi < 4; coi++ )

ippiMean_StdDev_8u_C3CR( (Ipp8u*)pSrc->DataPtr(),

pSrc->Step(), pSrc->Size(), coi, &pMean[coi-1], &pStdDev[coi-1]);

ippiMulC_32f_AC4IR( (Ipp64f*) pStdDev,

(Ipp32f*)eRand, e->Step(), eSize);

message error::

error C2664: 'ippiMulC_32f_AC4IR' : cannot convert parameter 1 from 'Ipp64f *' to 'const Ipp32f []'

0 Kudos
1 Reply
Vladimir_Dudnik
Employee
355 Views
Hi,
You should use construction smth. like this:

Ipp32f pStdDevF[3];
pStdDevF[0] = (Ipp32f)pStdDev[0];
pStdDevF[1] = (Ipp32f)pStdDev[1];
pStdDevF[2] = (Ipp32f)pStdDev[2];

ippiMulC_32f_AC4IR( (const Ipp32f*) pStdDevF,(Ipp32f*)eRand, e->Step(), eSize);

Regards,
Vladimir

0 Kudos
Reply