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

I have a problem ippiGetCentralMoment_64f

syingyos
Beginner
232 Views
Hi

When i use
ippiGetCentralMoment_64f(const IppiMomentState_64f* pState,
int mOrd, int nOrd, int nChannel, Ipp64f* pValue);

3 3 3 3 0 0 0 0
3 3 3 3 0 0 0 0
3 3 3 3 0 0 0 0
3 3 3 3 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0

and set moment order as
mOrd = 1, nOrd=0 and mOrd=0 , nOrd=1 --> the result uncorrect. (pValue should be 120)

mOrd=0 , nOrd= 0 is ok (pValue = 48)




Ipp8u x[64];
IppiSize roiA={8,8}, roiB={4,4};

IppiMomentState_64f* ctx;
stH = ippiMomentInitAlloc_64f( &ctx, ippAlgHintNone );
ippiSet_8u_C1R( 0, x, 8, roiA );
ippiSet_8u_C1R( 3, x, 8, roiB );

stH = ippiMoments64f_8u_C1R( x, 8, roiA, ctx );

St = ippiGetCentralMoment_64f(ctx, 0, 0, 0, &pUu ); // is ok
St = ippiGetCentralMoment_64f(ctx, 1, 0, 0, &pUu ); // not correct
St = ippiGetCentralMoment_64f(ctx, 0, 1, 0, &pUu ); // not correct

Thanks
0 Kudos
1 Reply
Vladimir_Dudnik
Employee
232 Views

Hi,

IPP function work according IPP documentation, please check IPP manual for the details about central moment algorithm

Regards,
Vladimir

0 Kudos
Reply