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

Usage of Pyramids Functions

jower
Beginner
313 Views
Hi,
Im trying to use the Pyramids Functions like followed.
unfortunately I get an 'ippStsNullPtr' at 'ippiPyrDownGetBufSize_Gauss5x5'. Does someone has an idea what I'm doing wrong? I'm working with 3Channel Images (8Bit).
below my code:


Ipp8u *img = (Ipp8u *) ippsMalloc_8u( (size.width/2)
* (size.height/2) * 3);
Ipp8u *imgCoarse = (Ipp8u *) ippsMalloc_8u( (size.width/2)
* (size.height/2) * 3);
int *pBufSize = NULL;

IppStatus stat = ippiPyrDownGetBufSize_Gauss5x5
( size.width , ipp8u , 3 , pBufSize );
Ipp8u* pBuffer = new Ipp8u[*pBufSize];
ippiPyrDown_Gauss5x5_8u_C3R( img, widthStep , imgCoarse,
widthStep/2, size, pBuffer);
0 Kudos
1 Reply
Intel_C_Intel
Employee
313 Views

Hi,

pBufSize is NULL before call => error status

right is

int bufSize = NULL;

IppStatus stat = ippiPyrDownGetBufSize_Gauss5x5
( size.width , ipp8u , 3 , &bufSize );
Ipp8u* pBuffer = new Ipp8u[bufSize];
Alexander
0 Kudos
Reply