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

ippiSet_32f_C3R, how to set Roisize?

syingyos
Beginner
776 Views

Hi, I have a problem with ippiSet_32f_C3R, How I know roiSize of whole image? Itshould beIppiSizeyRoiSize = [yDataStep*width, yDataStep*height] right? I try to IppiSize yRoiSize = {2,2}; the output is :

0 0 0 0 0 0 x x x .... 31

0 0 0 0 0 0 x x x .... 63

when yStep is 32.and when I set to big image the step is 64.

int yStep;

Ipp32f* yData = ippiMalloc_32f_C3( 2, 2, &yStep );

IppiSize yRoiSize = { 2,2};

Ipp32f pSetC3R0[3] = { 0, 0, 0};

ippiSet_32f_C3R( pSetC3R0, yData, yStep, yRoiSize );

Please help me.

0 Kudos
1 Reply
Vladimir_Dudnik
Employee
776 Views
Hi,
ROI for the whole image with sizes width and height is IppiSize roi = {width, height}.
BTW, I highly recommend you to read IPP Manual, Volume2: Image and Video Processing, Chapter 2 - Intel Integrated Perfromance Primitives Concept, article Major Operating Models, Regions of Interest in Intel IPP. There is also example of code included into manual, so you are welcome to read this material:)

Regions of Interest in Intel IPP

Most Intel IPP image processing functions can operate not only on entire images but also on image areas. Images region of interest (ROI) is a rectangular area which may be either some part of the image or the whole image. ...

Regards,
Vladimir
0 Kudos
Reply