- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
IPP function work according IPP documentation, please check IPP manual for the details about central moment algorithm
Regards,
Vladimir
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page