I'am a new User at the IPP.
I will usethe ROI feature with some IPP functions, but I'am not sure if I understand the use of ROI in the right way.
I tryed a Histogram calculation inside the ippisample application in the following way:
IppStatus status = ippiHistogramEven_8u_C3R((Ipp8u*)pSrc->DataPtr(), pSrc->Step(), imgSize, his, lev, levels, minLevel, maxLevel);
It works fine and now I will try to do this just with a part of the image.
For example with a rectangle from the 3rd line and 3rd colum to the 10th line and 10th column. Is the following code correct for this use ?
IppStatus status = ippiHistogramEven_8u_C3R( ((Ipp8u*)pSrc->DataPtr()+ 2*pSrc->Step()+2) , 10-3, (10-3)*(10-3), his, lev, levels, minLevel, maxLevel);
I moved the source pointer to the left top corner of my ROI and use the width of the ROI as srcStep and the width*height of the ROI as imagesize.