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

Would you please supply an exapmle for pyramid usage

yevgbeid
Beginner
1,543 Views
Hello !
Would you please supply an exapmle for pyramid usage ( downscale ) , I'll appreciate this as I have problems with that .
What is the minimum image size for downscale processing ?
Thanka you very much .
Jack
0 Kudos
3 Replies
support2
Beginner
1,543 Views
Hi,
You have a complete sample in R.Taylor book : chapter 12 pp.420 sv.
(R.Taylor Intel Integrated Performance Primitives How to Optimize Software Applications Using Intel IPP, Intel Press). Get this excellent book.
srsr
0 Kudos
yevgbeid
Beginner
1,543 Views
Thanks ! I'll buy it .
Meanwhile may you have a look at the following code , why do I get "stack around stepbytes varaible is corrupted "? It seems that ippiPyrDownGetBufSize_Gauss5x5 corrupts stack with new allocation ???
const int W=64 , H=64 ;
int stepbytes , stepbytes2 , pBufSize;
IppiSize size={ W, H };
IppiSize size2 ={ W/2 , H/2 };
Ippi8u* img = ippiMalloc_8u_C1( size.width , size.height , &stepbytes );
Ippi8u* pyr = ippiMalloc_8u_C1( size2.width , size2.height , &stepbytes2);
IppStatus st= ippiPyrDownGetBufSize_Gauss5x5( size.width , ipp8u , 1 , pBufSize );
IppStatus st2= ippiPyrDown_Gauss5x5_8u_C1R( img , stepbytes , pyr , stepbytes2 , size , &pBufSize);
ippiFree(img);
ippiFree(pyr);
cout<
THANKS A LOT
0 Kudos
yevgbeid
Beginner
1,543 Views
Thanks A LOT !!! I'll try it .
0 Kudos
Reply